Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System3.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.Examples.Tutorial.SpaceCooling.System3,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System3,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System3",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.251/1.251, allocations: 249.4 MB / 256.7 MB, free: 7.008 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.001141/0.001141, allocations: 181.1 kB / 316 MB, free: 3.57 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.112/1.112, allocations: 205.1 MB / 0.5667 GB, free: 15.69 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.0008741/0.0008741, allocations: 96.34 kB / 0.671 GB, free: 4.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3257/0.3266, allocations: 112.4 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.4822, allocations: 106.3 MB / 0.8846 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.441/4.924, allocations: 2.547 GB / 3.432 GB, free: 192.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/4.924, allocations: 83.95 kB / 3.432 GB, free: 192.1 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: 1766 * Number of variables: 1766 Notification: Performance of Generate backend data structure: time 12.61/17.53, allocations: 4.053 GB / 7.485 GB, free: 92.02 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/17.53, allocations: 12.59 kB / 7.485 GB, free: 92.02 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01891/17.55, allocations: 2.783 MB / 7.488 GB, free: 91.48 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02701/17.58, allocations: 10.21 MB / 7.498 GB, free: 90.11 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003613/17.58, allocations: 222.3 kB / 7.498 GB, free: 90.11 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002429/17.58, allocations: 420 kB / 7.499 GB, free: 90.11 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01597/17.6, allocations: 7.798 MB / 7.506 GB, free: 90.07 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01913/17.62, allocations: 8.036 MB / 7.514 GB, free: 89.41 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003037/17.62, allocations: 9.844 kB / 7.514 GB, free: 89.41 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001524/17.62, allocations: 12.94 kB / 7.514 GB, free: 89.41 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000321/17.62, allocations: 316.8 kB / 7.515 GB, free: 89.38 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06416/17.68, allocations: 37.87 MB / 7.552 GB, free: 70.12 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006218/17.69, allocations: 3.631 MB / 7.555 GB, free: 68.8 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005217/17.69, allocations: 3.259 MB / 7.558 GB, free: 67.62 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001598/17.7, allocations: 1.401 MB / 7.56 GB, free: 66.19 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004885/17.7, allocations: 3.153 MB / 7.563 GB, free: 64.11 MB / 1.026 GB Notification: Performance of pre-optimization done (n=463): time 5.871e-06/17.7, allocations: 0 / 7.563 GB, free: 64.11 MB / 1.026 GB Notification: Performance of matching and sorting (n=474): time 0.03403/17.74, allocations: 13.63 MB / 7.576 GB, free: 52.22 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.814e-05/17.74, allocations: 337.5 kB / 7.576 GB, free: 51.82 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008872/17.74, allocations: 5.293 MB / 7.581 GB, free: 47.22 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.001358/17.75, allocations: 34.27 kB / 7.582 GB, free: 47.18 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.002924/17.75, allocations: 2.445 MB / 7.584 GB, free: 45.09 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.003328/17.75, allocations: 1.57 MB / 7.585 GB, free: 43.59 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003203/17.75, allocations: 0 / 7.585 GB, free: 43.59 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0002516/17.75, allocations: 0.4885 MB / 7.586 GB, free: 43.09 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003053/17.76, allocations: 2.317 MB / 7.588 GB, free: 40.77 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003565/17.76, allocations: 3.536 MB / 7.592 GB, free: 36.78 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00461/17.76, allocations: 3.139 MB / 7.595 GB, free: 33.63 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/17.76, allocations: 4 kB / 7.595 GB, free: 33.62 MB / 1.026 GB Notification: Performance of matching and sorting (n=609) (initialization): time 0.01273/17.78, allocations: 7.099 MB / 7.602 GB, free: 26.47 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.001702/17.78, allocations: 10.63 MB / 7.612 GB, free: 15.19 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.636e-05/17.78, allocations: 25.16 kB / 7.612 GB, free: 15.16 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002083/17.78, allocations: 0.6188 MB / 7.613 GB, free: 14.55 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005326/17.79, allocations: 1.044 MB / 7.614 GB, free: 13.5 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009823/17.8, allocations: 9.114 MB / 7.623 GB, free: 3.961 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009188/17.8, allocations: 0.5601 MB / 7.623 GB, free: 3.441 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/17.81, allocations: 211.8 kB / 7.623 GB, free: 3.234 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/17.81, allocations: 4 kB / 7.623 GB, free: 3.23 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.8896/18.7, allocations: 6.43 MB / 7.63 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.837e-05/18.7, allocations: 27.5 kB / 7.63 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/18.7, allocations: 0.6196 MB / 7.63 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005059/18.7, allocations: 1.042 MB / 7.631 GB, free: 158.9 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/18.71, allocations: 10.03 MB / 7.641 GB, free: 152.7 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008314/18.72, allocations: 0.5542 MB / 7.642 GB, free: 152.7 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000778/18.72, allocations: 201.9 kB / 7.642 GB, free: 152.7 MB / 1.026 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fan.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.con.y,con.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (564): * Single equations (assignments): 556 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 4 {2 23,1 4,1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001306/18.72, allocations: 217.3 kB / 7.642 GB, free: 152.6 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001722/18.73, allocations: 0.6588 MB / 7.643 GB, free: 152.6 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/18.74, allocations: 6.937 MB / 7.649 GB, free: 152.3 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.834e-05/18.74, allocations: 50.2 kB / 7.649 GB, free: 152.3 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/18.74, allocations: 3.75 kB / 7.649 GB, free: 152.3 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008452/18.75, allocations: 5.688 MB / 7.655 GB, free: 151.8 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0267/18.77, allocations: 15.29 MB / 7.67 GB, free: 150.6 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/18.77, allocations: 3.094 kB / 7.67 GB, free: 150.6 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004878/18.78, allocations: 1.028 MB / 7.671 GB, free: 150.6 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/18.78, allocations: 397.5 kB / 7.671 GB, free: 150.6 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000352/18.78, allocations: 71.92 kB / 7.671 GB, free: 150.6 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007152/18.79, allocations: 9.101 MB / 7.68 GB, free: 143.4 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/18.79, allocations: 3.656 kB / 7.68 GB, free: 143.4 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01459/18.8, allocations: 10.31 MB / 7.69 GB, free: 142.8 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01944/18.82, allocations: 14.97 MB / 7.705 GB, free: 141.7 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004764/18.83, allocations: 1.602 MB / 7.707 GB, free: 141.3 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001651/18.83, allocations: 29.66 kB / 7.707 GB, free: 141.3 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006411/18.83, allocations: 0.5476 MB / 7.707 GB, free: 141.2 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000468/18.83, allocations: 260 kB / 7.707 GB, free: 141.2 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004473/18.84, allocations: 180 kB / 7.708 GB, free: 141.2 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.006209/18.84, allocations: 4.05 MB / 7.711 GB, free: 141 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.02475/18.87, allocations: 6.073 MB / 7.717 GB, free: 141 MB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 24 (vol.dynBal.medium.X[2],vol.dynBal.medium.dT,vol.dynBal.m,fan.filter.x[1],fan.filter.x[2],cooCoi.ele[1].vol1.dynBal.U,cooCoi.ele[1].vol2.dynBal.U,cooCoi.ele[1].vol2.dynBal.mXi[1],cooCoi.ele[1].mas.T,cooCoi.ele[2].vol1.dynBal.U,cooCoi.ele[2].vol2.dynBal.U,cooCoi.ele[2].vol2.dynBal.mXi[1],cooCoi.ele[2].mas.T,cooCoi.ele[3].vol1.dynBal.U,cooCoi.ele[3].vol2.dynBal.U,cooCoi.ele[3].vol2.dynBal.mXi[1],cooCoi.ele[3].mas.T,cooCoi.ele[4].vol1.dynBal.U,cooCoi.ele[4].vol2.dynBal.U,cooCoi.ele[4].vol2.dynBal.m,cooCoi.ele[4].vol2.dynBal.mXi[1],cooCoi.ele[4].mas.T,senTemHXOut.T,senTemSupAir.T) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,con.y) * Number of discrete states: 3 (weaDat.conTimMin.tNext,weaDat.conTim.tNext,con.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (478): * Single equations (assignments): 465 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009895/18.88, allocations: 8.062 MB / 7.725 GB, free: 137.5 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.01414/18.89, allocations: 10.21 MB / 7.735 GB, free: 136.4 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/18.89, allocations: 6.719 kB / 7.735 GB, free: 136.4 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.004493/18.89, allocations: 3.465 MB / 7.739 GB, free: 135.9 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0166/18.91, allocations: 3.489 MB / 7.742 GB, free: 135.8 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03204/18.94, allocations: 15.52 MB / 7.757 GB, free: 133.2 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008553/18.95, allocations: 6.437 MB / 7.763 GB, free: 132.3 MB / 1.026 GB Notification: Performance of SimCode: time 8.92e-07/18.95, allocations: 0 / 7.763 GB, free: 132.3 MB / 1.026 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System3.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System3.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System3.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System3_fmu --startTime=1.5552e+07 --stopTime=1.56384e+07 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System3.fmu > Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System3.pipe 2>&1)