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.509/1.509, allocations: 249.3 MB / 261.8 MB, free: 6 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.0009848/0.0009849, allocations: 172.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0008426/0.0008429, allocations: 90.47 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.923e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1807, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.081/6.261, allocations: 2.18 GB / 3.072 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/6.262, allocations: 87.39 kB / 3.072 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.299/7.561, allocations: 288.5 MB / 3.354 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.545e-06/7.561, allocations: 4 kB / 3.354 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6e-05/7.561, allocations: 11.98 kB / 3.354 GB, free: 206.7 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.001851/7.563, allocations: 0.6503 MB / 3.354 GB, free: 206 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/7.563, allocations: 15.97 kB / 3.354 GB, free: 206 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000496/7.563, allocations: 65.89 kB / 3.355 GB, free: 206 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007176/7.564, allocations: 329.8 kB / 3.355 GB, free: 205.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/7.564, allocations: 20.56 kB / 3.355 GB, free: 205.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.297e-05/7.564, allocations: 28 kB / 3.355 GB, free: 205.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005177/7.565, allocations: 280.3 kB / 3.355 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/7.565, allocations: 0 / 3.355 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/7.565, allocations: 12 kB / 3.355 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/7.565, allocations: 12 kB / 3.355 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/7.565, allocations: 181.6 kB / 3.355 GB, free: 205.1 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.001678/7.567, allocations: 1.133 MB / 3.356 GB, free: 203.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/7.567, allocations: 162.4 kB / 3.357 GB, free: 203.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/7.567, allocations: 92.83 kB / 3.357 GB, free: 203.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005283/7.568, allocations: 299.3 kB / 3.357 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/7.568, allocations: 34.56 kB / 3.357 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/7.568, allocations: 0 / 3.357 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19): time 0.0006385/7.569, allocations: 214.1 kB / 3.357 GB, free: 203 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/7.569, allocations: 55.41 kB / 3.357 GB, free: 202.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/7.569, allocations: 266.7 kB / 3.358 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/7.569, allocations: 37.64 kB / 3.358 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/7.569, allocations: 168.3 kB / 3.358 GB, free: 202.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.619e-05/7.569, allocations: 59.11 kB / 3.358 GB, free: 202.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-06/7.569, allocations: 0 / 3.358 GB, free: 202.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001157/7.569, allocations: 338.8 kB / 3.358 GB, free: 202 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/7.569, allocations: 64.3 kB / 3.358 GB, free: 202 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/7.57, allocations: 104.7 kB / 3.358 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/7.57, allocations: 65.3 kB / 3.358 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/7.57, allocations: 0 / 3.358 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003555/7.57, allocations: 215.5 kB / 3.359 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/7.57, allocations: 8 kB / 3.359 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/7.57, allocations: 0 / 3.359 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/7.57, allocations: 0 / 3.359 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/7.57, allocations: 48 kB / 3.359 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/7.57, allocations: 4 kB / 3.359 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/7.571, allocations: 35.67 kB / 3.359 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/7.571, allocations: 15.98 kB / 3.359 GB, free: 201.5 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 9.939e-05/7.571, allocations: 112.9 kB / 3.359 GB, free: 201.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/7.571, allocations: 31.67 kB / 3.359 GB, free: 201.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004299/7.571, allocations: 227.7 kB / 3.359 GB, free: 201.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/7.571, allocations: 3.953 kB / 3.359 GB, free: 201.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/7.571, allocations: 3.938 kB / 3.359 GB, free: 201.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/7.571, allocations: 0 / 3.359 GB, free: 201.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009753/7.572, allocations: 0.7108 MB / 3.36 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/7.572, allocations: 0 / 3.36 GB, free: 200.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/7.573, allocations: 47.91 kB / 3.36 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/7.573, allocations: 7.938 kB / 3.36 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/7.573, allocations: 4 kB / 3.36 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/7.573, allocations: 4.219 kB / 3.36 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/7.573, allocations: 4 kB / 3.36 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005433/7.573, allocations: 0.5153 MB / 3.36 GB, free: 199.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/7.573, allocations: 128.7 kB / 3.36 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/7.573, allocations: 12.06 kB / 3.36 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/7.574, allocations: 23.97 kB / 3.36 GB, free: 199.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/7.574, allocations: 19.92 kB / 3.36 GB, free: 199.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/7.574, allocations: 4 kB / 3.36 GB, free: 199.4 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002044/7.574, allocations: 218.2 kB / 3.361 GB, free: 199.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/7.574, allocations: 4 kB / 3.361 GB, free: 199.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001005/7.575, allocations: 187.8 kB / 3.361 GB, free: 199 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.002537/7.578, allocations: 1.185 MB / 3.362 GB, free: 197.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003332/7.578, allocations: 155.8 kB / 3.362 GB, free: 197.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/7.578, allocations: 0 / 3.362 GB, free: 197.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002024/7.578, allocations: 87.91 kB / 3.362 GB, free: 197.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008045/7.579, allocations: 146.2 kB / 3.362 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009644/7.58, allocations: 0.5179 MB / 3.363 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/7.58, allocations: 0.7956 MB / 3.364 GB, free: 196 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002482/7.58, allocations: 54.95 kB / 3.364 GB, free: 196 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.653e-05/7.581, allocations: 27.44 kB / 3.364 GB, free: 196 MB / 0.8698 GB Notification: Performance of SimCode: time 8.92e-07/7.581, allocations: 0 / 3.364 GB, free: 196 MB / 0.8698 GB Notification: Performance of Templates: time 0.03173/7.612, allocations: 22.79 MB / 3.386 GB, free: 173.2 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.port_a.Xi_outflow[1],senH.port_a.p,senH.port_b.Xi_outflow[1],senH.port_b.p,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.port_a.Xi_outflow[1],senH_flow.port_a.p,senH_flow.port_b.Xi_outflow[1],senH_flow.port_b.p,senH_flow.tau,senH_flow.tauInv,senM_flow.allowFlowReversal,senM_flow.m_flow,senM_flow.m_flow_nominal,senM_flow.m_flow_small,senM_flow.port_a.Xi_outflow[1],senM_flow.port_a.p,senM_flow.port_b.Xi_outflow[1],senM_flow.port_b.p,sin.T,sin.T_in_internal,sin.X[1],sin.X[2],sin.Xi_in_internal[1],sin.flowDirection,sin.nPorts,sin.p,sin.ports[1].Xi_outflow[1],sin.ports[1].p,sin.verifyInputs,sou.T,sou.T_in_internal,sou.X[1],sou.X[2],sou.Xi_in_internal[1],sou.flowDirection,sou.m_flow,sou.nPorts,sou.p_in_internal,sou.ports[1].Xi_outflow[1],sou.ports[1].p,sou.verifyInputs,time