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 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.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.0009025/0.0009026, allocations: 84.08 kB / 16.01 MB, free: 92 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.001407/0.001407, allocations: 185.9 kB / 16.92 MB, free: 6.289 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.431/1.431, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.953/2.953, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004006, allocations: 10.44 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3452, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.1726/0.5178, allocations: 158.9 MB / 1.215 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.006012/0.5239, allocations: 4.56 MB / 1.219 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000401/0.5243, allocations: 11.88 kB / 1.219 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004677/0.5248, allocations: 103.3 kB / 1.219 GB, free: 0.7852 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001568/0.5264, allocations: 0.5097 MB / 1.22 GB, free: 280 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002246/0.5287, allocations: 0.7042 MB / 1.22 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00121/0.5299, allocations: 0.8108 MB / 1.221 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00042/0.5303, allocations: 165.6 kB / 1.221 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.5315, allocations: 434.3 kB / 1.222 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007487/0.5323, allocations: 291 kB / 1.222 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.567e-05/0.5324, allocations: 8 kB / 1.222 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002284/0.5347, allocations: 1.165 MB / 1.223 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.5348, allocations: 87.7 kB / 1.223 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002087/0.535, allocations: 137.1 kB / 1.223 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009756/0.536, allocations: 0.4989 MB / 1.224 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.536, allocations: 0 / 1.224 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.154e-06/0.5361, allocations: 4 kB / 1.224 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.5361, allocations: 0 / 1.224 GB, free: 11.98 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001075/0.5372, allocations: 0.5413 MB / 1.224 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.5372, allocations: 12.03 kB / 1.224 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007218/0.5379, allocations: 79.48 kB / 1.224 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.5383, allocations: 291.2 kB / 1.225 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.5384, allocations: 20 kB / 1.225 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.5384, allocations: 20 kB / 1.225 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.5389, allocations: 291.4 kB / 1.225 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.539, allocations: 3.938 kB / 1.225 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.539, allocations: 12 kB / 1.225 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.539, allocations: 7.938 kB / 1.225 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/0.5395, allocations: 215.5 kB / 1.225 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.541, allocations: 1.249 MB / 1.226 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.5413, allocations: 173 kB / 1.227 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.5415, allocations: 116.2 kB / 1.227 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007621/0.5423, allocations: 355.3 kB / 1.227 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.5423, allocations: 38.55 kB / 1.227 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.5423, allocations: 0 / 1.227 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0007774/0.5431, allocations: 301.5 kB / 1.227 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.5432, allocations: 158.2 kB / 1.227 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.5435, allocations: 290.9 kB / 1.228 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.5435, allocations: 25.7 kB / 1.228 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5436, allocations: 147.8 kB / 1.228 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.5437, allocations: 43.39 kB / 1.228 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.5437, allocations: 21.75 kB / 1.228 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5439, allocations: 338.8 kB / 1.228 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.544, allocations: 87.72 kB / 1.228 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.5443, allocations: 146.2 kB / 1.229 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.5447, allocations: 223.5 kB / 1.229 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5447, allocations: 4 kB / 1.229 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005421/0.5452, allocations: 257.1 kB / 1.229 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.5453, allocations: 8.25 kB / 1.229 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5453, allocations: 4 kB / 1.229 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.5453, allocations: 4 kB / 1.229 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.5455, allocations: 43.92 kB / 1.229 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.5455, allocations: 3.984 kB / 1.229 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.5457, allocations: 31.69 kB / 1.229 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.5458, allocations: 19.92 kB / 1.229 GB, free: 6.02 MB / 0.9825 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.0001424/0.5459, allocations: 145.8 kB / 1.229 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.5461, allocations: 31.72 kB / 1.229 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004857/0.5465, allocations: 189.8 kB / 1.229 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.5466, allocations: 4.375 kB / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5466, allocations: 0 / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.5466, allocations: 0 / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009933/0.5476, allocations: 0.8666 MB / 1.23 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.5476, allocations: 7.938 kB / 1.23 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.5477, allocations: 23.98 kB / 1.23 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.5477, allocations: 7.875 kB / 1.23 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.5478, allocations: 8 kB / 1.23 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5478, allocations: 128 / 1.23 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.5478, allocations: 8 kB / 1.23 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005915/0.5484, allocations: 355.5 kB / 1.231 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.5485, allocations: 120.8 kB / 1.231 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/0.5486, allocations: 4 kB / 1.231 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.5487, allocations: 15.98 kB / 1.231 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.5488, allocations: 12.05 kB / 1.231 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.517e-06/0.5488, allocations: 4.047 kB / 1.231 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002616/0.5491, allocations: 241.9 kB / 1.231 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5491, allocations: 0 / 1.231 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004907/0.5496, allocations: 95.92 kB / 1.231 GB, free: 3.75 MB / 0.9825 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.0005755/0.5501, allocations: 218.9 kB / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000415/0.5506, allocations: 164 kB / 1.232 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5506, allocations: 0 / 1.232 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.5507, allocations: 63.91 kB / 1.232 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008615/0.5516, allocations: 138.4 kB / 1.232 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008628/0.5525, allocations: 0.6137 MB / 1.232 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.5528, allocations: 0.756 MB / 1.233 GB, free: 1.727 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.304e-05/0.5529, allocations: 27.44 kB / 1.233 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.5529, allocations: 0 / 1.233 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of Templates: time 0.007888/0.5608, allocations: 5.191 MB / 1.238 GB, free: 12.55 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches