Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.SpecificEntropy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.s|senFloSou.s",fileNamePrefix="Buildings_latest_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_latest_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.001632/0.001632, allocations: 108 kB / 15.61 MB, free: 152 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.00252/0.00252, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.486/1.486, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.795/2.795, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001262, allocations: 67.41 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3665, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.1806/0.5472, allocations: 163.2 MB / 1.228 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005759/0.553, allocations: 4.588 MB / 1.232 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004209/0.5535, allocations: 11.94 kB / 1.232 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004605/0.554, allocations: 123.1 kB / 1.232 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.5554, allocations: 0.5367 MB / 1.233 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.5572, allocations: 0.7626 MB / 1.233 GB, free: 0.5742 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006642/0.5579, allocations: 0.5768 MB / 1.234 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.5583, allocations: 217.1 kB / 1.234 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009485/0.5592, allocations: 466.2 kB / 1.235 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.5598, allocations: 290.9 kB / 1.235 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.5598, allocations: 16 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.5618, allocations: 1.002 MB / 1.236 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.5619, allocations: 91.7 kB / 1.236 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.5621, allocations: 127.3 kB / 1.236 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.5634, allocations: 0.7091 MB / 1.237 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.5634, allocations: 0 / 1.237 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5634, allocations: 0 / 1.237 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.5634, allocations: 0 / 1.237 GB, free: 13.09 MB / 0.9981 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.001057/0.5645, allocations: 0.5957 MB / 1.237 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.5646, allocations: 8.031 kB / 1.237 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007222/0.5653, allocations: 79.5 kB / 1.238 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.5657, allocations: 283.4 kB / 1.238 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.5657, allocations: 16 kB / 1.238 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.889e-05/0.5658, allocations: 19.91 kB / 1.238 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.5663, allocations: 287.4 kB / 1.238 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.5663, allocations: 0 / 1.238 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.5663, allocations: 12 kB / 1.238 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.5664, allocations: 7.938 kB / 1.238 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004185/0.5668, allocations: 213.4 kB / 1.238 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.5683, allocations: 1.242 MB / 1.24 GB, free: 10.15 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.5687, allocations: 173.2 kB / 1.24 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.5689, allocations: 116.2 kB / 1.24 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008215/0.5697, allocations: 335.2 kB / 1.24 GB, free: 9.426 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.5698, allocations: 34.56 kB / 1.24 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.5698, allocations: 7.938 kB / 1.24 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0008094/0.5706, allocations: 273.6 kB / 1.24 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.527e-05/0.5707, allocations: 158.2 kB / 1.241 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.571, allocations: 287 kB / 1.241 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.571, allocations: 29.7 kB / 1.241 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.5711, allocations: 151.8 kB / 1.241 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.5712, allocations: 39.44 kB / 1.241 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.977e-05/0.5713, allocations: 49.61 kB / 1.241 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5714, allocations: 346.8 kB / 1.241 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.5716, allocations: 67.94 kB / 1.241 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.5718, allocations: 134.6 kB / 1.242 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003744/0.5722, allocations: 215.5 kB / 1.242 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5722, allocations: 0 / 1.242 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000528/0.5728, allocations: 249 kB / 1.242 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.5728, allocations: 8.25 kB / 1.242 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.5728, allocations: 4 kB / 1.242 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.5728, allocations: 4 kB / 1.242 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.573, allocations: 35.92 kB / 1.242 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.998e-06/0.5731, allocations: 11.94 kB / 1.242 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.5733, allocations: 35.67 kB / 1.242 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.931e-05/0.5733, allocations: 11.94 kB / 1.242 GB, free: 7.172 MB / 0.9981 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.0001486/0.5735, allocations: 157.7 kB / 1.242 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.5736, allocations: 27.72 kB / 1.242 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004887/0.5741, allocations: 181.9 kB / 1.243 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.5741, allocations: 4 kB / 1.243 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5741, allocations: 0 / 1.243 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.5741, allocations: 7.938 kB / 1.243 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.5752, allocations: 0.8548 MB / 1.243 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.5752, allocations: 4 kB / 1.243 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.5753, allocations: 23.92 kB / 1.243 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.5753, allocations: 3.938 kB / 1.243 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.5753, allocations: 4 kB / 1.243 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.5753, allocations: 4 kB / 1.243 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5753, allocations: 0 / 1.243 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.576, allocations: 339.6 kB / 1.244 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.5761, allocations: 112.8 kB / 1.244 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.999e-05/0.5761, allocations: 8 kB / 1.244 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.5763, allocations: 7.984 kB / 1.244 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/0.5764, allocations: 12.05 kB / 1.244 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.5764, allocations: 12.09 kB / 1.244 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002825/0.5767, allocations: 237.9 kB / 1.244 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.5767, allocations: 0 / 1.244 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005557/0.5773, allocations: 99.92 kB / 1.244 GB, free: 4.945 MB / 0.9981 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.0006871/0.578, allocations: 219.2 kB / 1.244 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004324/0.5784, allocations: 159.7 kB / 1.245 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.5784, allocations: 0 / 1.245 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.5786, allocations: 59.91 kB / 1.245 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008157/0.5794, allocations: 142.2 kB / 1.245 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009633/0.5804, allocations: 0.4924 MB / 1.245 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.5808, allocations: 0.7597 MB / 1.246 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002138/0.581, allocations: 62.89 kB / 1.246 GB, free: 3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.902e-05/0.5811, allocations: 23.42 kB / 1.246 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of SimCode: time 7.71e-07/0.5811, allocations: 7.938 kB / 1.246 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of Templates: time 0.5375/1.119, allocations: 5.788 MB / 1.252 GB, free: 185.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_SpecificEntropy.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches