Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_0_0_Buildings_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/Buildings 8.0.0/package.mo): time 2.923/2.923, allocations: 284.8 MB / 292.1 MB, free: 10.8 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001631/0.001631, allocations: 185.3 kB / 360.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.1 MB / 0.6187 GB, free: 13.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001276/0.001275, allocations: 91.55 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3099/0.3112, allocations: 121.4 MB / 0.8502 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6575/0.9687, allocations: 115.2 MB / 0.9627 GB, free: 78.58 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.782/6.751, allocations: 2.313 GB / 3.276 GB, free: 77.39 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004229/6.751, allocations: 84.69 kB / 3.276 GB, free: 77.34 MB / 0.9323 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 3.232/9.983, allocations: 0.6523 GB / 3.928 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/9.983, allocations: 11.94 kB / 3.928 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005304/9.989, allocations: 0.5879 MB / 3.929 GB, free: 139.2 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04511/10.03, allocations: 13.12 MB / 3.942 GB, free: 125.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002441/10.04, allocations: 325 kB / 3.942 GB, free: 125.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004501/10.04, allocations: 44 kB / 3.942 GB, free: 125.5 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002486/10.04, allocations: 0.7608 MB / 3.943 GB, free: 124.8 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/10.04, allocations: 0.8909 MB / 3.944 GB, free: 123.9 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/10.04, allocations: 0 / 3.944 GB, free: 123.9 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/10.04, allocations: 4 kB / 3.944 GB, free: 123.8 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.006e-05/10.04, allocations: 33.3 kB / 3.944 GB, free: 123.8 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/10.05, allocations: 3.165 MB / 3.947 GB, free: 120.6 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/10.05, allocations: 0.5589 MB / 3.947 GB, free: 120 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000822/10.06, allocations: 359 kB / 3.948 GB, free: 119.7 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001133/10.06, allocations: 1.033 MB / 3.949 GB, free: 118.4 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/10.06, allocations: 481.4 kB / 3.949 GB, free: 117.9 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=58): time 3.837e-06/10.06, allocations: 0 / 3.949 GB, free: 117.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=58): time 0.003171/10.06, allocations: 0.7901 MB / 3.95 GB, free: 117.1 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/10.06, allocations: 136.9 kB / 3.95 GB, free: 117 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/10.06, allocations: 0.6568 MB / 3.951 GB, free: 116.3 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0002023/10.06, allocations: 29.7 kB / 3.951 GB, free: 116.3 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/10.06, allocations: 324.2 kB / 3.951 GB, free: 115.9 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/10.06, allocations: 189.2 kB / 3.951 GB, free: 115.8 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/10.06, allocations: 4 kB / 3.951 GB, free: 115.8 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.968e-05/10.06, allocations: 326 kB / 3.952 GB, free: 115.4 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008469/10.06, allocations: 317.2 kB / 3.952 GB, free: 115.1 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/10.07, allocations: 0.5273 MB / 3.952 GB, free: 114.5 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/10.07, allocations: 425 kB / 3.953 GB, free: 114.1 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/10.07, allocations: 0 / 3.953 GB, free: 114.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003018/10.07, allocations: 0.9322 MB / 3.954 GB, free: 113.2 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/10.07, allocations: 7.984 kB / 3.954 GB, free: 113.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/10.07, allocations: 4 kB / 3.954 GB, free: 113.2 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/10.07, allocations: 12.34 kB / 3.954 GB, free: 113.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/10.07, allocations: 239.6 kB / 3.954 GB, free: 112.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/10.07, allocations: 11.98 kB / 3.954 GB, free: 112.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/10.08, allocations: 279.4 kB / 3.954 GB, free: 112.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/10.08, allocations: 51.95 kB / 3.954 GB, free: 112.6 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (69): * Single equations (assignments): 68 * 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.0003862/10.08, allocations: 159.9 kB / 3.954 GB, free: 112.4 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003229/10.08, allocations: 98.86 kB / 3.955 GB, free: 112.3 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002914/10.08, allocations: 0.8522 MB / 3.955 GB, free: 111.4 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.136e-05/10.08, allocations: 8 kB / 3.955 GB, free: 111.4 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/10.08, allocations: 0 / 3.955 GB, free: 111.4 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/10.08, allocations: 3.984 kB / 3.955 GB, free: 111.4 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007593/10.09, allocations: 3.058 MB / 3.958 GB, free: 108.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/10.09, allocations: 8 kB / 3.958 GB, free: 108.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/10.09, allocations: 136.3 kB / 3.958 GB, free: 108.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.982e-05/10.09, allocations: 12 kB / 3.959 GB, free: 108.1 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/10.09, allocations: 23.97 kB / 3.959 GB, free: 108.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.345e-05/10.09, allocations: 15.84 kB / 3.959 GB, free: 108 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/10.09, allocations: 12 kB / 3.959 GB, free: 108 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002841/10.09, allocations: 1.571 MB / 3.96 GB, free: 106.1 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003239/10.1, allocations: 2.035 MB / 3.962 GB, free: 103.8 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009565/10.1, allocations: 311.7 kB / 3.962 GB, free: 103.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/10.1, allocations: 12 kB / 3.962 GB, free: 103.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/10.1, allocations: 139.7 kB / 3.963 GB, free: 103.3 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/10.1, allocations: 63.59 kB / 3.963 GB, free: 103.3 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/10.1, allocations: 47.95 kB / 3.963 GB, free: 103.2 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001061/10.1, allocations: 0.5031 MB / 3.963 GB, free: 102.7 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.003929/10.1, allocations: 0.5893 MB / 3.964 GB, free: 102.1 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (57): * Single equations (assignments): 52 * 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.00345/10.11, allocations: 1.764 MB / 3.965 GB, free: 100.3 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002351/10.11, allocations: 0.7811 MB / 3.966 GB, free: 99.5 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/10.11, allocations: 4 kB / 3.966 GB, free: 99.49 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001079/10.11, allocations: 453.3 kB / 3.967 GB, free: 99.04 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/10.12, allocations: 347.5 kB / 3.967 GB, free: 98.71 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00555/10.12, allocations: 1.543 MB / 3.968 GB, free: 97.04 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/10.12, allocations: 1.192 MB / 3.97 GB, free: 95.82 MB / 0.9323 GB Notification: Performance of SimCode: time 2.315e-06/10.12, allocations: 0 / 3.97 GB, free: 95.82 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)