Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.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.EnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senMasFlo.m_flow|senH.h_out|senH_flow.H_flow|cheEqu.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senMasFlo.m_flow|senH.h_out|senH_flow.H_flow|cheEqu.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, 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.00135/0.00135, allocations: 189.4 kB / 16.25 MB, free: 6.633 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.44/1.44, allocations: 222.9 MB / 239.9 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.959/2.959, allocations: 482.4 MB / 0.7543 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 70.17 kB / 0.9233 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4409/0.443, allocations: 162.2 MB / 1.082 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.2125/0.6555, allocations: 165.3 MB / 1.243 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.009044/0.6646, allocations: 6.488 MB / 1.25 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006585/0.6653, allocations: 11.94 kB / 1.25 GB, free: 1.203 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006413/0.666, allocations: 139.1 kB / 1.25 GB, free: 1.066 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002609/0.6686, allocations: 0.7821 MB / 1.25 GB, free: 288 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.81/1.479, allocations: 291.5 kB / 1.251 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001919/1.481, allocations: 0.7099 MB / 1.251 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006527/1.481, allocations: 270.3 kB / 1.252 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002389/1.484, allocations: 0.6852 MB / 1.252 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005661/1.484, allocations: 282 kB / 1.253 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.632e-05/1.484, allocations: 22.06 kB / 1.253 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009218/1.485, allocations: 347.7 kB / 1.253 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002084/1.486, allocations: 106.7 kB / 1.253 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002694/1.486, allocations: 165.5 kB / 1.253 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000966/1.487, allocations: 483 kB / 1.254 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/1.487, allocations: 3.438 kB / 1.254 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of FrontEnd: time 4.398e-06/1.487, allocations: 1 kB / 1.254 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.017e-05/1.487, allocations: 1.891 kB / 1.254 GB, free: 7.906 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001551/1.488, allocations: 0.6218 MB / 1.254 GB, free: 23.46 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/1.488, allocations: 10 kB / 1.254 GB, free: 23.46 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/1.489, allocations: 55.05 kB / 1.254 GB, free: 23.44 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/1.489, allocations: 312.5 kB / 1.255 GB, free: 23.21 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/1.489, allocations: 21.62 kB / 1.255 GB, free: 23.21 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-05/1.489, allocations: 27.33 kB / 1.255 GB, free: 23.21 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006888/1.49, allocations: 321.3 kB / 1.255 GB, free: 23.12 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/1.49, allocations: 0 / 1.255 GB, free: 23.12 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/1.49, allocations: 10.59 kB / 1.255 GB, free: 23.12 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/1.49, allocations: 7.484 kB / 1.255 GB, free: 23.12 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/1.491, allocations: 201 kB / 1.255 GB, free: 23.12 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/1.493, allocations: 1.54 MB / 1.257 GB, free: 21.99 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/1.493, allocations: 119.9 kB / 1.257 GB, free: 21.96 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/1.493, allocations: 91.47 kB / 1.257 GB, free: 21.96 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008628/1.494, allocations: 302.8 kB / 1.257 GB, free: 21.68 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/1.494, allocations: 32.56 kB / 1.257 GB, free: 21.64 MB / 1.014 GB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/1.494, allocations: 2.172 kB / 1.257 GB, free: 21.64 MB / 1.014 GB Notification: Performance of matching and sorting (n=13): time 0.000959/1.495, allocations: 277.3 kB / 1.257 GB, free: 21.59 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/1.495, allocations: 54.28 kB / 1.258 GB, free: 21.52 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000503/1.496, allocations: 312.3 kB / 1.258 GB, free: 21.42 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/1.496, allocations: 31.27 kB / 1.258 GB, free: 21.39 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/1.496, allocations: 183.9 kB / 1.258 GB, free: 21.27 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.792e-05/1.496, allocations: 43.19 kB / 1.258 GB, free: 21.25 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.962e-05/1.496, allocations: 36.34 kB / 1.258 GB, free: 21.23 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002332/1.496, allocations: 340.4 kB / 1.258 GB, free: 20.92 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/1.497, allocations: 59.22 kB / 1.258 GB, free: 20.92 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/1.497, allocations: 112.8 kB / 1.259 GB, free: 20.87 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/1.497, allocations: 176.9 kB / 1.259 GB, free: 20.82 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/1.497, allocations: 0 / 1.259 GB, free: 20.82 MB / 1.014 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005074/1.498, allocations: 223.9 kB / 1.259 GB, free: 20.78 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/1.498, allocations: 10.94 kB / 1.259 GB, free: 20.77 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.498, allocations: 2.562 kB / 1.259 GB, free: 20.77 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/1.498, allocations: 2.375 kB / 1.259 GB, free: 20.77 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/1.498, allocations: 35.14 kB / 1.259 GB, free: 20.77 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/1.498, allocations: 3 kB / 1.259 GB, free: 20.77 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/1.498, allocations: 41.34 kB / 1.259 GB, free: 20.76 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/1.498, allocations: 7.75 kB / 1.259 GB, free: 20.76 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (17): * Single equations (assignments): 17 * 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.0001891/1.499, allocations: 152 kB / 1.259 GB, free: 20.64 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-05/1.499, allocations: 28.94 kB / 1.259 GB, free: 20.63 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005056/1.499, allocations: 201.7 kB / 1.259 GB, free: 20.59 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/1.499, allocations: 4.094 kB / 1.259 GB, free: 20.59 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.499, allocations: 0.6875 kB / 1.259 GB, free: 20.59 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/1.499, allocations: 1.562 kB / 1.259 GB, free: 20.59 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/1.5, allocations: 0.6875 MB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/1.5, allocations: 1.906 kB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/1.501, allocations: 30.75 kB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/1.501, allocations: 2.375 kB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/1.501, allocations: 7.672 kB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/1.501, allocations: 3.25 kB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.501, allocations: 2.094 kB / 1.26 GB, free: 20.23 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004987/1.501, allocations: 340.9 kB / 1.26 GB, free: 20.03 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/1.501, allocations: 120.3 kB / 1.261 GB, free: 19.92 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/1.501, allocations: 5.812 kB / 1.261 GB, free: 19.92 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/1.502, allocations: 14.41 kB / 1.261 GB, free: 19.92 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/1.502, allocations: 21.09 kB / 1.261 GB, free: 19.91 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/1.502, allocations: 4.906 kB / 1.261 GB, free: 19.91 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002834/1.502, allocations: 226.1 kB / 1.261 GB, free: 19.84 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.11e-07/1.502, allocations: 2.031 kB / 1.261 GB, free: 19.84 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004854/1.502, allocations: 72.34 kB / 1.261 GB, free: 19.83 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (13): * Single equations (assignments): 13 * 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.000527/1.503, allocations: 164.4 kB / 1.261 GB, free: 19.73 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004877/1.503, allocations: 165.3 kB / 1.261 GB, free: 19.72 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/1.504, allocations: 1.781 kB / 1.261 GB, free: 19.72 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002053/1.504, allocations: 80.02 kB / 1.261 GB, free: 19.72 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009281/1.505, allocations: 146.1 kB / 1.261 GB, free: 19.71 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/1.506, allocations: 0.6343 MB / 1.262 GB, free: 19.32 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/1.506, allocations: 0.7836 MB / 1.263 GB, free: 18.62 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002592/1.507, allocations: 64.09 kB / 1.263 GB, free: 18.62 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/1.507, allocations: 24.22 kB / 1.263 GB, free: 18.61 MB / 1.014 GB Notification: Performance of SimCode: time 5.61e-07/1.507, allocations: 0 / 1.263 GB, free: 18.61 MB / 1.014 GB Notification: Performance of Templates: time 0.0147/1.521, allocations: 5.054 MB / 1.268 GB, free: 18.47 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches