Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test12.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.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",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.01334/0.01334, allocations: 1.338 MB / 8.616 MB, free: 1.656 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02126/0.03467, allocations: 4.298 MB / 12.91 MB, free: 1.039 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001766/0.03651, allocations: 360.2 kB / 13.27 MB, free: 0.6953 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.008542/0.04512, allocations: 3.291 MB / 16.56 MB, free: 476 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.0454, allocations: 51.98 kB / 16.61 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.07552/0.1209, allocations: 13.43 MB / 30.03 MB, free: 2.426 MB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.121, allocations: 8.578 kB / 30.04 MB, free: 2.418 MB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004216/0.1215, allocations: 99.44 kB / 30.14 MB, free: 2.32 MB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002121/0.1236, allocations: 0.52 MB / 30.66 MB, free: 1.816 MB / 13.93 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.1238, allocations: 36 kB / 30.69 MB, free: 1.781 MB / 13.93 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004027/0.1242, allocations: 64 kB / 30.76 MB, free: 1.719 MB / 13.93 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003814/0.1281, allocations: 0.965 MB / 31.72 MB, free: 0.8594 MB / 13.93 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.14, allocations: 1.283 MB / 33.01 MB, free: 2.188 MB / 13.93 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.1401, allocations: 0 / 33.01 MB, free: 2.188 MB / 13.93 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.1403, allocations: 3.531 kB / 33.01 MB, free: 2.188 MB / 13.93 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.1404, allocations: 73.72 kB / 33.08 MB, free: 2.184 MB / 13.93 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005982/0.1464, allocations: 2.321 MB / 35.4 MB, free: 1.516 MB / 13.93 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.1477, allocations: 0.6548 MB / 36.06 MB, free: 1.305 MB / 13.93 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008539/0.1486, allocations: 409.8 kB / 36.46 MB, free: 1.191 MB / 13.93 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001161/0.1498, allocations: 0.8732 MB / 37.33 MB, free: 4.902 MB / 18.59 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.74e-05/0.1499, allocations: 37.22 kB / 37.37 MB, free: 4.859 MB / 18.59 MB Notification: Performance of pre-optimization done (n=52): time 5.45e-06/0.1499, allocations: 0 / 37.37 MB, free: 4.859 MB / 18.59 MB Notification: Performance of matching and sorting (n=52): time 0.002802/0.1527, allocations: 0.7193 MB / 38.09 MB, free: 4.621 MB / 18.59 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002793/0.1531, allocations: 247.7 kB / 38.33 MB, free: 4.355 MB / 18.59 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005285/0.1536, allocations: 267.4 kB / 38.59 MB, free: 4.195 MB / 18.59 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.1538, allocations: 37.31 kB / 38.62 MB, free: 4.16 MB / 18.59 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.1543, allocations: 391.5 kB / 39.01 MB, free: 3.867 MB / 18.59 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002823/0.1546, allocations: 160 kB / 39.16 MB, free: 3.754 MB / 18.59 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.531e-05/0.1547, allocations: 4.953 kB / 39.17 MB, free: 3.754 MB / 18.59 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1549, allocations: 349.5 kB / 39.51 MB, free: 3.426 MB / 18.59 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008868/0.1558, allocations: 330.8 kB / 39.83 MB, free: 3.316 MB / 18.59 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.157, allocations: 0.4983 MB / 40.33 MB, free: 3 MB / 18.59 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.1583, allocations: 354.8 kB / 40.68 MB, free: 2.875 MB / 18.59 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.1584, allocations: 0 / 40.68 MB, free: 2.875 MB / 18.59 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003193/0.1616, allocations: 0.9281 MB / 41.61 MB, free: 2.059 MB / 18.59 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1616, allocations: 4.312 kB / 41.61 MB, free: 2.055 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.1617, allocations: 4 kB / 41.61 MB, free: 2.051 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003664/0.1654, allocations: 441.3 kB / 42.04 MB, free: 1.715 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007304/0.1661, allocations: 86.47 kB / 42.13 MB, free: 1.641 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.1683, allocations: 0.9384 MB / 43.07 MB, free: 0.6875 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009847/0.1694, allocations: 79.7 kB / 43.15 MB, free: 0.6094 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001938/0.1696, allocations: 46.72 kB / 43.19 MB, free: 0.5664 MB / 18.59 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T2.speedSumIn[1]:VARIABLE(protected = true ) "Input speeds of continuous input places" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P2.emptying,P3.emptying,P1.outTransition[2].arcType,P1.outTransition[1].arcType,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],$PRE.P1.fireIn[1],P1.fireIn[1],$PRE.P1.fireOut[1],P1.fireOut[1],$PRE.P1.fireOut[2],P1.fireOut[2],P2.fireIn[1],P3.fireIn[1],T2.activation.arcType[1],T3.activation.arcType[1],T3.activation.emptied[1],T2.activation.emptied[1],T2.outPlaces[1].enabledByInPlaces,T3.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): 64 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 11} Notification: Performance of prepare postOptimizeDAE: time 0.00056/0.1702, allocations: 273.7 kB / 43.46 MB, free: 284 kB / 18.59 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.1704, allocations: 39.62 kB / 43.5 MB, free: 244 kB / 18.59 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/0.1814, allocations: 0.975 MB / 44.47 MB, free: 6.203 MB / 18.59 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.721e-05/0.1815, allocations: 7.719 kB / 44.48 MB, free: 6.203 MB / 18.59 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.1815, allocations: 7.438 kB / 44.49 MB, free: 6.203 MB / 18.59 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.1815, allocations: 0 / 44.49 MB, free: 6.203 MB / 18.59 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003748/0.1853, allocations: 1.474 MB / 45.96 MB, free: 5.922 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/0.1854, allocations: 3.125 kB / 45.96 MB, free: 5.922 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004032/0.1858, allocations: 52.34 kB / 46.01 MB, free: 5.922 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/0.1879, allocations: 399.2 kB / 46.4 MB, free: 5.914 MB / 18.59 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.1881, allocations: 25.25 kB / 46.43 MB, free: 5.914 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.1898, allocations: 0.9782 MB / 47.41 MB, free: 5.395 MB / 18.59 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.1898, allocations: 5.594 kB / 47.41 MB, free: 5.395 MB / 18.59 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003686/0.1935, allocations: 1.344 MB / 48.76 MB, free: 4.969 MB / 18.59 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004595/0.1982, allocations: 2.163 MB / 50.92 MB, free: 3.098 MB / 18.59 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.1984, allocations: 109.8 kB / 51.03 MB, free: 2.996 MB / 18.59 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/0.1986, allocations: 23.56 kB / 51.05 MB, free: 2.977 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005463/0.1992, allocations: 46.59 kB / 51.1 MB, free: 2.945 MB / 18.59 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/0.1996, allocations: 153.9 kB / 51.25 MB, free: 2.844 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.1997, allocations: 40.25 kB / 51.28 MB, free: 2.812 MB / 18.59 MB Notification: Performance of sort global known variables: time 0.0002197/0.2, allocations: 164.5 kB / 51.45 MB, free: 2.66 MB / 18.59 MB Notification: Performance of remove unused functions: time 0.002005/0.202, allocations: 241.9 kB / 51.68 MB, free: 2.48 MB / 18.59 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: 18 (T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],P1.fireIn[1],P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],P2.feeding,P3.fireIn[1],P3.feeding) * Number of discrete states: 13 (P3.fireIn[1],P2.fireIn[1],P1.fireOut[1],P1.fireOut[2],P1.fireIn[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,T3.activation.weaklyOutputActiveVec[1],T3.activation.weaklyInputActiveVec[1],T3.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007368/0.2028, allocations: 225.2 kB / 51.9 MB, free: 2.289 MB / 18.59 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.2055, allocations: 1.005 MB / 52.91 MB, free: 1.379 MB / 18.59 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.2056, allocations: 0.5625 kB / 52.91 MB, free: 1.379 MB / 18.59 MB Notification: Performance of simCode: created simulation system equations: time 0.009312/0.2149, allocations: 0.5908 MB / 53.5 MB, free: 5.699 MB / 18.59 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.2155, allocations: 49.14 kB / 53.55 MB, free: 5.699 MB / 18.59 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.2191, allocations: 1.347 MB / 54.89 MB, free: 5.426 MB / 18.59 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009855/0.2202, allocations: 1.157 MB / 56.05 MB, free: 4.723 MB / 18.59 MB Notification: Performance of SimCode: time 1.132e-06/0.2202, allocations: 3 kB / 56.05 MB, free: 4.723 MB / 18.59 MB (rm -f ConPNlib_ConPNlib.Examples.Test12.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test12.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test12.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test12.fmu > ConPNlib_ConPNlib.Examples.Test12.pipe 2>&1)