Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test7.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.Test7,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test7,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test7",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.01525/0.01525, allocations: 1.331 MB / 8.617 MB, free: 1.656 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02529/0.04062, allocations: 4.298 MB / 12.91 MB, free: 1.051 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0009103/0.04158, allocations: 364.3 kB / 13.27 MB, free: 0.7031 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.01122/0.05283, allocations: 3.274 MB / 16.54 MB, free: 500 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001152/0.05301, allocations: 47.98 kB / 16.59 MB, free: 452 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.03691/0.08993, allocations: 7.268 MB / 23.86 MB, free: 348 kB / 10.45 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.09002, allocations: 12.58 kB / 23.87 MB, free: 336 kB / 10.45 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002547/0.0903, allocations: 43.53 kB / 23.91 MB, free: 292 kB / 10.45 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005697/0.09602, allocations: 313.2 kB / 24.22 MB, free: 0.9219 MB / 10.45 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/0.09613, allocations: 18.22 kB / 24.24 MB, free: 0.9219 MB / 10.45 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.09637, allocations: 29.53 kB / 24.27 MB, free: 0.9219 MB / 10.45 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001067/0.09745, allocations: 398.6 kB / 24.66 MB, free: 0.9219 MB / 10.45 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.09927, allocations: 0.5508 MB / 25.21 MB, free: 0.8477 MB / 10.45 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.09934, allocations: 2.938 kB / 25.21 MB, free: 0.8477 MB / 10.45 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.118e-05/0.09945, allocations: 3.656 kB / 25.21 MB, free: 0.8477 MB / 10.45 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.09957, allocations: 31.02 kB / 25.24 MB, free: 0.8477 MB / 10.45 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002911/0.1025, allocations: 1.05 MB / 26.29 MB, free: 484 kB / 10.45 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/0.1031, allocations: 301.1 kB / 26.59 MB, free: 360 kB / 10.45 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.1034, allocations: 157.2 kB / 26.74 MB, free: 352 kB / 10.45 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007936/0.1043, allocations: 0.5948 MB / 27.34 MB, free: 3.188 MB / 13.95 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.1043, allocations: 37.2 kB / 27.37 MB, free: 3.148 MB / 13.95 MB Notification: Performance of pre-optimization done (n=22): time 3.587e-06/0.1043, allocations: 0 / 27.37 MB, free: 3.148 MB / 13.95 MB Notification: Performance of matching and sorting (n=22): time 0.0009561/0.1053, allocations: 276 kB / 27.64 MB, free: 3.105 MB / 13.95 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.1054, allocations: 144.1 kB / 27.78 MB, free: 2.949 MB / 13.95 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.1057, allocations: 176.5 kB / 27.95 MB, free: 2.844 MB / 13.95 MB Notification: Performance of collectPreVariables (initialization): time 4.943e-05/0.1058, allocations: 31.88 kB / 27.99 MB, free: 2.812 MB / 13.95 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.106, allocations: 222.2 kB / 28.2 MB, free: 2.672 MB / 13.95 MB Notification: Performance of collectInitialBindings (initialization): time 8.085e-05/0.1061, allocations: 69.5 kB / 28.27 MB, free: 2.629 MB / 13.95 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.903e-05/0.1061, allocations: 2.562 kB / 28.27 MB, free: 2.629 MB / 13.95 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1063, allocations: 328.3 kB / 28.59 MB, free: 2.316 MB / 13.95 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.1066, allocations: 136.5 kB / 28.73 MB, free: 2.289 MB / 13.95 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.107, allocations: 233.4 kB / 28.96 MB, free: 2.125 MB / 13.95 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005347/0.1076, allocations: 152.6 kB / 29.1 MB, free: 2.07 MB / 13.95 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.1076, allocations: 1.641 kB / 29.11 MB, free: 2.07 MB / 13.95 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001215/0.1088, allocations: 386.2 kB / 29.48 MB, free: 1.742 MB / 13.95 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.1089, allocations: 4.312 kB / 29.49 MB, free: 1.738 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.1089, allocations: 4 kB / 29.49 MB, free: 1.734 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.1089, allocations: 4 kB / 29.49 MB, free: 1.73 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003724/0.1093, allocations: 54 kB / 29.55 MB, free: 1.688 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.1093, allocations: 15.77 kB / 29.56 MB, free: 1.676 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.1097, allocations: 39.67 kB / 29.6 MB, free: 1.641 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.292e-05/0.1098, allocations: 23.84 kB / 29.62 MB, free: 1.621 MB / 13.95 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,P1.feeding,P1.outTransition[1].arcType,P2.emptying,P1.fireOut[1],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * Array equations: 2 * 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.0002536/0.11, allocations: 164.8 kB / 29.79 MB, free: 1.453 MB / 13.95 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-05/0.1101, allocations: 23.72 kB / 29.81 MB, free: 1.43 MB / 13.95 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.1113, allocations: 340.7 kB / 30.14 MB, free: 1.145 MB / 13.95 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.86e-05/0.1114, allocations: 4 kB / 30.15 MB, free: 1.141 MB / 13.95 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1114, allocations: 0 / 30.15 MB, free: 1.141 MB / 13.95 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.1114, allocations: 6.953 kB / 30.15 MB, free: 1.137 MB / 13.95 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.1131, allocations: 0.6808 MB / 30.83 MB, free: 0.5234 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.1132, allocations: 2.5 kB / 30.84 MB, free: 0.5234 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.1135, allocations: 38.92 kB / 30.87 MB, free: 0.4922 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.1135, allocations: 4 kB / 30.88 MB, free: 500 kB / 13.95 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.993e-05/0.1136, allocations: 8 kB / 30.89 MB, free: 492 kB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.719e-06/0.1136, allocations: 4 kB / 30.89 MB, free: 488 kB / 13.95 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.1136, allocations: 2.062 kB / 30.89 MB, free: 488 kB / 13.95 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001696/0.1153, allocations: 0.5633 MB / 31.45 MB, free: 0 / 13.95 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006811/0.1222, allocations: 1.087 MB / 32.54 MB, free: 3.199 MB / 13.95 MB Notification: Performance of postOpt removeConstants (simulation): time 6.457e-05/0.1223, allocations: 93.61 kB / 32.63 MB, free: 3.105 MB / 13.95 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/0.1224, allocations: 13.2 kB / 32.65 MB, free: 3.105 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.1227, allocations: 31.69 kB / 32.68 MB, free: 3.105 MB / 13.95 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.123, allocations: 64.08 kB / 32.74 MB, free: 3.105 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.325e-05/0.123, allocations: 17.92 kB / 32.76 MB, free: 3.105 MB / 13.95 MB Notification: Performance of sort global known variables: time 0.0001195/0.1231, allocations: 124.1 kB / 32.88 MB, free: 3.027 MB / 13.95 MB Notification: Performance of remove unused functions: time 0.001774/0.1249, allocations: 147.7 kB / 33.02 MB, free: 3.027 MB / 13.95 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 7 (P1.fireOut[1],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1]) * Number of discrete states: 5 (P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 2 * 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.0005099/0.1255, allocations: 205.8 kB / 33.22 MB, free: 2.938 MB / 13.95 MB Notification: Performance of simCode: created initialization part: time 0.0009442/0.1264, allocations: 406.8 kB / 33.62 MB, free: 2.906 MB / 13.95 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1264, allocations: 0 / 33.62 MB, free: 2.906 MB / 13.95 MB Notification: Performance of simCode: created simulation system equations: time 0.000443/0.1269, allocations: 222.2 kB / 33.84 MB, free: 2.875 MB / 13.95 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.1273, allocations: 26.36 kB / 33.86 MB, free: 2.875 MB / 13.95 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.1288, allocations: 0.5627 MB / 34.43 MB, free: 2.723 MB / 13.95 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006012/0.1294, allocations: 0.907 MB / 35.33 MB, free: 2.016 MB / 13.95 MB Notification: Performance of SimCode: time 8.21e-07/0.1295, allocations: 0 / 35.33 MB, free: 2.016 MB / 13.95 MB (rm -f ConPNlib_ConPNlib.Examples.Test7.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test7.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test7.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test7.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test7_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test7.fmu > ConPNlib_ConPNlib.Examples.Test7.pipe 2>&1)