Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.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.SpecificEnthalpy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.h_out|senFloSou.h_out",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy") translateModel(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.h_out|senFloSou.h_out",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001788/0.001788, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00196/0.00196, allocations: 190.8 kB / 16.25 MB, free: 6.637 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.661/1.661, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.257/3.257, allocations: 482.3 MB / 0.7542 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 67.92 kB / 0.9232 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.46/0.462, allocations: 162.2 MB / 1.082 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy): time 0.2672/0.7293, allocations: 159.2 MB / 1.237 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.006569/0.7359, allocations: 4.504 MB / 1.241 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005006/0.7365, allocations: 7.938 kB / 1.241 GB, free: 9.402 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005292/0.7371, allocations: 99.36 kB / 1.242 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.7381, allocations: 318.7 kB / 1.242 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009363/0.739, allocations: 250.7 kB / 1.242 GB, free: 8.75 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0007894/0.7398, allocations: 0.5612 MB / 1.243 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003821/0.7402, allocations: 189.1 kB / 1.243 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.742, allocations: 0.6423 MB / 1.243 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.7423, allocations: 199.2 kB / 1.244 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.82e-05/0.7424, allocations: 16 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.7426, allocations: 75.94 kB / 1.244 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.7427, allocations: 83.72 kB / 1.244 GB, free: 6.988 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.7429, allocations: 119.4 kB / 1.244 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004727/0.7434, allocations: 295 kB / 1.244 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.7434, allocations: 4 kB / 1.244 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.254e-06/0.7434, allocations: 0 / 1.244 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.7434, allocations: 0 / 1.244 GB, free: 6.578 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001118/0.7445, allocations: 0.5295 MB / 1.245 GB, free: 6 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.7446, allocations: 8.031 kB / 1.245 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.299e-05/0.7447, allocations: 31.56 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.7452, allocations: 271.4 kB / 1.245 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/0.7452, allocations: 16 kB / 1.245 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.7453, allocations: 24 kB / 1.245 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006096/0.7459, allocations: 265.6 kB / 1.245 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.746, allocations: 7.938 kB / 1.245 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.746, allocations: 7.938 kB / 1.245 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.746, allocations: 8 kB / 1.245 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/0.7464, allocations: 151.8 kB / 1.246 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.7481, allocations: 1.371 MB / 1.247 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003463/0.7484, allocations: 179.7 kB / 1.247 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.7486, allocations: 101 kB / 1.247 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003959/0.7491, allocations: 113 kB / 1.247 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.7491, allocations: 46.44 kB / 1.247 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.7491, allocations: 0 / 1.247 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0006961/0.7498, allocations: 201.8 kB / 1.247 GB, free: 2.953 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/0.75, allocations: 195.8 kB / 1.248 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.7503, allocations: 287 kB / 1.248 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.7504, allocations: 25.7 kB / 1.248 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.7505, allocations: 147.9 kB / 1.248 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.7506, allocations: 35.45 kB / 1.248 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.449e-05/0.7507, allocations: 37.7 kB / 1.248 GB, free: 2.176 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002266/0.7509, allocations: 334.8 kB / 1.248 GB, free: 1.84 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.751, allocations: 43.97 kB / 1.249 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.7513, allocations: 115.7 kB / 1.249 GB, free: 1.656 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.7516, allocations: 158.9 kB / 1.249 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.7516, allocations: 3.938 kB / 1.249 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004089/0.752, allocations: 197.1 kB / 1.249 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.7521, allocations: 7.938 kB / 1.249 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.7521, allocations: 4 kB / 1.249 GB, free: 1.262 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.7521, allocations: 0 / 1.249 GB, free: 1.262 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.7523, allocations: 27.98 kB / 1.249 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.7523, allocations: 8.156 kB / 1.249 GB, free: 1.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.7525, allocations: 39.67 kB / 1.249 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.7525, allocations: 4 kB / 1.249 GB, free: 1.184 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (15): * Single equations (assignments): 15 * 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.0001937/0.7527, allocations: 146.3 kB / 1.249 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.7528, allocations: 31.66 kB / 1.249 GB, free: 1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003813/0.7532, allocations: 127 kB / 1.249 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.7532, allocations: 4 kB / 1.249 GB, free: 0.8633 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.7533, allocations: 4 kB / 1.249 GB, free: 0.8594 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.7533, allocations: 7.969 kB / 1.249 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.7544, allocations: 0.7691 MB / 1.25 GB, free: 8 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.7544, allocations: 4.156 kB / 1.25 GB, free: 4 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.7527/1.507, allocations: 23.06 kB / 1.25 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.341e-05/1.507, allocations: 2.094 kB / 1.25 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/1.507, allocations: 2.469 kB / 1.25 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/1.507, allocations: 3.141 kB / 1.25 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/1.507, allocations: 2.344 kB / 1.25 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006794/1.508, allocations: 341.2 kB / 1.25 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/1.508, allocations: 117 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/1.508, allocations: 3.234 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/1.508, allocations: 12.08 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/1.508, allocations: 12.05 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/1.508, allocations: 6.062 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002824/1.509, allocations: 211.2 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/1.509, allocations: 0 / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004293/1.509, allocations: 53.38 kB / 1.251 GB, free: 176.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.h_out) * 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.0004405/1.51, allocations: 137.2 kB / 1.251 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004094/1.51, allocations: 131.4 kB / 1.251 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.51, allocations: 0 / 1.251 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/1.51, allocations: 59.64 kB / 1.251 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008133/1.511, allocations: 131.8 kB / 1.251 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008785/1.512, allocations: 0.5374 MB / 1.252 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/1.512, allocations: 0.7559 MB / 1.253 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001758/1.512, allocations: 53.59 kB / 1.253 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/1.512, allocations: 25.12 kB / 1.253 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of SimCode: time 3.41e-07/1.512, allocations: 0 / 1.253 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.01237/1.525, allocations: 4.162 MB / 1.257 GB, free: 174.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_SpecificEnthalpy.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches