Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.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.EntropyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senS_flow.S_flow|senS.s",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.EntropyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senS_flow.S_flow|senS.s",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.504/1.504, allocations: 249.3 MB / 261.8 MB, free: 5.867 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.001019/0.001019, allocations: 180.8 kB / 321.3 MB, free: 14.62 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.349/1.349, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0009368/0.0009369, allocations: 93.22 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.111e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1806, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.955/6.136, allocations: 2.182 GB / 3.074 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/6.136, allocations: 84.83 kB / 3.074 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.351/7.487, allocations: 294.5 MB / 3.361 GB, free: 168.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.206e-06/7.487, allocations: 0 / 3.361 GB, free: 168.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.456e-05/7.487, allocations: 7.844 kB / 3.361 GB, free: 168.3 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002498/7.49, allocations: 0.7268 MB / 3.362 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.591e-05/7.49, allocations: 7.938 kB / 3.362 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001629/7.492, allocations: 126.1 kB / 3.362 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006708/7.492, allocations: 350.3 kB / 3.362 GB, free: 167.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.273e-05/7.493, allocations: 49.86 kB / 3.362 GB, free: 167.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.474e-05/7.493, allocations: 35.11 kB / 3.363 GB, free: 167.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005684/7.493, allocations: 286.1 kB / 3.363 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/7.493, allocations: 0 / 3.363 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/7.493, allocations: 15.8 kB / 3.363 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/7.493, allocations: 3.781 kB / 3.363 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000379/7.494, allocations: 240.4 kB / 3.363 GB, free: 167 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.001599/7.495, allocations: 1.087 MB / 3.364 GB, free: 166.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/7.496, allocations: 237.2 kB / 3.364 GB, free: 166 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/7.496, allocations: 124.3 kB / 3.364 GB, free: 165.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008487/7.497, allocations: 0.4965 MB / 3.365 GB, free: 165.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/7.497, allocations: 34.44 kB / 3.365 GB, free: 165.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=21): time 2.043e-06/7.497, allocations: 0 / 3.365 GB, free: 165.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21): time 0.0006347/7.497, allocations: 271.8 kB / 3.365 GB, free: 165.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/7.497, allocations: 59.22 kB / 3.365 GB, free: 165.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/7.498, allocations: 269.8 kB / 3.366 GB, free: 165 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/7.498, allocations: 37.58 kB / 3.366 GB, free: 165 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.098e-05/7.498, allocations: 170.6 kB / 3.366 GB, free: 164.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.237e-05/7.498, allocations: 78.08 kB / 3.366 GB, free: 164.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.181e-05/7.498, allocations: 3.562 kB / 3.366 GB, free: 164.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.368e-05/7.498, allocations: 338 kB / 3.366 GB, free: 164.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/7.498, allocations: 86.67 kB / 3.366 GB, free: 164.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/7.498, allocations: 135.9 kB / 3.366 GB, free: 164.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001562/7.499, allocations: 94.06 kB / 3.366 GB, free: 164.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/7.499, allocations: 0 / 3.366 GB, free: 164.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000461/7.499, allocations: 279.3 kB / 3.367 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/7.499, allocations: 3.625 kB / 3.367 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/7.499, allocations: 3.938 kB / 3.367 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/7.499, allocations: 7.656 kB / 3.367 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003422/7.499, allocations: 52.94 kB / 3.367 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/7.499, allocations: 3.781 kB / 3.367 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/7.5, allocations: 38.05 kB / 3.367 GB, free: 164 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/7.5, allocations: 14.7 kB / 3.367 GB, free: 164 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001081/7.5, allocations: 120.9 kB / 3.367 GB, free: 163.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/7.5, allocations: 34.83 kB / 3.367 GB, free: 163.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006079/7.501, allocations: 319.1 kB / 3.367 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/7.501, allocations: 3.656 kB / 3.367 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/7.501, allocations: 0 / 3.367 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/7.501, allocations: 0 / 3.367 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/7.502, allocations: 0.8432 MB / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/7.502, allocations: 3.906 kB / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/7.502, allocations: 44.97 kB / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.343e-06/7.502, allocations: 3.906 kB / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/7.502, allocations: 11.12 kB / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/7.502, allocations: 11.86 kB / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/7.502, allocations: 0 / 3.368 GB, free: 163 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007189/7.503, allocations: 0.6233 MB / 3.369 GB, free: 162.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/7.503, allocations: 146.7 kB / 3.369 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/7.503, allocations: 7.109 kB / 3.369 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/7.504, allocations: 30.8 kB / 3.369 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/7.504, allocations: 23.52 kB / 3.369 GB, free: 162.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/7.504, allocations: 10.75 kB / 3.369 GB, free: 162.3 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000195/7.504, allocations: 219.6 kB / 3.369 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/7.504, allocations: 7.938 kB / 3.369 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001092/7.505, allocations: 236.1 kB / 3.369 GB, free: 162.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (senS_flow.s_out,senS.s) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.001901/7.507, allocations: 1.242 MB / 3.371 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003876/7.507, allocations: 217.4 kB / 3.371 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/7.507, allocations: 3.75 kB / 3.371 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001764/7.507, allocations: 122.2 kB / 3.371 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007807/7.508, allocations: 152.2 kB / 3.371 GB, free: 161.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/7.509, allocations: 0.563 MB / 3.372 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/7.51, allocations: 0.7966 MB / 3.372 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0003027/7.51, allocations: 78.31 kB / 3.373 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.333e-05/7.51, allocations: 26.12 kB / 3.373 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of SimCode: time 6.51e-07/7.51, allocations: 0 / 3.373 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.0326/7.543, allocations: 24.54 MB / 3.397 GB, free: 144.5 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_EntropyFlowRate.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senM_flow.m_flow,senS_flow.S_flow,senS.s Variables in the result:assEqu.startTime,assEqu.t0,assEqu.threShold,assEqu.u1,pro.u2,ramp.duration,ramp.height,ramp.offset,ramp.startTime,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,senS.allowFlowReversal,senS.dynamic,senS.initType,senS.m_flow_nominal,senS.m_flow_small,senS.port_a.Xi_outflow[1],senS.port_a.p,senS.port_b.Xi_outflow[1],senS.port_b.p,senS.s,senS.s_start,senS.tau,senS.tauInv,senS_flow.S_flow,senS_flow.allowFlowReversal,senS_flow.dynamic,senS_flow.initType,senS_flow.m_flow_nominal,senS_flow.m_flow_small,senS_flow.port_a.Xi_outflow[1],senS_flow.port_a.p,senS_flow.port_b.Xi_outflow[1],senS_flow.port_b.p,senS_flow.s_out_start,senS_flow.tau,senS_flow.tauInv,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