Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.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: translateModel(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senH.h_out|senH_flow.H_flow|cheEqu.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senH.h_out|senH_flow.H_flow|cheEqu.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.456/1.456, allocations: 249.5 MB / 257 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 184.8 kB / 316.3 MB, free: 3.27 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.439/1.439, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.001004/0.001004, allocations: 87.94 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.643e-05/1.636e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2143, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.079/6.293, allocations: 2.18 GB / 3.066 GB, free: 228.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/6.294, allocations: 90.52 kB / 3.066 GB, free: 228 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.179/7.473, allocations: 284.9 MB / 3.344 GB, free: 239.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.214e-06/7.473, allocations: 0 / 3.344 GB, free: 239.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.886e-05/7.473, allocations: 14.03 kB / 3.344 GB, free: 239.1 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001365/7.474, allocations: 0.6547 MB / 3.345 GB, free: 238.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/7.474, allocations: 9.562 kB / 3.345 GB, free: 238.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003298/7.475, allocations: 72.97 kB / 3.345 GB, free: 238.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005168/7.475, allocations: 321.7 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/7.475, allocations: 11.16 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.903e-05/7.475, allocations: 21.72 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003202/7.476, allocations: 165.3 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/7.476, allocations: 241 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/7.476, allocations: 0 / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.85e-05/7.476, allocations: 3.938 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/7.476, allocations: 14.89 kB / 3.345 GB, free: 238.4 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/7.477, allocations: 1.054 MB / 3.346 GB, free: 237.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/7.478, allocations: 146.9 kB / 3.347 GB, free: 237.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/7.478, allocations: 77.59 kB / 3.347 GB, free: 237.7 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000467/7.478, allocations: 305.8 kB / 3.347 GB, free: 237.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/7.478, allocations: 33.53 kB / 3.347 GB, free: 237.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=19): time 1.232e-06/7.478, allocations: 0 / 3.347 GB, free: 237.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19): time 0.0006849/7.479, allocations: 258 kB / 3.347 GB, free: 237.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/7.479, allocations: 62.34 kB / 3.347 GB, free: 237.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/7.479, allocations: 173.6 kB / 3.347 GB, free: 237.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/7.479, allocations: 29.31 kB / 3.348 GB, free: 237.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/7.479, allocations: 182.5 kB / 3.348 GB, free: 237 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/7.479, allocations: 58.22 kB / 3.348 GB, free: 237 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.657e-06/7.479, allocations: 0 / 3.348 GB, free: 237 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.926e-05/7.48, allocations: 337.7 kB / 3.348 GB, free: 236.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.411e-05/7.48, allocations: 58.45 kB / 3.348 GB, free: 236.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/7.48, allocations: 88.16 kB / 3.348 GB, free: 236.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/7.48, allocations: 120.8 kB / 3.348 GB, free: 236.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/7.48, allocations: 0 / 3.348 GB, free: 236.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004365/7.48, allocations: 238.1 kB / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/7.48, allocations: 10.38 kB / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/7.481, allocations: 0 / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/7.481, allocations: 7.734 kB / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/7.481, allocations: 40.91 kB / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/7.481, allocations: 0 / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/7.481, allocations: 34.91 kB / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/7.481, allocations: 16.61 kB / 3.349 GB, free: 236.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.606e-05/7.481, allocations: 109 kB / 3.349 GB, free: 236.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/7.481, allocations: 23.34 kB / 3.349 GB, free: 236.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005066/7.482, allocations: 262.9 kB / 3.349 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/7.482, allocations: 3.906 kB / 3.349 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/7.482, allocations: 0 / 3.349 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/7.482, allocations: 0 / 3.349 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009729/7.483, allocations: 0.707 MB / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/7.483, allocations: 0 / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/7.483, allocations: 41.31 kB / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/7.483, allocations: 6 kB / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/7.483, allocations: 3.781 kB / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/7.483, allocations: 3.562 kB / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/7.483, allocations: 3.406 kB / 3.35 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006449/7.484, allocations: 0.5372 MB / 3.35 GB, free: 235.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.24e-05/7.484, allocations: 123.1 kB / 3.35 GB, free: 235.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/7.484, allocations: 6.688 kB / 3.35 GB, free: 235.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/7.484, allocations: 17.55 kB / 3.35 GB, free: 235.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/7.484, allocations: 27.61 kB / 3.35 GB, free: 235.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/7.484, allocations: 10.28 kB / 3.35 GB, free: 235.7 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001152/7.484, allocations: 146.3 kB / 3.351 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/7.484, allocations: 0 / 3.351 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00067/7.485, allocations: 158.8 kB / 3.351 GB, free: 235.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (senH_flow.h_out,senH.h_out) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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 Backend phase and start with SimCode phase: time 0.001864/7.487, allocations: 1.351 MB / 3.352 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002883/7.487, allocations: 146.7 kB / 3.352 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/7.487, allocations: 0 / 3.352 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/7.487, allocations: 83.33 kB / 3.352 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/7.488, allocations: 79.31 kB / 3.352 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009462/7.489, allocations: 0.4913 MB / 3.353 GB, free: 235 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/7.489, allocations: 0.795 MB / 3.354 GB, free: 234.3 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001635/7.489, allocations: 47.08 kB / 3.354 GB, free: 234.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.527e-05/7.489, allocations: 29.92 kB / 3.354 GB, free: 234.3 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/7.489, allocations: 5.344 kB / 3.354 GB, free: 234.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.01814/7.507, allocations: 10.28 MB / 3.364 GB, free: 233.4 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senM_flow.m_flow,senH.h_out,senH_flow.H_flow,cheEqu.y Variables in the result:cheEqu.k1,cheEqu.k2,cheEqu.u1,cheEqu.y,pro.u2,ramp.duration,ramp.height,ramp.offset,ramp.startTime,senH.allowFlowReversal,senH.dynamic,senH.h_out,senH.h_out_start,senH.initType,senH.m_flow_nominal,senH.m_flow_small,senH.tau,senH.tauInv,senH_flow.H_flow,senH_flow.allowFlowReversal,senH_flow.dynamic,senH_flow.h_out_start,senH_flow.initType,senH_flow.m_flow_nominal,senH_flow.m_flow_small,senH_flow.tau,senH_flow.tauInv,senM_flow.allowFlowReversal,senM_flow.m_flow,senM_flow.m_flow_nominal,senM_flow.m_flow_small,sin.T,sin.X[1],sin.X[2],sin.flowDirection,sin.nPorts,sin.p,sin.verifyInputs,sou.T,sou.X[1],sou.X[2],sou.flowDirection,sou.m_flow,sou.nPorts,sou.verifyInputs,time