Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.638/1.638, allocations: 289.8 MB / 297.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001354/0.001354, allocations: 185.2 kB / 366.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.1 MB / 0.6256 GB, free: 7.449 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009694/0.0009695, allocations: 85.59 kB / 0.7395 GB, free: 39.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2972/0.2982, allocations: 122.4 MB / 0.8591 GB, free: 13.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7114/1.01, allocations: 116.3 MB / 0.9726 GB, free: 76.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.629/5.639, allocations: 2.358 GB / 3.331 GB, free: 110.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/5.639, allocations: 91.45 kB / 3.331 GB, free: 110.6 MB / 0.948 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 7.967/13.61, allocations: 2.107 GB / 5.438 GB, free: 155.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/13.61, allocations: 10.78 kB / 5.438 GB, free: 155.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01755/13.62, allocations: 2.141 MB / 5.44 GB, free: 154.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05264/13.68, allocations: 14.94 MB / 5.455 GB, free: 141.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007421/13.68, allocations: 280 kB / 5.455 GB, free: 141.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004913/13.68, allocations: 0.5038 MB / 5.456 GB, free: 140.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02979/13.71, allocations: 10.51 MB / 5.466 GB, free: 130.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04253/13.75, allocations: 11.72 MB / 5.477 GB, free: 118 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008508/13.75, allocations: 35.56 kB / 5.477 GB, free: 117.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005026/13.76, allocations: 20 kB / 5.477 GB, free: 117.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004634/13.76, allocations: 476.9 kB / 5.478 GB, free: 117.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/13.87, allocations: 49.46 MB / 5.526 GB, free: 66.79 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01478/13.88, allocations: 7.011 MB / 5.533 GB, free: 59.85 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007197/13.89, allocations: 4.022 MB / 5.537 GB, free: 55.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002153/13.89, allocations: 1.504 MB / 5.538 GB, free: 54.04 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008534/13.9, allocations: 3.825 MB / 5.542 GB, free: 50.15 MB / 0.948 GB Notification: Performance of pre-optimization done (n=553): time 1.157e-05/13.9, allocations: 3.938 kB / 5.542 GB, free: 50.14 MB / 0.948 GB Notification: Performance of matching and sorting (n=553): time 0.03061/13.93, allocations: 7.942 MB / 5.55 GB, free: 42.11 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/13.93, allocations: 347.1 kB / 5.55 GB, free: 41.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0234/13.95, allocations: 7.872 MB / 5.558 GB, free: 33.84 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.002305/13.96, allocations: 33.7 kB / 5.558 GB, free: 33.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.009519/13.97, allocations: 3.449 MB / 5.561 GB, free: 30.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.008697/13.98, allocations: 1.856 MB / 5.563 GB, free: 28.42 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001876/13.98, allocations: 0 / 5.563 GB, free: 28.42 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0008876/13.98, allocations: 0.5753 MB / 5.564 GB, free: 27.84 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006796/13.98, allocations: 3.258 MB / 5.567 GB, free: 24.58 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008021/13.99, allocations: 5.082 MB / 5.572 GB, free: 18.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02168/14.01, allocations: 5.98 MB / 5.578 GB, free: 12.68 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.601e-05/14.01, allocations: 20 kB / 5.578 GB, free: 12.66 MB / 0.948 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.03763/14.05, allocations: 10.71 MB / 5.588 GB, free: 1.875 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.9039/14.96, allocations: 27.44 MB / 5.615 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002303/14.96, allocations: 52 kB / 5.615 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/14.96, allocations: 93.44 kB / 5.615 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/14.97, allocations: 1.837 MB / 5.617 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001678/14.97, allocations: 124.2 kB / 5.617 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01489/14.98, allocations: 0.9704 MB / 5.618 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002504/14.99, allocations: 332.4 kB / 5.618 GB, free: 246 MB / 0.9637 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/14.99, allocations: 3.594 kB / 5.618 GB, free: 246 MB / 0.9637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03664/15.02, allocations: 9.893 MB / 5.628 GB, free: 245.9 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002636/15.02, allocations: 54.03 kB / 5.628 GB, free: 245.9 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/15.02, allocations: 102.3 kB / 5.628 GB, free: 245.9 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01075/15.03, allocations: 1.838 MB / 5.63 GB, free: 245.9 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002224/15.03, allocations: 118.3 kB / 5.63 GB, free: 245.9 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01442/15.05, allocations: 0.853 MB / 5.631 GB, free: 245.9 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003543/15.05, allocations: 336.3 kB / 5.631 GB, free: 245.9 MB / 0.9637 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.00602/15.06, allocations: 292.7 kB / 5.631 GB, free: 245.8 MB / 0.9637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006133/15.06, allocations: 0.809 MB / 5.632 GB, free: 245.8 MB / 0.9637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0343/15.1, allocations: 9.117 MB / 5.641 GB, free: 245.5 MB / 0.9637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.965e-05/15.1, allocations: 54.06 kB / 5.641 GB, free: 245.5 MB / 0.9637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.551e-05/15.1, allocations: 7.406 kB / 5.641 GB, free: 245.5 MB / 0.9637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02294/15.12, allocations: 7.29 MB / 5.648 GB, free: 245.2 MB / 0.9637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06722/15.19, allocations: 19.44 MB / 5.667 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/15.19, allocations: 3.812 kB / 5.667 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00834/15.2, allocations: 1.304 MB / 5.669 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/15.2, allocations: 18.62 kB / 5.669 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001527/15.2, allocations: 122.4 kB / 5.669 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.372e-05/15.2, allocations: 17.97 kB / 5.669 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/15.2, allocations: 1.688 kB / 5.669 GB, free: 244.4 MB / 0.9637 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03421/15.23, allocations: 13.07 MB / 5.681 GB, free: 243.4 MB / 0.9637 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0418/15.27, allocations: 18.25 MB / 5.699 GB, free: 241.9 MB / 0.9637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009941/15.28, allocations: 2.363 MB / 5.702 GB, free: 241.4 MB / 0.9637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005632/15.29, allocations: 37.64 kB / 5.702 GB, free: 241.4 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01254/15.3, allocations: 0.5832 MB / 5.702 GB, free: 241.3 MB / 0.9637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001783/15.3, allocations: 284.9 kB / 5.702 GB, free: 241.3 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002246/15.31, allocations: 296.1 kB / 5.703 GB, free: 241.3 MB / 0.9637 GB Notification: Performance of sort global known variables: time 0.01487/15.32, allocations: 6.051 MB / 5.709 GB, free: 241.1 MB / 0.9637 GB Notification: Performance of remove unused functions: time 0.03611/15.36, allocations: 5.59 MB / 5.714 GB, free: 240.6 MB / 0.9637 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.005388/15.36, allocations: 1.147 MB / 5.715 GB, free: 240.5 MB / 0.9637 GB Notification: Performance of simCode: created initialization part: time 0.02776/15.39, allocations: 12.43 MB / 5.727 GB, free: 240.3 MB / 0.9637 GB Notification: Performance of simCode: created event and clocks part: time 3.254e-05/15.39, allocations: 9.156 kB / 5.727 GB, free: 240.3 MB / 0.9637 GB Notification: Performance of simCode: created simulation system equations: time 0.008714/15.4, allocations: 3.514 MB / 5.731 GB, free: 240.3 MB / 0.9637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03127/15.43, allocations: 4.532 MB / 5.735 GB, free: 240.2 MB / 0.9637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06575/15.5, allocations: 19.95 MB / 5.755 GB, free: 237 MB / 0.9637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01756/15.51, allocations: 8.159 MB / 5.763 GB, free: 236.1 MB / 0.9637 GB Notification: Performance of SimCode: time 2.274e-06/15.52, allocations: 0 / 5.763 GB, free: 236.1 MB / 0.9637 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_SolarCollectors_Validation_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Validation_FlatPlate.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1)