Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.214/2.214, allocations: 387.2 MB / 394.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 185.6 kB / 487 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.605/1.605, allocations: 221.4 MB / 0.7819 GB, free: 6.707 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 99.5 kB / 0.9213 GB, free: 43.64 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3223/0.3234, allocations: 148.5 MB / 1.066 GB, free: 7.441 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.817/1.14, allocations: 142.3 MB / 1.205 GB, free: 72.7 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.587/5.727, allocations: 2.154 GB / 3.359 GB, free: 391.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/5.727, allocations: 83.95 kB / 3.359 GB, free: 391.2 MB / 1.151 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.051/7.778, allocations: 0.6589 GB / 4.018 GB, free: 155.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/7.778, allocations: 8 kB / 4.018 GB, free: 155.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002912/7.781, allocations: 0.5878 MB / 4.019 GB, free: 154.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02783/7.809, allocations: 13.21 MB / 4.032 GB, free: 141.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00112/7.81, allocations: 317.1 kB / 4.032 GB, free: 141 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/7.81, allocations: 40 kB / 4.032 GB, free: 141 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00121/7.812, allocations: 0.7412 MB / 4.033 GB, free: 140.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/7.813, allocations: 0.8949 MB / 4.034 GB, free: 139.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/7.813, allocations: 4 kB / 4.034 GB, free: 139.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.983e-05/7.813, allocations: 0 / 4.034 GB, free: 139.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.842e-05/7.813, allocations: 37.2 kB / 4.034 GB, free: 139.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005746/7.819, allocations: 3.167 MB / 4.037 GB, free: 136 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008102/7.82, allocations: 0.5389 MB / 4.037 GB, free: 135.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/7.82, allocations: 362.9 kB / 4.038 GB, free: 135.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007661/7.821, allocations: 1.033 MB / 4.039 GB, free: 133.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005522/7.821, allocations: 481.3 kB / 4.039 GB, free: 133.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=57): time 2.525e-06/7.821, allocations: 0 / 4.039 GB, free: 133.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=57): time 0.001707/7.823, allocations: 0.759 MB / 4.04 GB, free: 132.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/7.823, allocations: 140.9 kB / 4.04 GB, free: 132.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007305/7.824, allocations: 0.6529 MB / 4.041 GB, free: 131.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.708e-05/7.824, allocations: 29.7 kB / 4.041 GB, free: 131.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/7.824, allocations: 320.2 kB / 4.041 GB, free: 131.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/7.824, allocations: 185.2 kB / 4.041 GB, free: 131.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-05/7.824, allocations: 0 / 4.041 GB, free: 131.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.632e-05/7.824, allocations: 333.9 kB / 4.042 GB, free: 130.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/7.825, allocations: 313.1 kB / 4.042 GB, free: 130.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/7.825, allocations: 0.5031 MB / 4.042 GB, free: 130 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007596/7.826, allocations: 414.9 kB / 4.043 GB, free: 129.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/7.826, allocations: 0 / 4.043 GB, free: 129.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001442/7.827, allocations: 0.8964 MB / 4.044 GB, free: 128.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/7.827, allocations: 8.031 kB / 4.044 GB, free: 128.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/7.827, allocations: 7.938 kB / 4.044 GB, free: 128.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/7.827, allocations: 8 kB / 4.044 GB, free: 128.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/7.829, allocations: 223.7 kB / 4.044 GB, free: 128.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/7.829, allocations: 11.94 kB / 4.044 GB, free: 128.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/7.83, allocations: 287.3 kB / 4.044 GB, free: 128.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/7.83, allocations: 47.97 kB / 4.044 GB, free: 128.1 MB / 1.151 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.0002155/7.83, allocations: 160.5 kB / 4.044 GB, free: 128 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/7.831, allocations: 90.88 kB / 4.044 GB, free: 127.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/7.832, allocations: 0.8365 MB / 4.045 GB, free: 127 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/7.832, allocations: 8 kB / 4.045 GB, free: 127 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/7.832, allocations: 3.938 kB / 4.045 GB, free: 127 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/7.832, allocations: 11.89 kB / 4.045 GB, free: 127 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003862/7.836, allocations: 2.971 MB / 4.048 GB, free: 123.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/7.836, allocations: 8 kB / 4.048 GB, free: 123.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006304/7.837, allocations: 132.6 kB / 4.048 GB, free: 123.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/7.837, allocations: 12 kB / 4.048 GB, free: 123.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.676e-05/7.837, allocations: 19.98 kB / 4.048 GB, free: 123.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.659e-06/7.837, allocations: 15.92 kB / 4.048 GB, free: 123.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/7.837, allocations: 19.84 kB / 4.048 GB, free: 123.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001441/7.838, allocations: 1.524 MB / 4.05 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001723/7.84, allocations: 2.013 MB / 4.052 GB, free: 119.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004533/7.84, allocations: 307.8 kB / 4.052 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/7.841, allocations: 15.98 kB / 4.052 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/7.842, allocations: 135.8 kB / 4.052 GB, free: 119.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.162e-05/7.842, allocations: 47.86 kB / 4.052 GB, free: 119.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/7.842, allocations: 43.97 kB / 4.052 GB, free: 119 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0005462/7.842, allocations: 0.503 MB / 4.053 GB, free: 118.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002366/7.845, allocations: 0.5931 MB / 4.053 GB, free: 117.9 MB / 1.151 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.002605/7.847, allocations: 1.756 MB / 4.055 GB, free: 116.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001219/7.849, allocations: 0.7647 MB / 4.056 GB, free: 115.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/7.849, allocations: 0 / 4.056 GB, free: 115.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005322/7.849, allocations: 447.4 kB / 4.056 GB, free: 114.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/7.851, allocations: 340.5 kB / 4.057 GB, free: 114.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/7.854, allocations: 1.521 MB / 4.058 GB, free: 112.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007911/7.855, allocations: 1.18 MB / 4.059 GB, free: 111.7 MB / 1.151 GB Notification: Performance of SimCode: time 9.02e-07/7.855, allocations: 0 / 4.059 GB, free: 111.7 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)