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.408/1.408, allocations: 251.9 MB / 266.9 MB, free: 11.07 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.001303/0.001303, allocations: 188.3 kB / 326.5 MB, free: 2.266 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.647/1.647, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0009058/0.0009058, allocations: 91.97 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003179, allocations: 12.69 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1942, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.295/5.49, allocations: 2.182 GB / 3.082 GB, free: 248.6 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003713/5.49, allocations: 94.53 kB / 3.082 GB, free: 248.6 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.5876/6.078, allocations: 294.8 MB / 3.37 GB, free: 46.73 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.934e-06/6.078, allocations: 0 / 3.37 GB, free: 46.73 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.535e-05/6.078, allocations: 15.98 kB / 3.37 GB, free: 46.71 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001819/6.079, allocations: 0.7639 MB / 3.371 GB, free: 45.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/6.08, allocations: 11.97 kB / 3.371 GB, free: 45.89 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/6.081, allocations: 119.5 kB / 3.371 GB, free: 45.77 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006605/6.081, allocations: 357.9 kB / 3.371 GB, free: 45.37 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.207e-05/6.081, allocations: 50.27 kB / 3.371 GB, free: 45.32 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.497e-05/6.082, allocations: 32 kB / 3.371 GB, free: 45.29 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/6.082, allocations: 320.7 kB / 3.372 GB, free: 44.96 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/6.082, allocations: 0 / 3.372 GB, free: 44.96 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/6.082, allocations: 12 kB / 3.372 GB, free: 44.95 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/6.082, allocations: 11.98 kB / 3.372 GB, free: 44.94 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/6.083, allocations: 278.1 kB / 3.372 GB, free: 44.67 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.001544/6.084, allocations: 1.086 MB / 3.373 GB, free: 43.49 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/6.085, allocations: 255.2 kB / 3.373 GB, free: 43.23 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008209/6.086, allocations: 0.5015 MB / 3.374 GB, free: 42.64 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/6.086, allocations: 38.73 kB / 3.374 GB, free: 42.59 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=21): time 1.933e-06/6.086, allocations: 0 / 3.374 GB, free: 42.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=21): time 0.00103/6.087, allocations: 412.2 kB / 3.374 GB, free: 42.19 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/6.087, allocations: 55.41 kB / 3.374 GB, free: 42.12 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/6.087, allocations: 271.7 kB / 3.374 GB, free: 41.85 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/6.087, allocations: 29.7 kB / 3.374 GB, free: 41.81 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.356e-05/6.087, allocations: 168.4 kB / 3.375 GB, free: 41.64 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.848e-05/6.087, allocations: 78.94 kB / 3.375 GB, free: 41.56 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.345e-05/6.087, allocations: 4 kB / 3.375 GB, free: 41.56 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.946e-05/6.087, allocations: 342.8 kB / 3.375 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/6.087, allocations: 99.92 kB / 3.375 GB, free: 41.12 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/6.088, allocations: 152.2 kB / 3.375 GB, free: 40.95 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/6.088, allocations: 116.1 kB / 3.375 GB, free: 40.84 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/6.088, allocations: 0 / 3.375 GB, free: 40.84 MB / 0.8855 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005442/6.088, allocations: 317 kB / 3.376 GB, free: 40.53 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/6.088, allocations: 4 kB / 3.376 GB, free: 40.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/6.088, allocations: 3.938 kB / 3.376 GB, free: 40.52 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/6.089, allocations: 4 kB / 3.376 GB, free: 40.52 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/6.089, allocations: 47.97 kB / 3.376 GB, free: 40.47 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/6.089, allocations: 8 kB / 3.376 GB, free: 40.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/6.089, allocations: 43.66 kB / 3.376 GB, free: 40.42 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-05/6.089, allocations: 12 kB / 3.376 GB, free: 40.41 MB / 0.8855 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 () * Number of clocked 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.0001709/6.089, allocations: 149.8 kB / 3.376 GB, free: 40.25 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/6.089, allocations: 39.58 kB / 3.376 GB, free: 40.21 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007067/6.09, allocations: 368.4 kB / 3.376 GB, free: 39.85 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/6.09, allocations: 0 / 3.376 GB, free: 39.85 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/6.09, allocations: 0 / 3.376 GB, free: 39.85 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/6.09, allocations: 0 / 3.376 GB, free: 39.85 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/6.091, allocations: 0.8761 MB / 3.377 GB, free: 38.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/6.091, allocations: 8.219 kB / 3.377 GB, free: 38.89 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/6.092, allocations: 47.91 kB / 3.377 GB, free: 38.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/6.092, allocations: 4 kB / 3.377 GB, free: 38.84 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/6.092, allocations: 11.98 kB / 3.377 GB, free: 38.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/6.092, allocations: 4 kB / 3.377 GB, free: 38.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/6.092, allocations: 3.938 kB / 3.377 GB, free: 38.82 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008741/6.093, allocations: 0.6798 MB / 3.378 GB, free: 38.06 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/6.093, allocations: 140.7 kB / 3.378 GB, free: 37.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/6.093, allocations: 15.92 kB / 3.378 GB, free: 37.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/6.093, allocations: 19.98 kB / 3.378 GB, free: 37.87 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/6.093, allocations: 31.98 kB / 3.378 GB, free: 37.84 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/6.093, allocations: 8 kB / 3.378 GB, free: 37.83 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002007/6.094, allocations: 223 kB / 3.378 GB, free: 37.61 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/6.094, allocations: 0 / 3.378 GB, free: 37.61 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001274/6.095, allocations: 227.8 kB / 3.379 GB, free: 37.39 MB / 0.8855 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 () * Number of clocked 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.00279/6.098, allocations: 1.258 MB / 3.38 GB, free: 36.11 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005997/6.098, allocations: 247.8 kB / 3.38 GB, free: 35.86 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/6.098, allocations: 0 / 3.38 GB, free: 35.86 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/6.099, allocations: 144.1 kB / 3.38 GB, free: 35.72 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008105/6.099, allocations: 149.8 kB / 3.38 GB, free: 35.58 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/6.101, allocations: 0.8584 MB / 3.381 GB, free: 34.67 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/6.101, allocations: 0.7992 MB / 3.382 GB, free: 33.85 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003055/6.101, allocations: 82.86 kB / 3.382 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.433e-05/6.101, allocations: 27.44 kB / 3.382 GB, free: 33.74 MB / 0.8855 GB Notification: Performance of SimCode: time 4.51e-07/6.101, allocations: 3.938 kB / 3.382 GB, free: 33.73 MB / 0.8855 GB Notification: Performance of Templates: time 0.02724/6.129, allocations: 21.29 MB / 3.403 GB, free: 12.51 MB / 0.8855 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