Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 179.7 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.99/1.99, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.919/3.919, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003898, allocations: 11.45 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3333, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EntropyFlowRate): time 0.1885/0.5218, allocations: 165 MB / 1.22 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.009396/0.5312, allocations: 7.102 MB / 1.227 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005533/0.5318, allocations: 15.88 kB / 1.227 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0006268/0.5325, allocations: 127.1 kB / 1.228 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003548/0.536, allocations: 1.187 MB / 1.229 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.5379, allocations: 0.5767 MB / 1.229 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001446/0.5394, allocations: 1.064 MB / 1.23 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005808/0.54, allocations: 238.1 kB / 1.231 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.5414, allocations: 0.5214 MB / 1.231 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009939/0.5424, allocations: 418.5 kB / 1.231 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.855e-05/0.5425, allocations: 12 kB / 1.231 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002675/0.5452, allocations: 1.473 MB / 1.233 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.5454, allocations: 111.6 kB / 1.233 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002931/0.5457, allocations: 188.8 kB / 1.233 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.547, allocations: 0.612 MB / 1.234 GB, free: 1.66 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.547, allocations: 4 kB / 1.234 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.237e-06/0.547, allocations: 0 / 1.234 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.533e-05/0.547, allocations: 3.938 kB / 1.234 GB, free: 1.652 MB / 0.9825 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.001343/0.5484, allocations: 0.6351 MB / 1.234 GB, free: 0.9688 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.5485, allocations: 8.031 kB / 1.234 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/0.5496, allocations: 135.4 kB / 1.235 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.5501, allocations: 325.1 kB / 1.235 GB, free: 480 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.752e-05/0.5502, allocations: 50.25 kB / 1.235 GB, free: 424 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.929e-05/0.5503, allocations: 32 kB / 1.235 GB, free: 392 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007004/0.551, allocations: 366.2 kB / 1.235 GB, free: 8 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.5511, allocations: 0 / 1.235 GB, free: 8 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.5511, allocations: 12.08 kB / 1.235 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.5511, allocations: 19.92 kB / 1.235 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005564/0.5517, allocations: 289.9 kB / 1.236 GB, free: 15.69 MB / 0.9981 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.002054/0.5538, allocations: 1.5 MB / 1.237 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.5542, allocations: 206.4 kB / 1.237 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.5545, allocations: 116.8 kB / 1.237 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001074/0.5555, allocations: 0.517 MB / 1.238 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.5556, allocations: 38.56 kB / 1.238 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.5556, allocations: 0 / 1.238 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.001074/0.5567, allocations: 369.1 kB / 1.238 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.5567, allocations: 59.34 kB / 1.238 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.5571, allocations: 308.5 kB / 1.239 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.5571, allocations: 37.64 kB / 1.239 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.5573, allocations: 184.1 kB / 1.239 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.222e-05/0.5573, allocations: 59.19 kB / 1.239 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.5574, allocations: 17.72 kB / 1.239 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5575, allocations: 342.8 kB / 1.239 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.5577, allocations: 91.92 kB / 1.239 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.558, allocations: 159.6 kB / 1.239 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004275/0.5584, allocations: 241.8 kB / 1.24 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.5584, allocations: 0 / 1.24 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006349/0.5591, allocations: 297.1 kB / 1.24 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.5591, allocations: 8 kB / 1.24 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.5591, allocations: 0 / 1.24 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.5591, allocations: 4.188 kB / 1.24 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.5594, allocations: 47.91 kB / 1.24 GB, free: 10.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.5594, allocations: 7.938 kB / 1.24 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.5597, allocations: 35.73 kB / 1.24 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.5597, allocations: 8 kB / 1.24 GB, free: 10.75 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.5599, allocations: 165.7 kB / 1.24 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.56, allocations: 35.56 kB / 1.24 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007343/0.5608, allocations: 322.7 kB / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.5608, allocations: 4 kB / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5608, allocations: 0 / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.5608, allocations: 0 / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.5622, allocations: 0.8122 MB / 1.241 GB, free: 9.328 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.5622, allocations: 8 kB / 1.241 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.5624, allocations: 40.19 kB / 1.241 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/0.5625, allocations: 11.94 kB / 1.241 GB, free: 9.27 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.5625, allocations: 4 kB / 1.241 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.5625, allocations: 3.938 kB / 1.241 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5625, allocations: 4 kB / 1.241 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006872/0.5632, allocations: 409 kB / 1.242 GB, free: 8.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.5634, allocations: 140.6 kB / 1.242 GB, free: 8.664 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.5634, allocations: 7.938 kB / 1.242 GB, free: 8.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/0.5637, allocations: 23.98 kB / 1.242 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.068e-05/0.5638, allocations: 11.98 kB / 1.242 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.5638, allocations: 19.98 kB / 1.242 GB, free: 8.602 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002435/0.5641, allocations: 227 kB / 1.242 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5641, allocations: 0 / 1.242 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005891/0.5647, allocations: 119.8 kB / 1.242 GB, free: 8.262 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006821/0.5654, allocations: 237.8 kB / 1.243 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005263/0.5659, allocations: 231 kB / 1.243 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.5659, allocations: 4 kB / 1.243 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.5661, allocations: 120.6 kB / 1.243 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.5672, allocations: 156.9 kB / 1.243 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.5684, allocations: 0.7481 MB / 1.244 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.5688, allocations: 0.7836 MB / 1.245 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.5689, allocations: 31.44 kB / 1.245 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/0.5689, allocations: 192 / 1.245 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of Templates: time 0.5818/1.151, allocations: 6.196 MB / 1.251 GB, free: 192.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_EntropyFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EntropyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches