Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.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.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Validation_IdealSmallSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Validation_IdealSmallSystem",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.2/1.2, allocations: 249.4 MB / 256.7 MB, free: 15.81 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 184 kB / 316 MB, free: 7.195 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.421/1.421, allocations: 205.1 MB / 0.5667 GB, free: 23.62 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.0009609/0.0009609, allocations: 89.58 kB / 0.671 GB, free: 0.918 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2239/0.2249, allocations: 112.5 MB / 0.7808 GB, free: 360 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4611/0.6859, allocations: 106.3 MB / 0.8846 GB, free: 76.25 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.862/1.548, allocations: 478.1 MB / 1.352 GB, free: 8.105 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/1.548, allocations: 82.89 kB / 1.352 GB, free: 8.066 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 16.97/18.52, allocations: 5.256 GB / 6.607 GB, free: 45.59 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/18.52, allocations: 12.06 kB / 6.607 GB, free: 45.59 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01532/18.54, allocations: 2.636 MB / 6.61 GB, free: 44.78 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05599/18.59, allocations: 19.24 MB / 6.629 GB, free: 42.41 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004794/18.59, allocations: 243.4 kB / 6.629 GB, free: 42.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002375/18.6, allocations: 448.7 kB / 6.629 GB, free: 42.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01364/18.61, allocations: 5.624 MB / 6.635 GB, free: 42.37 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02098/18.63, allocations: 7.255 MB / 6.642 GB, free: 41.11 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002226/18.63, allocations: 25.72 kB / 6.642 GB, free: 41.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001131/18.63, allocations: 16 kB / 6.642 GB, free: 41.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001967/18.63, allocations: 207.1 kB / 6.642 GB, free: 41.09 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07057/18.7, allocations: 47.27 MB / 6.688 GB, free: 11.05 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004941/18.71, allocations: 2.065 MB / 6.69 GB, free: 10.27 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004602/18.71, allocations: 2.018 MB / 6.692 GB, free: 9.488 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02494/18.74, allocations: 9.414 MB / 6.702 GB, free: 3.094 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004111/18.74, allocations: 1.839 MB / 6.703 GB, free: 2.383 MB / 1.151 GB Notification: Performance of pre-optimization done (n=339): time 6.823e-06/18.74, allocations: 3.938 kB / 6.703 GB, free: 2.379 MB / 1.151 GB Notification: Performance of matching and sorting (n=339): time 0.01407/18.76, allocations: 4.45 MB / 6.708 GB, free: 0.6523 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/18.76, allocations: 91.14 kB / 6.708 GB, free: 0.582 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02077/18.78, allocations: 7.679 MB / 6.715 GB, free: 10.33 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001124/18.78, allocations: 37.7 kB / 6.715 GB, free: 10.29 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.005299/18.78, allocations: 3.214 MB / 6.718 GB, free: 7.562 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.002978/18.79, allocations: 1.131 MB / 6.72 GB, free: 6.52 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003362/18.79, allocations: 4 kB / 6.72 GB, free: 6.516 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0003187/18.79, allocations: 489.8 kB / 6.72 GB, free: 6.086 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/18.79, allocations: 1.494 MB / 6.722 GB, free: 4.684 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003763/18.79, allocations: 3.593 MB / 6.725 GB, free: 256 kB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006182/18.8, allocations: 2.437 MB / 6.727 GB, free: 14.22 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.792e-05/18.8, allocations: 16 kB / 6.727 GB, free: 14.2 MB / 1.182 GB Notification: Performance of matching and sorting (n=612) (initialization): time 0.0164/18.82, allocations: 5.999 MB / 6.733 GB, free: 8.809 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.143/19.96, allocations: 31.12 MB / 6.764 GB, free: 135.8 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/19.96, allocations: 51 kB / 6.764 GB, free: 135.8 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/19.96, allocations: 0.4887 MB / 6.764 GB, free: 135.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005138/19.97, allocations: 1.131 MB / 6.765 GB, free: 135.7 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004989/19.97, allocations: 8.224 MB / 6.773 GB, free: 129.1 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009834/19.98, allocations: 0.8861 MB / 6.774 GB, free: 129.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/19.98, allocations: 270.1 kB / 6.774 GB, free: 129.1 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/19.98, allocations: 3.781 kB / 6.774 GB, free: 129.1 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009452/19.99, allocations: 4.796 MB / 6.779 GB, free: 128.9 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.101e-05/19.99, allocations: 54 kB / 6.779 GB, free: 128.9 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000968/19.99, allocations: 0.4888 MB / 6.78 GB, free: 128.8 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003989/20, allocations: 1.099 MB / 6.781 GB, free: 128.8 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004785/20, allocations: 8.234 MB / 6.789 GB, free: 122.2 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009152/20.01, allocations: 0.785 MB / 6.79 GB, free: 122.2 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006639/20.01, allocations: 251.2 kB / 6.79 GB, free: 122.2 MB / 1.198 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: coo1.hex.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hea2.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hea1.pum.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: 238 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$PRE.QCoo2.nextTimeEvent,$whenCondition3,$PRE.QCoo1.nextTimeEvent,$whenCondition2,$PRE.QHea2.nextTimeEvent,$whenCondition1,$PRE.QHea1.nextTimeEvent,QHea1.nextTimeEvent,$PRE.QHea1.nextTimeEventScaled,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,$PRE.QHea2.nextTimeEventScaled,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,$PRE.QCoo1.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,$PRE.QCoo2.nextTimeEventScaled,QCoo2.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (580): * Single equations (assignments): 566 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 8 {1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001428/20.01, allocations: 300.8 kB / 6.79 GB, free: 122.1 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002289/20.02, allocations: 0.9605 MB / 6.791 GB, free: 122.1 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/20.03, allocations: 5.244 MB / 6.796 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.719e-05/20.03, allocations: 50.34 kB / 6.796 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/20.03, allocations: 3.906 kB / 6.796 GB, free: 121.8 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006013/20.03, allocations: 3.511 MB / 6.8 GB, free: 121.6 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/20.06, allocations: 11.46 MB / 6.811 GB, free: 121 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/20.06, allocations: 3.375 kB / 6.811 GB, free: 121 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003396/20.07, allocations: 0.7307 MB / 6.812 GB, free: 121 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/20.07, allocations: 422.9 kB / 6.812 GB, free: 120.9 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000281/20.07, allocations: 67.88 kB / 6.812 GB, free: 120.9 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004702/20.07, allocations: 8.136 MB / 6.82 GB, free: 114.3 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/20.07, allocations: 3.188 kB / 6.82 GB, free: 114.3 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01182/20.08, allocations: 6.958 MB / 6.827 GB, free: 113.3 MB / 1.198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01603/20.1, allocations: 10.05 MB / 6.837 GB, free: 111.8 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006165/20.11, allocations: 1.738 MB / 6.838 GB, free: 111.2 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003298/20.11, allocations: 19.41 kB / 6.838 GB, free: 111.2 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008793/20.12, allocations: 0.593 MB / 6.839 GB, free: 111.1 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004162/20.12, allocations: 198.9 kB / 6.839 GB, free: 111.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005177/20.12, allocations: 187.9 kB / 6.839 GB, free: 111.1 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.01026/20.13, allocations: 5.76 MB / 6.845 GB, free: 110.8 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.02731/20.16, allocations: 7.642 MB / 6.852 GB, free: 110.5 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (pla.coo.outCon.T,pla.hea.outCon.T,pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,spl4.vol.dynBal.U,spl5.vol.dynBal.U) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,QHea1.nextTimeEvent,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,QCoo2.nextTimeEventScaled) * Number of discrete states: 8 (QCoo2.nextTimeEvent,QCoo1.nextTimeEvent,QHea2.nextTimeEvent,QHea1.nextTimeEvent,QCoo2.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QHea2.nextTimeEventScaled,QHea1.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 315 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 8 {1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.009732/20.17, allocations: 6.529 MB / 6.859 GB, free: 107.8 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01223/20.18, allocations: 7.356 MB / 6.866 GB, free: 107.3 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/20.18, allocations: 3.75 kB / 6.866 GB, free: 107.3 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.003023/20.18, allocations: 2.115 MB / 6.868 GB, free: 107.1 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02146/20.2, allocations: 4.502 MB / 6.872 GB, free: 107 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03409/20.24, allocations: 15.32 MB / 6.887 GB, free: 103.7 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008907/20.25, allocations: 6.536 MB / 6.894 GB, free: 102.7 MB / 1.198 GB Notification: Performance of SimCode: time 1.142e-06/20.25, allocations: 1.031 kB / 6.894 GB, free: 102.7 MB / 1.198 GB (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Validation_IdealSmallSystem_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Validation_IdealSmallSystem.fmu > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe 2>&1)