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.466/1.466, allocations: 249.5 MB / 257 MB, free: 6.852 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.001032/0.001032, allocations: 184.3 kB / 316.3 MB, free: 3.238 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.621/1.621, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.001021/0.001021, allocations: 90.45 kB / 0.6714 GB, free: 4.996 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.807e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2415, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.124/6.365, allocations: 2.182 GB / 3.067 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/6.366, allocations: 87.94 kB / 3.067 GB, free: 226 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.196/7.562, allocations: 290.8 MB / 3.351 GB, free: 237.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.074e-06/7.562, allocations: 3.438 kB / 3.351 GB, free: 237.4 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.151e-05/7.562, allocations: 7.625 kB / 3.351 GB, free: 237.4 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.001586/7.564, allocations: 0.7164 MB / 3.352 GB, free: 236.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/7.564, allocations: 13.69 kB / 3.352 GB, free: 236.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/7.565, allocations: 121.1 kB / 3.352 GB, free: 236.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/7.566, allocations: 357.4 kB / 3.353 GB, free: 236.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/7.566, allocations: 37.42 kB / 3.353 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/7.566, allocations: 18.81 kB / 3.353 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004138/7.566, allocations: 232.2 kB / 3.353 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/7.566, allocations: 252.3 kB / 3.353 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/7.567, allocations: 3.625 kB / 3.353 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/7.567, allocations: 2.25 kB / 3.353 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/7.567, allocations: 10.98 kB / 3.353 GB, free: 236.6 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.001361/7.568, allocations: 0.9987 MB / 3.354 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/7.568, allocations: 220.7 kB / 3.354 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/7.569, allocations: 111.8 kB / 3.354 GB, free: 236.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007894/7.569, allocations: 0.4977 MB / 3.355 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/7.569, allocations: 33.47 kB / 3.355 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/7.569, allocations: 0 / 3.355 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21): time 0.00101/7.57, allocations: 337.1 kB / 3.355 GB, free: 235.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/7.57, allocations: 55.09 kB / 3.355 GB, free: 235.5 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/7.571, allocations: 185.7 kB / 3.355 GB, free: 235.4 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/7.571, allocations: 25.7 kB / 3.355 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/7.571, allocations: 175 kB / 3.356 GB, free: 235.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.592e-05/7.571, allocations: 72.31 kB / 3.356 GB, free: 235.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/7.571, allocations: 2.953 kB / 3.356 GB, free: 235.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.466e-05/7.571, allocations: 337.2 kB / 3.356 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/7.571, allocations: 75.27 kB / 3.356 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/7.571, allocations: 128.6 kB / 3.356 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004987/7.572, allocations: 163.1 kB / 3.356 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/7.572, allocations: 0 / 3.356 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007414/7.572, allocations: 318 kB / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/7.573, allocations: 10.41 kB / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/7.573, allocations: 0 / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/7.573, allocations: 3.969 kB / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/7.573, allocations: 44.06 kB / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/7.573, allocations: 9.328 kB / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/7.573, allocations: 25.48 kB / 3.357 GB, free: 234.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/7.573, allocations: 16.91 kB / 3.357 GB, free: 234.8 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 8.969e-05/7.573, allocations: 108.2 kB / 3.357 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.346e-05/7.573, allocations: 26.56 kB / 3.357 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000768/7.574, allocations: 347.6 kB / 3.357 GB, free: 234.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/7.574, allocations: 3.781 kB / 3.357 GB, free: 234.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/7.574, allocations: 0 / 3.357 GB, free: 234.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/7.574, allocations: 4.016 kB / 3.357 GB, free: 234.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/7.576, allocations: 1.312 MB / 3.358 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/7.576, allocations: 5.656 kB / 3.358 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/7.576, allocations: 48.16 kB / 3.359 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/7.576, allocations: 3.812 kB / 3.359 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/7.576, allocations: 14.02 kB / 3.359 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/7.576, allocations: 5.312 kB / 3.359 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/7.576, allocations: 6.031 kB / 3.359 GB, free: 233.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009433/7.577, allocations: 0.7023 MB / 3.359 GB, free: 233.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/7.577, allocations: 138 kB / 3.359 GB, free: 233.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.177e-05/7.578, allocations: 3.344 kB / 3.359 GB, free: 233.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/7.578, allocations: 30.77 kB / 3.359 GB, free: 233.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/7.578, allocations: 26.62 kB / 3.359 GB, free: 233.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/7.578, allocations: 16.27 kB / 3.359 GB, free: 233.4 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001053/7.578, allocations: 143.9 kB / 3.36 GB, free: 233.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/7.578, allocations: 6.781 kB / 3.36 GB, free: 233.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000837/7.579, allocations: 215.7 kB / 3.36 GB, free: 233.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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.002126/7.581, allocations: 1.398 MB / 3.361 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003645/7.581, allocations: 198.8 kB / 3.361 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/7.581, allocations: 7.594 kB / 3.361 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001745/7.582, allocations: 117.8 kB / 3.361 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005776/7.582, allocations: 89.2 kB / 3.362 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009674/7.583, allocations: 0.5597 MB / 3.362 GB, free: 232.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/7.583, allocations: 0.7926 MB / 3.363 GB, free: 232 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002826/7.584, allocations: 76.91 kB / 3.363 GB, free: 232 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.129e-05/7.584, allocations: 29.25 kB / 3.363 GB, free: 232 MB / 0.8698 GB Notification: Performance of SimCode: time 1.492e-06/7.584, allocations: 0 / 3.363 GB, free: 232 MB / 0.8698 GB Notification: Performance of Templates: time 0.01964/7.603, allocations: 11.98 MB / 3.375 GB, free: 230.8 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,senS.allowFlowReversal,senS.dynamic,senS.initType,senS.m_flow_nominal,senS.m_flow_small,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.s_out_start,senS_flow.tau,senS_flow.tauInv,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