Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test10.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.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",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.01114/0.01114, allocations: 1.34 MB / 8.618 MB, free: 1.652 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02372/0.03494, allocations: 4.294 MB / 12.91 MB, free: 1.035 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001369/0.03637, allocations: 365.3 kB / 13.27 MB, free: 0.6875 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.01101/0.04743, allocations: 3.334 MB / 16.6 MB, free: 416 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001452/0.04763, allocations: 47.98 kB / 16.65 MB, free: 368 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.082/0.1296, allocations: 14.33 MB / 30.98 MB, free: 2.855 MB / 13.94 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/0.1297, allocations: 7.984 kB / 30.99 MB, free: 2.855 MB / 13.94 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004741/0.1302, allocations: 110.6 kB / 31.1 MB, free: 2.797 MB / 13.94 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.1317, allocations: 0.5219 MB / 31.62 MB, free: 2.547 MB / 13.94 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.744e-05/0.1318, allocations: 40.81 kB / 31.66 MB, free: 2.547 MB / 13.94 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002924/0.1321, allocations: 76.34 kB / 31.73 MB, free: 2.543 MB / 13.94 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00309/0.1352, allocations: 0.9938 MB / 32.73 MB, free: 2.473 MB / 13.94 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004252/0.1395, allocations: 1.362 MB / 34.09 MB, free: 1.391 MB / 13.94 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.743e-05/0.1396, allocations: 0 / 34.09 MB, free: 1.391 MB / 13.94 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.1399, allocations: 4 kB / 34.09 MB, free: 1.387 MB / 13.94 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002745/0.1402, allocations: 82.45 kB / 34.17 MB, free: 1.32 MB / 13.94 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/0.1546, allocations: 2.549 MB / 36.72 MB, free: 2.176 MB / 13.94 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.1557, allocations: 0.5375 MB / 37.26 MB, free: 2.059 MB / 13.94 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008586/0.1566, allocations: 380.3 kB / 37.63 MB, free: 2.047 MB / 13.94 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006405/0.1573, allocations: 0.6035 MB / 38.23 MB, free: 1.391 MB / 13.94 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.1573, allocations: 39.88 kB / 38.27 MB, free: 1.352 MB / 13.94 MB Notification: Performance of pre-optimization done (n=50): time 3.556e-06/0.1573, allocations: 0 / 38.27 MB, free: 1.352 MB / 13.94 MB Notification: Performance of matching and sorting (n=50): time 0.001925/0.1593, allocations: 0.5738 MB / 38.85 MB, free: 1.312 MB / 13.94 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.1594, allocations: 268.9 kB / 39.11 MB, free: 1.031 MB / 13.94 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005057/0.16, allocations: 309.5 kB / 39.41 MB, free: 0.9375 MB / 13.94 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.1601, allocations: 34.7 kB / 39.45 MB, free: 0.9062 MB / 13.94 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004355/0.1605, allocations: 449.3 kB / 39.88 MB, free: 0.6719 MB / 13.94 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.1608, allocations: 156.2 kB / 40.04 MB, free: 0.582 MB / 13.94 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.1608, allocations: 6.031 kB / 40.04 MB, free: 0.582 MB / 13.94 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1609, allocations: 354.2 kB / 40.39 MB, free: 272 kB / 13.94 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009836/0.1619, allocations: 321.9 kB / 40.7 MB, free: 236 kB / 13.94 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008954/0.1709, allocations: 0.5675 MB / 41.27 MB, free: 2.074 MB / 13.94 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.1725, allocations: 347 kB / 41.61 MB, free: 2.07 MB / 13.94 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.1725, allocations: 3.812 kB / 41.61 MB, free: 2.07 MB / 13.94 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002797/0.1753, allocations: 0.857 MB / 42.47 MB, free: 2.02 MB / 13.94 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1754, allocations: 3.219 kB / 42.47 MB, free: 2.02 MB / 13.94 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.1754, allocations: 7.531 kB / 42.48 MB, free: 2.02 MB / 13.94 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.55e-05/0.1755, allocations: 11.88 kB / 42.49 MB, free: 2.02 MB / 13.94 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007497/0.1762, allocations: 128.6 kB / 42.62 MB, free: 2.008 MB / 13.94 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.099e-05/0.1763, allocations: 20.67 kB / 42.64 MB, free: 2.004 MB / 13.94 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008256/0.1771, allocations: 80.03 kB / 42.72 MB, free: 2.004 MB / 13.94 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.1773, allocations: 57.84 kB / 42.77 MB, free: 2.004 MB / 13.94 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireOut[1],$PRE.P2.fireOut[2],P2.emptying,$PRE.P3.fireIn[1],P3.feeding,$PRE.P4.fireIn[1],P4.feeding,P1.feeding,P1.outTransition[1].arcType,P3.emptying,P4.emptying,P2.feeding,P2.outTransition[1].arcType,IA1.outTransition.arcType,P1.fireOut[1],P2.fireOut[1],P2.fireOut[2],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P4.fireIn[1],T1.activation.arcType[2],T2.activation.arcType[1],T2.activation.fed[1],T1.activation.fed[2],T2.activation.emptied[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces,T2.outPlaces[1].enabledByInPlaces,P2.outTransition[2].arcType) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 85 * Array equations: 4 * 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.0004863/0.1778, allocations: 249.3 kB / 43.02 MB, free: 1.812 MB / 13.94 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.178, allocations: 44.81 kB / 43.06 MB, free: 1.812 MB / 13.94 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.1804, allocations: 0.7247 MB / 43.78 MB, free: 1.762 MB / 13.94 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.676e-05/0.1805, allocations: 11.7 kB / 43.8 MB, free: 1.758 MB / 13.94 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.1805, allocations: 0 / 43.8 MB, free: 1.758 MB / 13.94 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.1805, allocations: 1.828 kB / 43.8 MB, free: 1.758 MB / 13.94 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003932/0.1845, allocations: 1.308 MB / 45.11 MB, free: 1.266 MB / 13.94 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.1845, allocations: 1.938 kB / 45.11 MB, free: 1.266 MB / 13.94 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006792/0.1852, allocations: 79.98 kB / 45.19 MB, free: 1.199 MB / 13.94 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.535e-05/0.1853, allocations: 2.219 kB / 45.19 MB, free: 1.199 MB / 13.94 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.1854, allocations: 18.61 kB / 45.21 MB, free: 1.188 MB / 13.94 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.547e-06/0.1854, allocations: 4.938 kB / 45.21 MB, free: 1.184 MB / 13.94 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.1854, allocations: 0 / 45.21 MB, free: 1.184 MB / 13.94 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003521/0.189, allocations: 1.123 MB / 46.33 MB, free: 204 kB / 13.94 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01134/0.2004, allocations: 1.925 MB / 48.26 MB, free: 1.562 MB / 13.94 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.2006, allocations: 113.6 kB / 48.37 MB, free: 1.469 MB / 13.94 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.2009, allocations: 24.08 kB / 48.39 MB, free: 1.469 MB / 13.94 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005702/0.2015, allocations: 50.62 kB / 48.44 MB, free: 1.469 MB / 13.94 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004511/0.202, allocations: 131.6 kB / 48.57 MB, free: 1.469 MB / 13.94 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001721/0.2022, allocations: 36.56 kB / 48.61 MB, free: 1.469 MB / 13.94 MB Notification: Performance of sort global known variables: time 0.0003202/0.2025, allocations: 186.8 kB / 48.79 MB, free: 1.391 MB / 13.94 MB Notification: Performance of remove unused functions: time 0.002163/0.2047, allocations: 261.3 kB / 49.04 MB, free: 1.383 MB / 13.94 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (P1.t_,P2.t_,P3.t_,P4.t_) * Number of discrete variables: 16 (P1.fireOut[1],P1.emptying,P2.fireOut[1],P2.fireOut[2],P2.emptying,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding,P4.fireIn[1],P4.feeding) * Number of discrete states: 12 (P4.fireIn[1],P3.fireIn[1],P2.fireOut[1],P2.fireOut[2],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[2],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 (49): * Single equations (assignments): 43 * Array equations: 4 * 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.0006876/0.2054, allocations: 222 kB / 49.26 MB, free: 1.289 MB / 13.94 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.2077, allocations: 0.9527 MB / 50.21 MB, free: 1.117 MB / 13.94 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.2077, allocations: 4.156 kB / 50.22 MB, free: 1.117 MB / 13.94 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.2088, allocations: 0.5161 MB / 50.73 MB, free: 0.8984 MB / 13.94 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.2093, allocations: 55.83 kB / 50.79 MB, free: 0.8594 MB / 13.94 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/0.2138, allocations: 1.41 MB / 52.2 MB, free: 4.266 MB / 18.59 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001631/0.2155, allocations: 1.227 MB / 53.43 MB, free: 3.207 MB / 18.59 MB Notification: Performance of SimCode: time 1.222e-06/0.2155, allocations: 1.312 kB / 53.43 MB, free: 3.207 MB / 18.59 MB (rm -f ConPNlib_ConPNlib.Examples.Test10.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test10.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test10.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test10.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test10_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test10.fmu > ConPNlib_ConPNlib.Examples.Test10.pipe 2>&1)