Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.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.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",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.177/1.177, allocations: 249.4 MB / 256.7 MB, free: 15.83 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.001021/0.001021, allocations: 183.5 kB / 316 MB, free: 7.234 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.318/1.318, allocations: 205.1 MB / 0.5667 GB, free: 23.58 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.001132/0.001132, allocations: 87.28 kB / 0.671 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2017/0.2028, allocations: 112.5 MB / 0.7808 GB, free: 344 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.6117, allocations: 106.3 MB / 0.8846 GB, free: 76.27 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.325/4.936, allocations: 2.474 GB / 3.359 GB, free: 22.86 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/4.937, allocations: 95.94 kB / 3.359 GB, free: 22.77 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: 2330 * Number of variables: 2330 Notification: Performance of Generate backend data structure: time 6.598/11.53, allocations: 2.059 GB / 5.418 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/11.53, allocations: 14.03 kB / 5.418 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0142/11.55, allocations: 2.143 MB / 5.42 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03921/11.59, allocations: 14.85 MB / 5.435 GB, free: 122.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005456/11.59, allocations: 283.3 kB / 5.435 GB, free: 122.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003589/11.59, allocations: 0.5036 MB / 5.435 GB, free: 122.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02451/11.62, allocations: 10.51 MB / 5.446 GB, free: 122.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03265/11.65, allocations: 11.56 MB / 5.457 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00048/11.65, allocations: 31.28 kB / 5.457 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003585/11.65, allocations: 18.28 kB / 5.457 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003672/11.65, allocations: 478.5 kB / 5.458 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08556/11.74, allocations: 49.26 MB / 5.506 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/11.75, allocations: 7.024 MB / 5.512 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005411/11.76, allocations: 4.023 MB / 5.516 GB, free: 102 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001691/11.76, allocations: 1.502 MB / 5.518 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0064/11.76, allocations: 3.734 MB / 5.522 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=553): time 9.387e-06/11.76, allocations: 0 / 5.522 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=553): time 0.02094/11.79, allocations: 7.941 MB / 5.529 GB, free: 99.71 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/11.79, allocations: 342.3 kB / 5.53 GB, free: 99.36 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01438/11.8, allocations: 7.875 MB / 5.537 GB, free: 98.84 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.001733/11.8, allocations: 33.17 kB / 5.537 GB, free: 98.81 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.00693/11.81, allocations: 3.458 MB / 5.541 GB, free: 96.95 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.007628/11.82, allocations: 1.846 MB / 5.543 GB, free: 95.73 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006595/11.82, allocations: 3.438 kB / 5.543 GB, free: 95.73 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0004348/11.82, allocations: 0.5768 MB / 5.543 GB, free: 95.42 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004211/11.82, allocations: 3.253 MB / 5.546 GB, free: 95.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005076/11.83, allocations: 5.084 MB / 5.551 GB, free: 93.32 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02019/11.85, allocations: 5.964 MB / 5.557 GB, free: 93.23 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-05/11.85, allocations: 20.66 kB / 5.557 GB, free: 93.23 MB / 0.8855 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.02892/11.88, allocations: 10.72 MB / 5.568 GB, free: 92.12 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.004556/11.88, allocations: 27.46 MB / 5.594 GB, free: 62.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001525/11.88, allocations: 52.12 kB / 5.594 GB, free: 62.99 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001347/11.88, allocations: 94.75 kB / 5.594 GB, free: 62.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01076/11.89, allocations: 1.834 MB / 5.596 GB, free: 62.94 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001755/11.89, allocations: 123.3 kB / 5.596 GB, free: 62.94 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01177/11.9, allocations: 0.9743 MB / 5.597 GB, free: 62.56 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/11.91, allocations: 339.3 kB / 5.598 GB, free: 62.51 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/11.91, allocations: 3.688 kB / 5.598 GB, free: 62.51 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02683/11.93, allocations: 9.895 MB / 5.607 GB, free: 59.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/11.93, allocations: 54.47 kB / 5.607 GB, free: 59.88 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-05/11.93, allocations: 94.5 kB / 5.607 GB, free: 59.88 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008831/11.94, allocations: 1.834 MB / 5.609 GB, free: 59.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001226/11.94, allocations: 122.9 kB / 5.609 GB, free: 59.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/11.95, allocations: 0.8495 MB / 5.61 GB, free: 59.53 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002043/11.95, allocations: 335 kB / 5.611 GB, free: 59.48 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.datRea.nextTimeEvent,$whenCondition3,$whenCondition2,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,$PRE.datRea.nextTimeEventScaled,datRea.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (866): * Single equations (assignments): 866 * Array equations: 0 * Algorithm blocks: 0 * 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.001994/11.96, allocations: 297.6 kB / 5.611 GB, free: 59.26 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002874/11.96, allocations: 0.7947 MB / 5.612 GB, free: 58.85 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02316/11.98, allocations: 9.112 MB / 5.62 GB, free: 56.07 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-05/11.98, allocations: 61.86 kB / 5.621 GB, free: 56.07 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/11.98, allocations: 0.7812 kB / 5.621 GB, free: 56.07 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0192/12, allocations: 7.286 MB / 5.628 GB, free: 53.86 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04233/12.04, allocations: 19.35 MB / 5.647 GB, free: 39.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/12.04, allocations: 0 / 5.647 GB, free: 39.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0071/12.05, allocations: 1.306 MB / 5.648 GB, free: 38.05 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-05/12.05, allocations: 20 kB / 5.648 GB, free: 38.03 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009183/12.05, allocations: 117.6 kB / 5.648 GB, free: 37.95 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.229e-05/12.05, allocations: 20 kB / 5.648 GB, free: 37.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/12.05, allocations: 0 / 5.648 GB, free: 37.93 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02437/12.08, allocations: 13.07 MB / 5.661 GB, free: 26.61 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02847/12.11, allocations: 18.24 MB / 5.679 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007289/12.11, allocations: 2.314 MB / 5.681 GB, free: 8.664 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00357/12.12, allocations: 34.03 kB / 5.681 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01015/12.13, allocations: 0.5796 MB / 5.681 GB, free: 8.285 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001213/12.13, allocations: 295.1 kB / 5.682 GB, free: 8.109 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008765/12.13, allocations: 263.1 kB / 5.682 GB, free: 7.918 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.008993/12.14, allocations: 6.046 MB / 5.688 GB, free: 2.707 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.02286/12.16, allocations: 5.563 MB / 5.693 GB, free: 13.15 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 30 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,solCol.vol[10].dynBal.U,solCol.vol[11].dynBal.U,solCol.vol[12].dynBal.U,solCol.vol[13].dynBal.U,solCol.vol[14].dynBal.U,solCol.vol[15].dynBal.U,solCol.vol[16].dynBal.U,solCol.vol[17].dynBal.U,solCol.vol[18].dynBal.U,solCol.vol[19].dynBal.U,solCol.vol[20].dynBal.U,solCol.vol[21].dynBal.U,solCol.vol[22].dynBal.U,solCol.vol[23].dynBal.U,solCol.vol[24].dynBal.U,solCol.vol[25].dynBal.U,solCol.vol[26].dynBal.U,solCol.vol[27].dynBal.U,solCol.vol[28].dynBal.U,solCol.vol[29].dynBal.U,solCol.vol[30].dynBal.U) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,datRea.nextTimeEventScaled) * Number of discrete states: 4 (datRea.nextTimeEvent,datRea.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (573): * Single equations (assignments): 567 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * 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.003561/12.16, allocations: 1.165 MB / 5.694 GB, free: 12.43 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.02117/12.18, allocations: 12.44 MB / 5.707 GB, free: 1.223 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/12.18, allocations: 7.781 kB / 5.707 GB, free: 1.219 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.01146/12.2, allocations: 4.034 MB / 5.711 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02345/12.22, allocations: 4.521 MB / 5.715 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6208/12.84, allocations: 20.15 MB / 5.735 GB, free: 196.3 MB / 0.9168 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01226/12.85, allocations: 8.154 MB / 5.743 GB, free: 195.4 MB / 0.9168 GB Notification: Performance of SimCode: time 1.293e-06/12.85, allocations: 0 / 5.743 GB, free: 195.4 MB / 0.9168 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Validation_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Validation_FlatPlate.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1)