Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.SpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.s|senFloSou.s",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy") translateModel(Buildings.Fluid.Sensors.Examples.SpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.s|senFloSou.s",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 102.7 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 193.6 kB / 17.3 MB, free: 5.52 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.224/2.224, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 65.98 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2792, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.6858/0.9651, allocations: 163.2 MB / 1.111 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005554/0.9707, allocations: 4.581 MB / 1.115 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004782/0.9712, allocations: 10.69 kB / 1.115 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004785/0.9717, allocations: 124.7 kB / 1.115 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.9733, allocations: 0.5363 MB / 1.116 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.9756, allocations: 0.7701 MB / 1.116 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008577/0.9765, allocations: 0.5784 MB / 1.117 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.9769, allocations: 219.8 kB / 1.117 GB, free: 5.176 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.978, allocations: 464.6 kB / 1.118 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005905/0.9786, allocations: 283 kB / 1.118 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.059e-05/0.9786, allocations: 17.81 kB / 1.118 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002066/0.9807, allocations: 1.001 MB / 1.119 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.9809, allocations: 90.58 kB / 1.119 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.9811, allocations: 125.5 kB / 1.119 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001325/0.9824, allocations: 0.7157 MB / 1.12 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.9824, allocations: 7.875 kB / 1.12 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9824, allocations: 0 / 1.12 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.9824, allocations: 1.75 kB / 1.12 GB, free: 5.113 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001073/0.9835, allocations: 0.59 MB / 1.12 GB, free: 20.65 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.9835, allocations: 9.531 kB / 1.12 GB, free: 20.65 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007063/0.9843, allocations: 75.7 kB / 1.12 GB, free: 20.64 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.9847, allocations: 300.3 kB / 1.121 GB, free: 20.41 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.9848, allocations: 15.44 kB / 1.121 GB, free: 20.41 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.199e-05/0.9848, allocations: 19.2 kB / 1.121 GB, free: 20.41 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.9853, allocations: 286.7 kB / 1.121 GB, free: 20.32 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.9854, allocations: 0 / 1.121 GB, free: 20.32 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.9854, allocations: 5.812 kB / 1.121 GB, free: 20.32 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.9854, allocations: 9.672 kB / 1.121 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004707/0.9859, allocations: 205.4 kB / 1.121 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.9876, allocations: 1.246 MB / 1.122 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.9879, allocations: 179 kB / 1.123 GB, free: 19.34 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.9881, allocations: 113.6 kB / 1.123 GB, free: 19.3 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007669/0.9888, allocations: 333.6 kB / 1.123 GB, free: 19.02 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.9889, allocations: 38.5 kB / 1.123 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 2.595e-06/0.9889, allocations: 0 / 1.123 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0007753/0.9897, allocations: 286.3 kB / 1.123 GB, free: 18.93 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/0.9898, allocations: 158 kB / 1.124 GB, free: 18.74 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.9901, allocations: 285.3 kB / 1.124 GB, free: 18.63 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.9901, allocations: 26.73 kB / 1.124 GB, free: 18.6 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.9902, allocations: 154.6 kB / 1.124 GB, free: 18.5 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.656e-05/0.9903, allocations: 48.39 kB / 1.124 GB, free: 18.47 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.9904, allocations: 39.98 kB / 1.124 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.9905, allocations: 338.9 kB / 1.124 GB, free: 18.14 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.9906, allocations: 70.67 kB / 1.124 GB, free: 18.14 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.9908, allocations: 145.8 kB / 1.125 GB, free: 18.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.9912, allocations: 209.6 kB / 1.125 GB, free: 17.98 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.9912, allocations: 2.75 kB / 1.125 GB, free: 17.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005081/0.9917, allocations: 248.8 kB / 1.125 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.9918, allocations: 5.531 kB / 1.125 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.9918, allocations: 3 kB / 1.125 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.9918, allocations: 3.75 kB / 1.125 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.992, allocations: 38.78 kB / 1.125 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.992, allocations: 3.219 kB / 1.125 GB, free: 17.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.9922, allocations: 29.8 kB / 1.125 GB, free: 17.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.9923, allocations: 14.56 kB / 1.125 GB, free: 17.92 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (18): * Single equations (assignments): 18 * 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.0001501/0.9924, allocations: 161 kB / 1.125 GB, free: 17.8 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.9926, allocations: 25.7 kB / 1.125 GB, free: 17.79 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004429/0.993, allocations: 189.3 kB / 1.125 GB, free: 17.71 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.993, allocations: 3 kB / 1.125 GB, free: 17.71 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.993, allocations: 1.375 kB / 1.125 GB, free: 17.71 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.9931, allocations: 3.094 kB / 1.125 GB, free: 17.71 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.9941, allocations: 0.8573 MB / 1.126 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.9941, allocations: 0.8125 kB / 1.126 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.9942, allocations: 28.58 kB / 1.126 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.9943, allocations: 5.953 kB / 1.126 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.9943, allocations: 2.812 kB / 1.126 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.9943, allocations: 5.391 kB / 1.126 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.9943, allocations: 5.156 kB / 1.126 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005599/0.9949, allocations: 340.7 kB / 1.127 GB, free: 16.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.995, allocations: 111 kB / 1.127 GB, free: 16.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.394e-05/0.995, allocations: 7.625 kB / 1.127 GB, free: 16.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.9952, allocations: 8.688 kB / 1.127 GB, free: 16.76 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.9953, allocations: 13.28 kB / 1.127 GB, free: 16.76 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.9953, allocations: 7.938 kB / 1.127 GB, free: 16.76 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002621/0.9955, allocations: 237.5 kB / 1.127 GB, free: 16.68 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9955, allocations: 1.203 kB / 1.127 GB, free: 16.68 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005768/0.9961, allocations: 95.98 kB / 1.127 GB, free: 16.66 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.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 (10): * Single equations (assignments): 10 * 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.0005861/0.9967, allocations: 217.2 kB / 1.127 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004149/0.9971, allocations: 149.1 kB / 1.128 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.9972, allocations: 1.312 kB / 1.128 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.9973, allocations: 59.94 kB / 1.128 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007594/0.9981, allocations: 140.8 kB / 1.128 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007495/0.9988, allocations: 497.9 kB / 1.128 GB, free: 16.24 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.9992, allocations: 0.7621 MB / 1.129 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001723/0.9994, allocations: 60.75 kB / 1.129 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.9994, allocations: 28.12 kB / 1.129 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of SimCode: time 1.172e-06/0.9994, allocations: 1.25 kB / 1.129 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of Templates: time 0.01074/1.01, allocations: 5.806 MB / 1.135 GB, free: 15.11 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_SpecificEntropy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches