Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: "" <> buildModelFMU(ConPNlib.Examples.Test2,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test2,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test2",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01062/0.01062, allocations: 1.334 MB / 8.62 MB, free: 1.66 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02471/0.0354, allocations: 4.299 MB / 12.92 MB, free: 1.027 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001049/0.03651, allocations: 353.7 kB / 13.26 MB, free: 0.6875 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0124/0.04895, allocations: 3.275 MB / 16.54 MB, free: 492 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.04924, allocations: 51.22 kB / 16.59 MB, free: 444 kB / 7.832 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.03543/0.08469, allocations: 5.612 MB / 22.2 MB, free: 1.652 MB / 10.45 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.08476, allocations: 9.109 kB / 22.21 MB, free: 1.652 MB / 10.45 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.08487, allocations: 25.19 kB / 22.23 MB, free: 1.641 MB / 10.45 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004421/0.08532, allocations: 267.2 kB / 22.5 MB, free: 1.418 MB / 10.45 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.08537, allocations: 8.531 kB / 22.5 MB, free: 1.418 MB / 10.45 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.513e-05/0.08544, allocations: 16.72 kB / 22.52 MB, free: 1.418 MB / 10.45 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005639/0.08602, allocations: 214.7 kB / 22.73 MB, free: 1.418 MB / 10.45 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007156/0.08675, allocations: 319.2 kB / 23.04 MB, free: 1.316 MB / 10.45 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.08678, allocations: 1.344 kB / 23.04 MB, free: 1.316 MB / 10.45 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.08683, allocations: 1.734 kB / 23.04 MB, free: 1.316 MB / 10.45 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.088e-05/0.08689, allocations: 17.91 kB / 23.06 MB, free: 1.316 MB / 10.45 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.08834, allocations: 0.6344 MB / 23.7 MB, free: 0.8164 MB / 10.45 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.08867, allocations: 127.4 kB / 23.82 MB, free: 0.6953 MB / 10.45 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.08887, allocations: 80.92 kB / 23.9 MB, free: 0.6211 MB / 10.45 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004508/0.08934, allocations: 429.4 kB / 24.32 MB, free: 124 kB / 10.45 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.08938, allocations: 34.56 kB / 24.35 MB, free: 80 kB / 10.45 MB Notification: Performance of pre-optimization done (n=14): time 3.066e-06/0.08939, allocations: 4 kB / 24.36 MB, free: 76 kB / 10.45 MB Notification: Performance of matching and sorting (n=14): time 0.005528/0.09493, allocations: 179 kB / 24.53 MB, free: 1.922 MB / 10.45 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.09506, allocations: 110.7 kB / 24.64 MB, free: 1.797 MB / 10.45 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.09525, allocations: 147.5 kB / 24.78 MB, free: 1.695 MB / 10.45 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.0953, allocations: 29.02 kB / 24.81 MB, free: 1.664 MB / 10.45 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.09541, allocations: 154.8 kB / 24.96 MB, free: 1.578 MB / 10.45 MB Notification: Performance of collectInitialBindings (initialization): time 5.966e-05/0.09548, allocations: 44.91 kB / 25.01 MB, free: 1.555 MB / 10.45 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.09551, allocations: 0 / 25.01 MB, free: 1.555 MB / 10.45 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.09562, allocations: 323.4 kB / 25.32 MB, free: 1.242 MB / 10.45 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.09583, allocations: 79.84 kB / 25.4 MB, free: 1.242 MB / 10.45 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.09606, allocations: 134 kB / 25.53 MB, free: 1.18 MB / 10.45 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.0964, allocations: 92.05 kB / 25.62 MB, free: 1.18 MB / 10.45 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.09642, allocations: 0 / 25.62 MB, free: 1.18 MB / 10.45 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006385/0.09706, allocations: 240.3 kB / 25.86 MB, free: 1.141 MB / 10.45 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.0971, allocations: 5.594 kB / 25.86 MB, free: 1.141 MB / 10.45 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.09712, allocations: 0 / 25.86 MB, free: 1.141 MB / 10.45 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.09715, allocations: 6.719 kB / 25.87 MB, free: 1.141 MB / 10.45 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.09743, allocations: 30.09 kB / 25.9 MB, free: 1.141 MB / 10.45 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.09745, allocations: 8.422 kB / 25.91 MB, free: 1.141 MB / 10.45 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.09766, allocations: 23.16 kB / 25.93 MB, free: 1.137 MB / 10.45 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.09772, allocations: 15.91 kB / 25.94 MB, free: 1.137 MB / 10.45 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.P1.fireOut[1],P1.emptying,P1.feeding,P1.outTransition[1].arcType,T1.activation.active,T1.activation.weaklyInputActiveVec[1],P1.fireOut[1],T1.activation.arcType[1],T1.activation.fed[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.0979, allocations: 152.9 kB / 26.09 MB, free: 0.9961 MB / 10.45 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.09798, allocations: 13.09 kB / 26.11 MB, free: 0.9922 MB / 10.45 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.0993, allocations: 292.7 kB / 26.39 MB, free: 0.957 MB / 10.45 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.09937, allocations: 3.906 kB / 26.4 MB, free: 0.9531 MB / 10.45 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.09939, allocations: 2.125 kB / 26.4 MB, free: 0.9531 MB / 10.45 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.0994, allocations: 2.188 kB / 26.4 MB, free: 0.9531 MB / 10.45 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.1004, allocations: 0.5049 MB / 26.91 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.1005, allocations: 0 / 26.91 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.1007, allocations: 25.98 kB / 26.93 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.1008, allocations: 0 / 26.93 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.1008, allocations: 6.203 kB / 26.94 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1008, allocations: 0 / 26.94 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1008, allocations: 3.609 kB / 26.94 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001078/0.1019, allocations: 401.1 kB / 27.33 MB, free: 0.5352 MB / 10.45 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00146/0.1034, allocations: 0.8602 MB / 28.19 MB, free: 3.539 MB / 13.97 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.1037, allocations: 88.89 kB / 28.28 MB, free: 3.438 MB / 13.97 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.1038, allocations: 4.156 kB / 28.28 MB, free: 3.438 MB / 13.97 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.1041, allocations: 15.5 kB / 28.3 MB, free: 3.438 MB / 13.97 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.1042, allocations: 34.36 kB / 28.33 MB, free: 3.438 MB / 13.97 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.905e-05/0.1043, allocations: 15.2 kB / 28.35 MB, free: 3.434 MB / 13.97 MB Notification: Performance of sort global known variables: time 0.0001113/0.1044, allocations: 105.9 kB / 28.45 MB, free: 3.352 MB / 13.97 MB Notification: Performance of remove unused functions: time 0.001488/0.1059, allocations: 103.5 kB / 28.55 MB, free: 3.324 MB / 13.97 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (P1.t_) * Number of discrete variables: 4 (T1.activation.active,T1.activation.weaklyInputActiveVec[1],P1.fireOut[1],P1.emptying) * Number of discrete states: 3 (P1.fireOut[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004944/0.1064, allocations: 163.8 kB / 28.71 MB, free: 3.227 MB / 13.97 MB Notification: Performance of simCode: created initialization part: time 0.0008163/0.1073, allocations: 241.7 kB / 28.95 MB, free: 3.125 MB / 13.97 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.1073, allocations: 0 / 28.95 MB, free: 3.125 MB / 13.97 MB Notification: Performance of simCode: created simulation system equations: time 0.0003952/0.1077, allocations: 140.2 kB / 29.08 MB, free: 3.023 MB / 13.97 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.1081, allocations: 16.2 kB / 29.1 MB, free: 3.008 MB / 13.97 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.1096, allocations: 319.3 kB / 29.41 MB, free: 2.699 MB / 13.97 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009133/0.1106, allocations: 0.8268 MB / 30.24 MB, free: 1.898 MB / 13.97 MB Notification: Performance of SimCode: time 3.908e-06/0.1106, allocations: 0 / 30.24 MB, free: 1.898 MB / 13.97 MB (rm -f ConPNlib_ConPNlib.Examples.Test2.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test2.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test2.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test2.fmu > ConPNlib_ConPNlib.Examples.Test2.pipe 2>&1)