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.001147/0.001147, allocations: 100.1 kB / 15.88 MB, free: 12 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.001419/0.001419, allocations: 200 kB / 16.79 MB, free: 6.828 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.441/1.441, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.88/2.88, allocations: 461.9 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 71.41 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3356, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.184/0.5197, allocations: 161 MB / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.005938/0.5257, allocations: 4.63 MB / 1.214 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004555/0.5262, allocations: 15.94 kB / 1.215 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005721/0.5268, allocations: 95.34 kB / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001501/0.5284, allocations: 0.5097 MB / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.5303, allocations: 0.7002 MB / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009056/0.5313, allocations: 0.8147 MB / 1.217 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.5316, allocations: 169.5 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009704/0.5326, allocations: 430.4 kB / 1.217 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006102/0.5332, allocations: 306.9 kB / 1.217 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/0.5332, allocations: 12 kB / 1.217 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00198/0.5352, allocations: 1.161 MB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.5354, allocations: 75.78 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.5355, allocations: 123.3 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007834/0.5363, allocations: 0.5029 MB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.5363, allocations: 0 / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5363, allocations: 0 / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.479e-05/0.5363, allocations: 0 / 1.219 GB, free: 13.19 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.00101/0.5374, allocations: 0.5996 MB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.5374, allocations: 8.031 kB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007223/0.5381, allocations: 75.59 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.5386, allocations: 287.3 kB / 1.22 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.5387, allocations: 12 kB / 1.22 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.5387, allocations: 23.98 kB / 1.22 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.5392, allocations: 287.4 kB / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.5393, allocations: 3.938 kB / 1.221 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.5393, allocations: 8 kB / 1.221 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.5393, allocations: 7.938 kB / 1.221 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004323/0.5398, allocations: 207.5 kB / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.5415, allocations: 1.242 MB / 1.222 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.5419, allocations: 181 kB / 1.222 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.5421, allocations: 108.2 kB / 1.222 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008242/0.5429, allocations: 335.2 kB / 1.223 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.543, allocations: 38.69 kB / 1.223 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 2.064e-06/0.543, allocations: 3.938 kB / 1.223 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0008242/0.5438, allocations: 277 kB / 1.223 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.5439, allocations: 166.7 kB / 1.223 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.5443, allocations: 287 kB / 1.223 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.964e-05/0.5443, allocations: 29.7 kB / 1.223 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.5445, allocations: 143.9 kB / 1.223 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.5445, allocations: 43.36 kB / 1.223 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.5447, allocations: 41.7 kB / 1.224 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5448, allocations: 338.8 kB / 1.224 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.545, allocations: 67.95 kB / 1.224 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.5453, allocations: 144.4 kB / 1.224 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.5457, allocations: 219.5 kB / 1.224 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.5457, allocations: 4 kB / 1.224 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005238/0.5462, allocations: 245.2 kB / 1.224 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.5463, allocations: 4 kB / 1.224 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.5463, allocations: 7.984 kB / 1.225 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.5463, allocations: 8.188 kB / 1.225 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.5465, allocations: 39.97 kB / 1.225 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.5465, allocations: 4 kB / 1.225 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.5467, allocations: 31.77 kB / 1.225 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.5468, allocations: 11.94 kB / 1.225 GB, free: 7.27 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.0001571/0.5469, allocations: 149.8 kB / 1.225 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.5471, allocations: 27.62 kB / 1.225 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004904/0.5476, allocations: 190.2 kB / 1.225 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.5476, allocations: 7.938 kB / 1.225 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5476, allocations: 3.984 kB / 1.225 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.5476, allocations: 7.938 kB / 1.225 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.5487, allocations: 0.851 MB / 1.226 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.5487, allocations: 4 kB / 1.226 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.5489, allocations: 23.98 kB / 1.226 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.5489, allocations: 7.938 kB / 1.226 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.5489, allocations: 0 / 1.226 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.259e-05/0.5489, allocations: 4 kB / 1.226 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5489, allocations: 0 / 1.226 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/0.5495, allocations: 343.6 kB / 1.226 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.5496, allocations: 108.8 kB / 1.226 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.89e-05/0.5497, allocations: 11.91 kB / 1.226 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.5498, allocations: 12.05 kB / 1.226 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.5499, allocations: 15.98 kB / 1.226 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.5499, allocations: 4 kB / 1.226 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002477/0.5502, allocations: 229.9 kB / 1.227 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5502, allocations: 4 kB / 1.227 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005276/0.5507, allocations: 99.92 kB / 1.227 GB, free: 5.035 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.0006077/0.5513, allocations: 216.6 kB / 1.227 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004264/0.5518, allocations: 148 kB / 1.227 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5518, allocations: 4 kB / 1.227 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.5519, allocations: 55.91 kB / 1.227 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008384/0.5528, allocations: 137.7 kB / 1.227 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009575/0.5538, allocations: 0.5851 MB / 1.228 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.5542, allocations: 0.756 MB / 1.228 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.986e-05/0.5542, allocations: 27.42 kB / 1.228 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.5543, allocations: 0 / 1.228 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of Templates: time 0.008775/0.563, allocations: 5.236 MB / 1.234 GB, free: 13.84 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