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.408/1.408, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.00131/0.00131, allocations: 178 kB / 326.5 MB, free: 2.246 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.84/1.84, allocations: 205.4 MB / 0.5775 GB, free: 20.54 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.0008504/0.0008499, allocations: 95.75 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003223, allocations: 15.14 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1861, allocations: 106.3 MB / 0.9001 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.443/4.63, allocations: 2.18 GB / 3.08 GB, free: 41.72 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/4.63, allocations: 93.12 kB / 3.08 GB, free: 41.63 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 1.065/5.695, allocations: 288.8 MB / 3.363 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.693e-06/5.695, allocations: 0 / 3.363 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.736e-05/5.695, allocations: 15.98 kB / 3.363 GB, free: 111.9 MB / 0.8855 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.00173/5.697, allocations: 0.6936 MB / 3.363 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/5.697, allocations: 11.97 kB / 3.363 GB, free: 111.1 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005075/5.697, allocations: 64.17 kB / 3.363 GB, free: 111 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000623/5.698, allocations: 341.8 kB / 3.364 GB, free: 110.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/5.698, allocations: 20.56 kB / 3.364 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/5.698, allocations: 27.91 kB / 3.364 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/5.698, allocations: 300.3 kB / 3.364 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/5.699, allocations: 7.938 kB / 3.364 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/5.699, allocations: 12 kB / 3.364 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/5.699, allocations: 4 kB / 3.364 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/5.699, allocations: 213.6 kB / 3.364 GB, free: 110.1 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.001382/5.7, allocations: 1.137 MB / 3.365 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/5.701, allocations: 182.5 kB / 3.365 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004573/5.701, allocations: 291.3 kB / 3.366 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/5.701, allocations: 42.55 kB / 3.366 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=19): time 2.094e-06/5.701, allocations: 0 / 3.366 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19): time 0.0007771/5.702, allocations: 335.1 kB / 3.366 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/5.702, allocations: 51.41 kB / 3.366 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/5.702, allocations: 271.7 kB / 3.366 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/5.702, allocations: 29.7 kB / 3.366 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/5.702, allocations: 164.3 kB / 3.367 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/5.703, allocations: 71.02 kB / 3.367 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.208e-06/5.703, allocations: 4 kB / 3.367 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.6e-05/5.703, allocations: 342.8 kB / 3.367 GB, free: 107 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/5.703, allocations: 72.33 kB / 3.367 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/5.703, allocations: 116.1 kB / 3.367 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/5.703, allocations: 91.95 kB / 3.367 GB, free: 106.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/5.703, allocations: 0 / 3.367 GB, free: 106.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003899/5.704, allocations: 250.9 kB / 3.367 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/5.704, allocations: 6.812 kB / 3.367 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/5.704, allocations: 0 / 3.367 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/5.704, allocations: 0 / 3.367 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/5.704, allocations: 47.91 kB / 3.368 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/5.704, allocations: 0 / 3.368 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/5.704, allocations: 47.62 kB / 3.368 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/5.704, allocations: 8 kB / 3.368 GB, free: 106.3 MB / 0.8855 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 () * Number of clocked 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 0.000136/5.704, allocations: 145.8 kB / 3.368 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/5.704, allocations: 31.7 kB / 3.368 GB, free: 106.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004594/5.705, allocations: 270 kB / 3.368 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/5.705, allocations: 4 kB / 3.368 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/5.705, allocations: 0 / 3.368 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/5.705, allocations: 0 / 3.368 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009569/5.706, allocations: 0.7421 MB / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/5.706, allocations: 12.16 kB / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/5.706, allocations: 39.92 kB / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/5.706, allocations: 0 / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/5.706, allocations: 11.98 kB / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/5.706, allocations: 7.953 kB / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/5.706, allocations: 4 kB / 3.369 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006232/5.707, allocations: 0.5637 MB / 3.369 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/5.707, allocations: 124.6 kB / 3.369 GB, free: 104.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.453e-05/5.707, allocations: 8 kB / 3.369 GB, free: 104.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/5.707, allocations: 24 kB / 3.37 GB, free: 104.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/5.707, allocations: 23.98 kB / 3.37 GB, free: 104.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/5.707, allocations: 11.98 kB / 3.37 GB, free: 104.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001644/5.707, allocations: 215.1 kB / 3.37 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/5.707, allocations: 0 / 3.37 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007901/5.708, allocations: 187.8 kB / 3.37 GB, free: 103.7 MB / 0.8855 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 () * Number of clocked 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.001852/5.71, allocations: 1.185 MB / 3.371 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004446/5.71, allocations: 195.7 kB / 3.371 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/5.71, allocations: 0 / 3.371 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001915/5.711, allocations: 111.8 kB / 3.371 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006979/5.711, allocations: 142.9 kB / 3.372 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/5.712, allocations: 0.7875 MB / 3.372 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/5.713, allocations: 0.7956 MB / 3.373 GB, free: 100.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002473/5.713, allocations: 62.88 kB / 3.373 GB, free: 100.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.725e-05/5.713, allocations: 31.44 kB / 3.373 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of SimCode: time 6.62e-07/5.713, allocations: 0 / 3.373 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of Templates: time 0.02495/5.738, allocations: 19.54 MB / 3.392 GB, free: 80.85 MB / 0.8855 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