Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.618/1.618, allocations: 289.8 MB / 297.1 MB, free: 6.68 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.0014/0.001401, allocations: 177.3 kB / 366.3 MB, free: 1.992 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.792/1.792, allocations: 205.1 MB / 0.6256 GB, free: 5.867 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.0009556/0.0009556, allocations: 94.03 kB / 0.7396 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3239/0.3249, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7842/1.109, allocations: 116.3 MB / 0.9726 GB, free: 68.21 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.219/6.328, allocations: 2.314 GB / 3.287 GB, free: 90.75 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/6.328, allocations: 85.33 kB / 3.287 GB, free: 90.7 MB / 0.948 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 2.351/8.679, allocations: 0.6523 GB / 3.939 GB, free: 167.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/8.679, allocations: 8 kB / 3.939 GB, free: 167.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002964/8.682, allocations: 0.5839 MB / 3.94 GB, free: 167.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02763/8.71, allocations: 13.11 MB / 3.953 GB, free: 153.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001199/8.711, allocations: 321.1 kB / 3.953 GB, free: 153.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/8.711, allocations: 40 kB / 3.953 GB, free: 153.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001525/8.713, allocations: 0.7686 MB / 3.954 GB, free: 152.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/8.714, allocations: 0.8871 MB / 3.955 GB, free: 151.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/8.714, allocations: 0 / 3.955 GB, free: 151.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.312e-05/8.714, allocations: 4 kB / 3.955 GB, free: 151.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.748e-05/8.714, allocations: 33.3 kB / 3.955 GB, free: 151.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006304/8.721, allocations: 3.171 MB / 3.958 GB, free: 148.5 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/8.722, allocations: 0.5589 MB / 3.958 GB, free: 147.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004423/8.722, allocations: 364.8 kB / 3.959 GB, free: 147.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/8.723, allocations: 1.029 MB / 3.96 GB, free: 146.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006791/8.724, allocations: 481.4 kB / 3.96 GB, free: 145.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=58): time 3.356e-06/8.724, allocations: 0 / 3.96 GB, free: 145.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=58): time 0.002261/8.726, allocations: 0.7902 MB / 3.961 GB, free: 145 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/8.726, allocations: 144.4 kB / 3.961 GB, free: 144.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009491/8.727, allocations: 0.6529 MB / 3.962 GB, free: 144.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.99e-05/8.727, allocations: 29.7 kB / 3.962 GB, free: 144.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/8.727, allocations: 328.2 kB / 3.962 GB, free: 143.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/8.728, allocations: 189.2 kB / 3.962 GB, free: 143.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/8.728, allocations: 4 kB / 3.962 GB, free: 143.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.45e-05/8.728, allocations: 330 kB / 3.963 GB, free: 143.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/8.728, allocations: 317.2 kB / 3.963 GB, free: 143 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005982/8.729, allocations: 0.5211 MB / 3.963 GB, free: 142.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008371/8.73, allocations: 421 kB / 3.964 GB, free: 142 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/8.73, allocations: 4 kB / 3.964 GB, free: 142 MB / 0.948 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001672/8.731, allocations: 0.9283 MB / 3.965 GB, free: 141.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/8.731, allocations: 8 kB / 3.965 GB, free: 141 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/8.731, allocations: 4 kB / 3.965 GB, free: 141 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/8.731, allocations: 4.406 kB / 3.965 GB, free: 141 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/8.733, allocations: 243.6 kB / 3.965 GB, free: 140.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/8.733, allocations: 11.97 kB / 3.965 GB, free: 140.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/8.734, allocations: 287.3 kB / 3.965 GB, free: 140.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/8.734, allocations: 51.95 kB / 3.965 GB, free: 140.5 MB / 0.948 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.0002338/8.735, allocations: 153.2 kB / 3.965 GB, free: 140.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/8.735, allocations: 94.91 kB / 3.966 GB, free: 140.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/8.736, allocations: 0.8599 MB / 3.966 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/8.736, allocations: 8 kB / 3.966 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/8.736, allocations: 0 / 3.966 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/8.736, allocations: 3.984 kB / 3.966 GB, free: 139.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/8.74, allocations: 3.064 MB / 3.969 GB, free: 136.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/8.741, allocations: 8 kB / 3.969 GB, free: 136.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006938/8.741, allocations: 132.2 kB / 3.97 GB, free: 136 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/8.741, allocations: 12 kB / 3.97 GB, free: 136 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.406e-05/8.741, allocations: 27.97 kB / 3.97 GB, free: 135.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/8.741, allocations: 11.94 kB / 3.97 GB, free: 135.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/8.741, allocations: 15.84 kB / 3.97 GB, free: 135.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001743/8.743, allocations: 1.574 MB / 3.971 GB, free: 134 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002009/8.745, allocations: 2.034 MB / 3.973 GB, free: 131.7 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005768/8.746, allocations: 311.7 kB / 3.973 GB, free: 131.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/8.746, allocations: 15.98 kB / 3.973 GB, free: 131.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/8.747, allocations: 131.9 kB / 3.974 GB, free: 131.2 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/8.747, allocations: 59.7 kB / 3.974 GB, free: 131.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.96e-05/8.747, allocations: 43.97 kB / 3.974 GB, free: 131.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0007605/8.748, allocations: 0.5069 MB / 3.974 GB, free: 130.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002851/8.751, allocations: 0.597 MB / 3.975 GB, free: 130 MB / 0.948 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.002546/8.754, allocations: 1.75 MB / 3.976 GB, free: 128.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001324/8.755, allocations: 0.789 MB / 3.977 GB, free: 127.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/8.755, allocations: 0.8125 kB / 3.977 GB, free: 127.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005063/8.755, allocations: 457.4 kB / 3.978 GB, free: 126.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/8.757, allocations: 347.7 kB / 3.978 GB, free: 126.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003268/8.761, allocations: 1.548 MB / 3.979 GB, free: 124.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/8.762, allocations: 1.184 MB / 3.981 GB, free: 123.7 MB / 0.948 GB Notification: Performance of SimCode: time 1.363e-06/8.762, allocations: 4 kB / 3.981 GB, free: 123.7 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)