Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.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.System2,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System2,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System2",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.216/1.216, allocations: 249.4 MB / 256.7 MB, free: 0.8047 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009648/0.0009647, allocations: 188.1 kB / 316 MB, free: 8.996 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.224/1.224, allocations: 205.1 MB / 0.5667 GB, free: 13.46 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 90.09 kB / 0.671 GB, free: 51.67 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2076/0.2084, allocations: 112.5 MB / 0.7808 GB, free: 9.918 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5148/0.7233, allocations: 106.3 MB / 0.8846 GB, free: 89.16 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.218/4.942, allocations: 2.546 GB / 3.43 GB, free: 185.6 MB / 0.8778 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/4.942, allocations: 92.7 kB / 3.431 GB, free: 185.5 MB / 0.8778 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1757 * Number of variables: 1757 Notification: Performance of Generate backend data structure: time 12.5/17.44, allocations: 4.052 GB / 7.483 GB, free: 90.33 MB / 1.018 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/17.44, allocations: 14.59 kB / 7.483 GB, free: 90.33 MB / 1.018 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01862/17.46, allocations: 2.774 MB / 7.486 GB, free: 89.8 MB / 1.018 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02903/17.49, allocations: 10.2 MB / 7.496 GB, free: 88.38 MB / 1.018 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004845/17.49, allocations: 223.4 kB / 7.496 GB, free: 88.38 MB / 1.018 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002863/17.49, allocations: 410.7 kB / 7.496 GB, free: 88.38 MB / 1.018 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01831/17.51, allocations: 7.784 MB / 7.504 GB, free: 88.34 MB / 1.018 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02462/17.53, allocations: 8.014 MB / 7.512 GB, free: 87.68 MB / 1.018 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003586/17.53, allocations: 13.59 kB / 7.512 GB, free: 87.67 MB / 1.018 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00218/17.54, allocations: 7.844 kB / 7.512 GB, free: 87.67 MB / 1.018 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002488/17.54, allocations: 311.5 kB / 7.512 GB, free: 87.66 MB / 1.018 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07914/17.62, allocations: 37.8 MB / 7.549 GB, free: 61.87 MB / 1.018 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006267/17.62, allocations: 3.452 MB / 7.552 GB, free: 58.43 MB / 1.018 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005343/17.63, allocations: 3.211 MB / 7.555 GB, free: 55.23 MB / 1.018 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001725/17.63, allocations: 1.395 MB / 7.557 GB, free: 53.58 MB / 1.018 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00605/17.64, allocations: 3.112 MB / 7.56 GB, free: 50.44 MB / 1.018 GB Notification: Performance of pre-optimization done (n=456): time 8.426e-06/17.64, allocations: 4 kB / 7.56 GB, free: 50.44 MB / 1.018 GB Notification: Performance of matching and sorting (n=460): time 0.04452/17.68, allocations: 15.32 MB / 7.575 GB, free: 34.99 MB / 1.018 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/17.68, allocations: 423.3 kB / 7.575 GB, free: 34.49 MB / 1.018 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01251/17.69, allocations: 5.312 MB / 7.58 GB, free: 29.19 MB / 1.018 GB Notification: Performance of collectPreVariables (initialization): time 0.001485/17.69, allocations: 33.7 kB / 7.58 GB, free: 29.15 MB / 1.018 GB Notification: Performance of collectInitialEqns (initialization): time 0.003514/17.7, allocations: 2.439 MB / 7.583 GB, free: 26.68 MB / 1.018 GB Notification: Performance of collectInitialBindings (initialization): time 0.003642/17.7, allocations: 1.528 MB / 7.584 GB, free: 25.13 MB / 1.018 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/17.7, allocations: 0 / 7.584 GB, free: 25.13 MB / 1.018 GB Notification: Performance of setup shared object (initialization): time 0.0004629/17.7, allocations: 499.7 kB / 7.585 GB, free: 24.64 MB / 1.018 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003878/17.71, allocations: 2.262 MB / 7.587 GB, free: 22.37 MB / 1.018 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004832/17.71, allocations: 3.479 MB / 7.59 GB, free: 18.44 MB / 1.018 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005887/17.72, allocations: 3.077 MB / 7.593 GB, free: 15.39 MB / 1.018 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.186e-05/17.72, allocations: 9.344 kB / 7.593 GB, free: 15.38 MB / 1.018 GB Notification: Performance of matching and sorting (n=598) (initialization): time 0.01463/17.73, allocations: 6.737 MB / 7.6 GB, free: 8.648 MB / 1.018 GB Notification: Performance of prepare postOptimizeDAE: time 0.8412/18.57, allocations: 10.63 MB / 7.61 GB, free: 165.5 MB / 1.018 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/18.57, allocations: 27.95 kB / 7.61 GB, free: 165.5 MB / 1.018 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/18.58, allocations: 356.5 kB / 7.611 GB, free: 165.5 MB / 1.018 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005698/18.58, allocations: 1.07 MB / 7.612 GB, free: 165.5 MB / 1.018 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005621/18.59, allocations: 6.267 MB / 7.618 GB, free: 160.8 MB / 1.018 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008513/18.6, allocations: 0.5374 MB / 7.618 GB, free: 160.8 MB / 1.018 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001166/18.6, allocations: 198.5 kB / 7.619 GB, free: 160.8 MB / 1.018 GB Notification: Performance of prepare postOptimizeDAE: time 9.408e-06/18.6, allocations: 12.86 kB / 7.619 GB, free: 160.8 MB / 1.018 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01134/18.61, allocations: 6.067 MB / 7.625 GB, free: 160.6 MB / 1.018 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-05/18.61, allocations: 32.44 kB / 7.625 GB, free: 160.6 MB / 1.018 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/18.61, allocations: 369.4 kB / 7.625 GB, free: 160.5 MB / 1.018 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005295/18.61, allocations: 1.053 MB / 7.626 GB, free: 160.5 MB / 1.018 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006742/18.62, allocations: 6.596 MB / 7.632 GB, free: 155.6 MB / 1.018 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009008/18.63, allocations: 0.5216 MB / 7.633 GB, free: 155.6 MB / 1.018 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/18.63, allocations: 196.1 kB / 7.633 GB, free: 155.6 MB / 1.018 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: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (577): * Single equations (assignments): 569 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 3 {1 4,1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001568/18.63, allocations: 222.5 kB / 7.633 GB, free: 155.5 MB / 1.018 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002012/18.64, allocations: 0.6564 MB / 7.634 GB, free: 155.5 MB / 1.018 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/18.65, allocations: 6.712 MB / 7.64 GB, free: 155.2 MB / 1.018 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.511e-05/18.65, allocations: 49.12 kB / 7.641 GB, free: 155.2 MB / 1.018 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.788e-05/18.65, allocations: 3 kB / 7.641 GB, free: 155.2 MB / 1.018 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009847/18.66, allocations: 5.496 MB / 7.646 GB, free: 154.7 MB / 1.018 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03208/18.69, allocations: 14.83 MB / 7.66 GB, free: 153.6 MB / 1.018 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/18.69, allocations: 3.406 kB / 7.66 GB, free: 153.6 MB / 1.018 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005352/18.7, allocations: 0.9911 MB / 7.661 GB, free: 153.6 MB / 1.018 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001391/18.7, allocations: 366.1 kB / 7.662 GB, free: 153.5 MB / 1.018 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000824/18.7, allocations: 77.64 kB / 7.662 GB, free: 153.5 MB / 1.018 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008107/18.71, allocations: 9.066 MB / 7.671 GB, free: 146.3 MB / 1.018 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/18.71, allocations: 4.406 kB / 7.671 GB, free: 146.3 MB / 1.018 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0207/18.73, allocations: 10.35 MB / 7.681 GB, free: 145.4 MB / 1.018 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02439/18.75, allocations: 14.87 MB / 7.695 GB, free: 143.9 MB / 1.018 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005847/18.76, allocations: 1.585 MB / 7.697 GB, free: 143.5 MB / 1.018 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003148/18.76, allocations: 35.59 kB / 7.697 GB, free: 143.5 MB / 1.018 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007886/18.77, allocations: 496.7 kB / 7.697 GB, free: 143.4 MB / 1.018 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009677/18.77, allocations: 246.6 kB / 7.698 GB, free: 143.4 MB / 1.018 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001/18.77, allocations: 178.8 kB / 7.698 GB, free: 143.4 MB / 1.018 GB Notification: Performance of sort global known variables: time 0.009417/18.78, allocations: 4.063 MB / 7.702 GB, free: 143.2 MB / 1.018 GB Notification: Performance of remove unused functions: time 0.03493/18.82, allocations: 5.954 MB / 7.708 GB, free: 143.2 MB / 1.018 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 24 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (461): * Single equations (assignments): 448 * 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%) 7,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01494/18.83, allocations: 8.052 MB / 7.715 GB, free: 139.7 MB / 1.018 GB Notification: Performance of simCode: created initialization part: time 0.01948/18.85, allocations: 9.702 MB / 7.725 GB, free: 138.8 MB / 1.018 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-05/18.85, allocations: 4.75 kB / 7.725 GB, free: 138.8 MB / 1.018 GB Notification: Performance of simCode: created simulation system equations: time 0.006107/18.86, allocations: 3.334 MB / 7.728 GB, free: 138.3 MB / 1.018 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01945/18.88, allocations: 3.472 MB / 7.731 GB, free: 138.2 MB / 1.018 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04552/18.92, allocations: 15.3 MB / 7.746 GB, free: 135.5 MB / 1.018 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01523/18.94, allocations: 6.399 MB / 7.753 GB, free: 134.6 MB / 1.018 GB Notification: Performance of SimCode: time 1.663e-06/18.94, allocations: 2.5 kB / 7.753 GB, free: 134.6 MB / 1.018 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System2_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_Tutorial_SpaceCooling_System2.fmu > Buildings_maint.7.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe 2>&1)