Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.247/1.247, allocations: 249.4 MB / 256.7 MB, free: 6.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 185.2 kB / 316 MB, free: 3.523 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.23/1.23, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008803/0.0008803, allocations: 92.55 kB / 0.671 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.393/0.3939, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.5818, allocations: 106.3 MB / 0.8847 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.572/5.154, allocations: 2.431 GB / 3.316 GB, free: 317.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/5.155, allocations: 87.12 kB / 3.316 GB, free: 317.3 MB / 0.8698 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.463/6.617, allocations: 0.6334 GB / 3.949 GB, free: 20.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/6.617, allocations: 8 kB / 3.949 GB, free: 20.09 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002894/6.62, allocations: 0.5917 MB / 3.95 GB, free: 19.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02601/6.646, allocations: 12.76 MB / 3.962 GB, free: 6.559 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001179/6.647, allocations: 317 kB / 3.963 GB, free: 6.25 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003024/6.648, allocations: 47.98 kB / 3.963 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001536/6.649, allocations: 0.7647 MB / 3.964 GB, free: 5.438 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/6.651, allocations: 0.8924 MB / 3.964 GB, free: 4.508 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/6.651, allocations: 4 kB / 3.964 GB, free: 4.504 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/6.651, allocations: 0 / 3.964 GB, free: 4.504 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/6.651, allocations: 37.3 kB / 3.964 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006558/6.657, allocations: 3.276 MB / 3.968 GB, free: 1.105 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009234/6.658, allocations: 0.5505 MB / 3.968 GB, free: 0.5469 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004345/6.659, allocations: 362.2 kB / 3.969 GB, free: 196 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2923/6.951, allocations: 1.032 MB / 3.97 GB, free: 232.7 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007573/6.952, allocations: 487.6 kB / 3.97 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=58): time 2.675e-06/6.952, allocations: 0 / 3.97 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=58): time 0.001805/6.954, allocations: 0.7835 MB / 3.971 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/6.954, allocations: 143.5 kB / 3.971 GB, free: 232.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007517/6.955, allocations: 0.6521 MB / 3.972 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.775e-05/6.955, allocations: 25.7 kB / 3.972 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/6.955, allocations: 331.4 kB / 3.972 GB, free: 232.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/6.955, allocations: 182.6 kB / 3.972 GB, free: 232 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/6.955, allocations: 0 / 3.972 GB, free: 232 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.936e-05/6.955, allocations: 334.4 kB / 3.972 GB, free: 231.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/6.956, allocations: 321.5 kB / 3.973 GB, free: 231.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004952/6.956, allocations: 0.5128 MB / 3.973 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007358/6.957, allocations: 428.9 kB / 3.974 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/6.957, allocations: 2.156 kB / 3.974 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001463/6.958, allocations: 0.9338 MB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/6.958, allocations: 4.031 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/6.958, allocations: 3.594 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/6.958, allocations: 6.906 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/6.959, allocations: 237.2 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/6.959, allocations: 13.09 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/6.961, allocations: 291.9 kB / 3.975 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/6.961, allocations: 42.62 kB / 3.975 GB, free: 231.4 MB / 0.8698 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.0001911/6.961, allocations: 161.6 kB / 3.975 GB, free: 231.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/6.961, allocations: 91.62 kB / 3.975 GB, free: 231.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/6.963, allocations: 0.8582 MB / 3.976 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/6.963, allocations: 7.406 kB / 3.976 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/6.963, allocations: 0 / 3.976 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/6.963, allocations: 3.375 kB / 3.976 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/6.966, allocations: 3.055 MB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/6.966, allocations: 5.656 kB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006448/6.967, allocations: 140 kB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/6.967, allocations: 14.44 kB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.662e-05/6.967, allocations: 25.19 kB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/6.967, allocations: 16.69 kB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/6.967, allocations: 9.312 kB / 3.979 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00135/6.968, allocations: 1.577 MB / 3.981 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001545/6.97, allocations: 2.03 MB / 3.983 GB, free: 228 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004056/6.97, allocations: 310.2 kB / 3.983 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/6.971, allocations: 16.61 kB / 3.983 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/6.972, allocations: 131.7 kB / 3.983 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.315e-05/6.972, allocations: 52.91 kB / 3.983 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.933e-05/6.972, allocations: 52.17 kB / 3.983 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0005179/6.972, allocations: 0.5085 MB / 3.984 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002098/6.975, allocations: 0.5946 MB / 3.985 GB, free: 227.8 MB / 0.8698 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.001796/6.976, allocations: 1.765 MB / 3.986 GB, free: 227.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001055/6.977, allocations: 0.7838 MB / 3.987 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/6.977, allocations: 7.594 kB / 3.987 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004732/6.978, allocations: 451.9 kB / 3.987 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/6.979, allocations: 339.7 kB / 3.988 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/6.982, allocations: 1.522 MB / 3.989 GB, free: 226.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007801/6.983, allocations: 1.193 MB / 3.99 GB, free: 226 MB / 0.8698 GB Notification: Performance of SimCode: time 4.11e-07/6.983, allocations: 2.438 kB / 3.99 GB, free: 226 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)