Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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/BuildingSystems 2.0.0-master/package.mo): time 0.7049/0.7049, allocations: 141.8 MB / 149.1 MB, free: 13.2 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001132, allocations: 184.8 kB / 181.9 MB, free: 9.879 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 221.3 MB / 436 MB, free: 2.426 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000947/0.000947, allocations: 106.3 kB / 0.507 GB, free: 17.79 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001777/0.001777, allocations: 265.2 kB / 0.5884 GB, free: 3.863 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3402/0.342, allocations: 89.64 MB / 0.676 GB, free: 136.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.4681, allocations: 82.77 MB / 0.7568 GB, free: 83.28 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.858/4.326, allocations: 2.114 GB / 2.871 GB, free: 269.4 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/4.326, allocations: 94.14 kB / 2.871 GB, free: 269.3 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 1.906/6.232, allocations: 0.6609 GB / 3.532 GB, free: 117.8 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/6.232, allocations: 15.97 kB / 3.532 GB, free: 117.8 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/6.235, allocations: 0.5866 MB / 3.533 GB, free: 117.8 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02944/6.265, allocations: 13.21 MB / 3.546 GB, free: 116.9 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001191/6.266, allocations: 312.2 kB / 3.546 GB, free: 116.9 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003596/6.266, allocations: 41.97 kB / 3.546 GB, free: 116.9 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001624/6.268, allocations: 0.7359 MB / 3.547 GB, free: 116.9 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/6.27, allocations: 0.8983 MB / 3.548 GB, free: 116.7 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/6.27, allocations: 3.594 kB / 3.548 GB, free: 116.7 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/6.27, allocations: 10.05 kB / 3.548 GB, free: 116.7 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.367e-05/6.27, allocations: 31.45 kB / 3.548 GB, free: 116.7 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006714/6.277, allocations: 3.161 MB / 3.551 GB, free: 115.9 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009704/6.278, allocations: 0.5462 MB / 3.551 GB, free: 115.8 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005065/6.278, allocations: 360.8 kB / 3.552 GB, free: 115.8 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008601/6.279, allocations: 1.032 MB / 3.553 GB, free: 114.7 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006645/6.28, allocations: 472.8 kB / 3.553 GB, free: 114.6 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=57): time 4.478e-06/6.28, allocations: 0 / 3.553 GB, free: 114.6 MB / 0.7138 GB Notification: Performance of matching and sorting (n=57): time 0.002244/6.282, allocations: 0.7653 MB / 3.554 GB, free: 114.5 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/6.282, allocations: 136.2 kB / 3.554 GB, free: 114.3 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/6.283, allocations: 0.659 MB / 3.555 GB, free: 114.2 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001217/6.283, allocations: 25.7 kB / 3.555 GB, free: 114.2 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/6.284, allocations: 326.3 kB / 3.555 GB, free: 114 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/6.284, allocations: 181.8 kB / 3.555 GB, free: 113.9 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/6.284, allocations: 3.938 kB / 3.555 GB, free: 113.9 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001147/6.284, allocations: 330.8 kB / 3.555 GB, free: 113.6 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005379/6.284, allocations: 313.9 kB / 3.556 GB, free: 113.5 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006017/6.285, allocations: 0.497 MB / 3.556 GB, free: 113.1 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008559/6.286, allocations: 414.6 kB / 3.557 GB, free: 113 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/6.286, allocations: 3.094 kB / 3.557 GB, free: 113 MB / 0.7138 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001725/6.288, allocations: 0.8969 MB / 3.558 GB, free: 112.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/6.288, allocations: 9.594 kB / 3.558 GB, free: 112.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/6.288, allocations: 3.625 kB / 3.558 GB, free: 112.7 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/6.288, allocations: 6.375 kB / 3.558 GB, free: 112.7 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/6.289, allocations: 227.6 kB / 3.558 GB, free: 112.7 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/6.289, allocations: 7.875 kB / 3.558 GB, free: 112.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/6.29, allocations: 294.8 kB / 3.558 GB, free: 112.6 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/6.291, allocations: 43.34 kB / 3.558 GB, free: 112.6 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * 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.0002178/6.291, allocations: 162.2 kB / 3.558 GB, free: 112.5 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/6.291, allocations: 92.44 kB / 3.558 GB, free: 112.4 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/6.293, allocations: 0.8396 MB / 3.559 GB, free: 112.1 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/6.293, allocations: 6.625 kB / 3.559 GB, free: 112.1 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/6.293, allocations: 3.75 kB / 3.559 GB, free: 112.1 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/6.293, allocations: 3.891 kB / 3.559 GB, free: 112.1 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004219/6.297, allocations: 2.978 MB / 3.562 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/6.297, allocations: 7 kB / 3.562 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006475/6.298, allocations: 130.7 kB / 3.562 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.4e-05/6.298, allocations: 10.09 kB / 3.562 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-05/6.298, allocations: 21.48 kB / 3.562 GB, free: 110.6 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/6.298, allocations: 21.62 kB / 3.562 GB, free: 110.5 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/6.298, allocations: 11.56 kB / 3.562 GB, free: 110.5 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001652/6.299, allocations: 1.527 MB / 3.564 GB, free: 109.3 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002001/6.301, allocations: 1.994 MB / 3.566 GB, free: 107.5 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005525/6.302, allocations: 310.7 kB / 3.566 GB, free: 107.3 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/6.302, allocations: 19.56 kB / 3.566 GB, free: 107.3 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/6.303, allocations: 125 kB / 3.566 GB, free: 107.3 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/6.304, allocations: 54.5 kB / 3.566 GB, free: 107.3 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/6.304, allocations: 49.09 kB / 3.566 GB, free: 107.3 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0007512/6.304, allocations: 0.4989 MB / 3.567 GB, free: 107 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002739/6.307, allocations: 0.5973 MB / 3.567 GB, free: 106.7 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002811/6.31, allocations: 1.751 MB / 3.569 GB, free: 106.2 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001351/6.311, allocations: 0.7765 MB / 3.57 GB, free: 105.9 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/6.311, allocations: 3.406 kB / 3.57 GB, free: 105.9 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0006043/6.312, allocations: 441.7 kB / 3.57 GB, free: 105.7 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/6.314, allocations: 345 kB / 3.571 GB, free: 105.6 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/6.317, allocations: 1.532 MB / 3.572 GB, free: 104.7 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/6.319, allocations: 1.175 MB / 3.573 GB, free: 103.8 MB / 0.7138 GB Notification: Performance of SimCode: time 5.11e-07/6.319, allocations: 0 / 3.573 GB, free: 103.8 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)