Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test8.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.Test8,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test8",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test8,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test8",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.01066/0.01066, allocations: 1.334 MB / 8.62 MB, free: 1.656 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02688/0.03761, allocations: 4.299 MB / 12.92 MB, free: 1.016 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001033/0.03869, allocations: 359.3 kB / 13.27 MB, free: 0.6719 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.00843/0.04716, allocations: 3.28 MB / 16.55 MB, free: 472 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001476/0.04736, allocations: 51.98 kB / 16.6 MB, free: 420 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.06418/0.1116, allocations: 11.51 MB / 28.11 MB, free: 2.977 MB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.1117, allocations: 10.52 kB / 28.12 MB, free: 2.977 MB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005203/0.1122, allocations: 82.5 kB / 28.2 MB, free: 2.938 MB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.1141, allocations: 453.2 kB / 28.64 MB, free: 2.66 MB / 13.93 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.1142, allocations: 33.02 kB / 28.68 MB, free: 2.66 MB / 13.93 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.1146, allocations: 53.88 kB / 28.73 MB, free: 2.625 MB / 13.93 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003616/0.1182, allocations: 0.7753 MB / 29.5 MB, free: 1.941 MB / 13.93 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004627/0.1229, allocations: 1.045 MB / 30.55 MB, free: 1.055 MB / 13.93 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.123, allocations: 0 / 30.55 MB, free: 1.055 MB / 13.93 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001687/0.1232, allocations: 8 kB / 30.56 MB, free: 1.047 MB / 13.93 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002212/0.1235, allocations: 57.88 kB / 30.61 MB, free: 0.9961 MB / 13.93 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01468/0.1382, allocations: 1.857 MB / 32.47 MB, free: 2.777 MB / 13.93 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1395, allocations: 0.5426 MB / 33.01 MB, free: 2.562 MB / 13.93 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000823/0.1404, allocations: 301.3 kB / 33.31 MB, free: 2.555 MB / 13.93 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006205/0.141, allocations: 0.6052 MB / 33.91 MB, free: 1.898 MB / 13.93 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.1411, allocations: 33.81 kB / 33.95 MB, free: 1.859 MB / 13.93 MB Notification: Performance of pre-optimization done (n=40): time 3.406e-06/0.1411, allocations: 3.391 kB / 33.95 MB, free: 1.859 MB / 13.93 MB Notification: Performance of matching and sorting (n=40): time 0.001525/0.1426, allocations: 490.4 kB / 34.43 MB, free: 1.82 MB / 13.93 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.1428, allocations: 212.3 kB / 34.64 MB, free: 1.602 MB / 13.93 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.1432, allocations: 250.4 kB / 34.88 MB, free: 1.488 MB / 13.93 MB Notification: Performance of collectPreVariables (initialization): time 6.369e-05/0.1432, allocations: 28.86 kB / 34.91 MB, free: 1.457 MB / 13.93 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.1435, allocations: 342.8 kB / 35.24 MB, free: 1.258 MB / 13.93 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.1436, allocations: 132 kB / 35.37 MB, free: 1.184 MB / 13.93 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.921e-05/0.1437, allocations: 6.062 kB / 35.38 MB, free: 1.184 MB / 13.93 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.1438, allocations: 341.8 kB / 35.71 MB, free: 0.8711 MB / 13.93 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006316/0.1445, allocations: 255.8 kB / 35.96 MB, free: 0.8516 MB / 13.93 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007074/0.1452, allocations: 432.8 kB / 36.38 MB, free: 0.5508 MB / 13.93 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008493/0.146, allocations: 284.4 kB / 36.66 MB, free: 488 kB / 13.93 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.1461, allocations: 3.469 kB / 36.67 MB, free: 488 kB / 13.93 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001787/0.1479, allocations: 0.6717 MB / 37.34 MB, free: 252 kB / 13.93 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1479, allocations: 8.312 kB / 37.35 MB, free: 244 kB / 13.93 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.1479, allocations: 4 kB / 37.35 MB, free: 240 kB / 13.93 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.148, allocations: 8 kB / 37.36 MB, free: 232 kB / 13.93 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/0.1486, allocations: 96.17 kB / 37.45 MB, free: 160 kB / 13.93 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.1486, allocations: 11.94 kB / 37.46 MB, free: 148 kB / 13.93 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005277/0.1491, allocations: 76.88 kB / 37.54 MB, free: 84 kB / 13.93 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.1492, allocations: 39.33 kB / 37.58 MB, free: 48 kB / 13.93 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.P1.fireOut[1],$PRE.P1.fireOut[2],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P1.feeding,P1.outTransition[2].arcType,P1.outTransition[1].arcType,P3.emptying,P2.emptying,P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],T1.activation.emptied[1],T2.activation.emptied[1],T1.activation.arcType[1],T2.activation.arcType[1],T1.activation.fed[1],T2.activation.fed[1],T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 63 * Array equations: 3 * Algorithm blocks: 2 * 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.00632/0.1556, allocations: 222.8 kB / 37.79 MB, free: 2.352 MB / 13.93 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.1559, allocations: 32.69 kB / 37.83 MB, free: 2.352 MB / 13.93 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.1581, allocations: 0.6067 MB / 38.43 MB, free: 2.312 MB / 13.93 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-05/0.1582, allocations: 12.31 kB / 38.44 MB, free: 2.312 MB / 13.93 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1582, allocations: 0 / 38.44 MB, free: 2.312 MB / 13.93 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.1582, allocations: 0 / 38.44 MB, free: 2.312 MB / 13.93 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.1608, allocations: 1.087 MB / 39.53 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.1608, allocations: 4.625 kB / 39.54 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.1613, allocations: 64.64 kB / 39.6 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.1614, allocations: 2.922 kB / 39.6 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.535e-05/0.1615, allocations: 17.19 kB / 39.62 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.1615, allocations: 2.031 kB / 39.62 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.1615, allocations: 2.781 kB / 39.62 MB, free: 2.043 MB / 13.93 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002675/0.1642, allocations: 0.9428 MB / 40.57 MB, free: 1.887 MB / 13.93 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004503/0.1687, allocations: 1.635 MB / 42.2 MB, free: 0.9297 MB / 13.93 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1689, allocations: 110.5 kB / 42.31 MB, free: 0.8242 MB / 13.93 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.1691, allocations: 22.2 kB / 42.33 MB, free: 0.8086 MB / 13.93 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000455/0.1695, allocations: 38.67 kB / 42.37 MB, free: 0.7812 MB / 13.93 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003425/0.1699, allocations: 121.6 kB / 42.49 MB, free: 0.7031 MB / 13.93 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-05/0.17, allocations: 28.98 kB / 42.51 MB, free: 0.6797 MB / 13.93 MB Notification: Performance of sort global known variables: time 0.0001838/0.1702, allocations: 156.4 kB / 42.67 MB, free: 0.5352 MB / 13.93 MB Notification: Performance of remove unused functions: time 0.003125/0.1733, allocations: 218 kB / 42.88 MB, free: 388 kB / 13.93 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 13 (P1.fireOut[1],P1.fireOut[2],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding) * Number of discrete states: 10 (P3.fireIn[1],P2.fireIn[1],P1.fireOut[1],P1.fireOut[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 3 * Algorithm blocks: 2 * 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.00765/0.181, allocations: 226.5 kB / 43.1 MB, free: 2.359 MB / 13.93 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.183, allocations: 0.7715 MB / 43.87 MB, free: 2.297 MB / 13.93 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.183, allocations: 2.688 kB / 43.88 MB, free: 2.297 MB / 13.93 MB Notification: Performance of simCode: created simulation system equations: time 0.0008686/0.1839, allocations: 436.9 kB / 44.3 MB, free: 2.234 MB / 13.93 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.1844, allocations: 45.8 kB / 44.35 MB, free: 2.23 MB / 13.93 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.1874, allocations: 1.031 MB / 45.38 MB, free: 1.996 MB / 13.93 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/0.1887, allocations: 1.104 MB / 46.48 MB, free: 6.129 MB / 18.77 MB Notification: Performance of SimCode: time 2.675e-06/0.1887, allocations: 0 / 46.48 MB, free: 6.129 MB / 18.77 MB (rm -f ConPNlib_ConPNlib.Examples.Test8.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test8.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test8.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test8.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test8_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test8.fmu > ConPNlib_ConPNlib.Examples.Test8.pipe 2>&1)