Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TemperatureDryBulb",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TemperatureDryBulb",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/BuildingSystems 2.0.0-master/package.mo): time 0.7338/0.7338, allocations: 141.8 MB / 149.1 MB, free: 12.99 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 178.1 kB / 181.9 MB, free: 9.688 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 221.4 MB / 436 MB, free: 2.113 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009509/0.000951, allocations: 100.6 kB / 0.507 GB, free: 10.88 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001784/0.001784, allocations: 272.5 kB / 0.5884 GB, free: 7.719 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3924/0.3942, allocations: 89.64 MB / 0.676 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.5526, allocations: 82.78 MB / 0.7568 GB, free: 118.9 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.682/4.235, allocations: 1.828 GB / 2.585 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/4.235, allocations: 88.31 kB / 2.585 GB, free: 146.2 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 1.439/5.674, allocations: 430.8 MB / 3.006 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/5.674, allocations: 14.53 kB / 3.006 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002054/5.676, allocations: 274.5 kB / 3.006 GB, free: 145 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008753/5.677, allocations: 484.4 kB / 3.006 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/5.677, allocations: 15.62 kB / 3.006 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.455e-05/5.677, allocations: 27.47 kB / 3.006 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006178/5.678, allocations: 382.5 kB / 3.007 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006829/5.679, allocations: 495.6 kB / 3.007 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/5.679, allocations: 3.906 kB / 3.007 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/5.679, allocations: 0 / 3.007 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/5.679, allocations: 13.75 kB / 3.007 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/5.681, allocations: 2.131 MB / 3.009 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006115/5.682, allocations: 373.5 kB / 3.01 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/5.682, allocations: 197.3 kB / 3.01 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006471/5.683, allocations: 0.6383 MB / 3.01 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/5.683, allocations: 248.5 kB / 3.011 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=37): time 1.793e-06/5.683, allocations: 0 / 3.011 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=37): time 0.001922/5.685, allocations: 0.6205 MB / 3.011 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/5.685, allocations: 59.16 kB / 3.011 GB, free: 142.6 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/5.685, allocations: 310.4 kB / 3.012 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/5.685, allocations: 26.89 kB / 3.012 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/5.685, allocations: 219.3 kB / 3.012 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 7.963e-05/5.685, allocations: 117.1 kB / 3.012 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/5.685, allocations: 0 / 3.012 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.2e-05/5.686, allocations: 357.4 kB / 3.012 GB, free: 142 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/5.686, allocations: 142.5 kB / 3.012 GB, free: 142 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/5.686, allocations: 274.7 kB / 3.013 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/5.687, allocations: 236.8 kB / 3.013 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/5.687, allocations: 3.312 kB / 3.013 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008397/5.687, allocations: 0.5176 MB / 3.013 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/5.687, allocations: 7.344 kB / 3.013 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/5.687, allocations: 3.812 kB / 3.013 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/5.687, allocations: 6.812 kB / 3.013 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004689/5.688, allocations: 109.4 kB / 3.014 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/5.688, allocations: 2.875 kB / 3.014 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/5.688, allocations: 85.8 kB / 3.014 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/5.689, allocations: 21.91 kB / 3.014 GB, free: 141.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.m_flow1.T_start,m_flow1.T_start,$PRE.m_flow1.count,m_flow1.count,$PRE.m_flow2.T_start,m_flow2.T_start,$PRE.m_flow2.count,m_flow2.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 2 * 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.0001107/5.689, allocations: 127.8 kB / 3.014 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/5.689, allocations: 41.88 kB / 3.014 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008305/5.69, allocations: 481.4 kB / 3.014 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/5.69, allocations: 3.906 kB / 3.014 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/5.69, allocations: 0 / 3.014 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/5.69, allocations: 3.656 kB / 3.014 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/5.691, allocations: 1.228 MB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/5.691, allocations: 3.281 kB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004429/5.692, allocations: 86.41 kB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/5.692, allocations: 7.5 kB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/5.692, allocations: 9.75 kB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/5.692, allocations: 9.75 kB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/5.692, allocations: 6.469 kB / 3.016 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001116/5.693, allocations: 1 MB / 3.017 GB, free: 140.7 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001551/5.694, allocations: 1.658 MB / 3.018 GB, free: 139.8 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001879/5.695, allocations: 160.1 kB / 3.018 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.571e-05/5.695, allocations: 10.5 kB / 3.018 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/5.695, allocations: 53.77 kB / 3.018 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/5.695, allocations: 47.34 kB / 3.018 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/5.695, allocations: 10.22 kB / 3.018 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001724/5.696, allocations: 235.7 kB / 3.019 GB, free: 139.6 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001584/5.697, allocations: 429 kB / 3.019 GB, free: 139.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (temDyn.T,temDynLoss.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,m_flow1.T_start,m_flow1.count,m_flow2.T_start,m_flow2.count) * Number of discrete states: 2 (m_flow2.count,m_flow1.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001954/5.699, allocations: 1.667 MB / 3.021 GB, free: 139.2 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0005476/5.7, allocations: 428 kB / 3.021 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/5.7, allocations: 0 / 3.021 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003916/5.7, allocations: 241.5 kB / 3.021 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009215/5.701, allocations: 179.6 kB / 3.022 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/5.702, allocations: 0.7875 MB / 3.022 GB, free: 138.8 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004763/5.703, allocations: 0.9339 MB / 3.023 GB, free: 138.1 MB / 0.6982 GB Notification: Performance of SimCode: time 2.6e-07/5.703, allocations: 0 / 3.023 GB, free: 138.1 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TemperatureDryBulb_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TemperatureDryBulb.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TemperatureDryBulb.pipe 2>&1)