Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.000814/0.0008138, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.007315/0.007315, allocations: 170.7 kB / 16.26 MB, free: 6.613 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.387/1.387, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.43/2.43, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005567/0.0005571, allocations: 8 kB / 0.8159 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7661/0.7666, allocations: 142.4 MB / 0.955 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy): time 0.197/0.9636, allocations: 157.1 MB / 1.108 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.007867/0.9716, allocations: 4.496 MB / 1.113 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004584/0.9721, allocations: 7.938 kB / 1.113 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0005399/0.9726, allocations: 99.34 kB / 1.113 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001122/0.9738, allocations: 306.7 kB / 1.113 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.000865/0.9746, allocations: 245.4 kB / 1.113 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001113/0.9758, allocations: 0.799 MB / 1.114 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003857/0.9762, allocations: 173.5 kB / 1.114 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.9774, allocations: 414.3 kB / 1.115 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.9778, allocations: 195.2 kB / 1.115 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 4.993e-05/0.9778, allocations: 12 kB / 1.115 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.9781, allocations: 71.88 kB / 1.115 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.9782, allocations: 83.78 kB / 1.115 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.9784, allocations: 133.1 kB / 1.115 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.9788, allocations: 279 kB / 1.116 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.9788, allocations: 4 kB / 1.116 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9788, allocations: 3.938 kB / 1.116 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.587e-06/0.9788, allocations: 0 / 1.116 GB, free: 10.56 MB / 0.8731 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.0008842/0.9797, allocations: 0.4944 MB / 1.116 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.9798, allocations: 12.03 kB / 1.116 GB, free: 10 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.626e-05/0.9798, allocations: 31.66 kB / 1.116 GB, free: 9.973 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.9803, allocations: 271.4 kB / 1.116 GB, free: 9.668 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.9803, allocations: 16 kB / 1.116 GB, free: 9.652 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.9804, allocations: 16 kB / 1.116 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.9808, allocations: 273.6 kB / 1.117 GB, free: 9.332 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.9809, allocations: 4 kB / 1.117 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.9809, allocations: 11.94 kB / 1.117 GB, free: 9.316 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.9809, allocations: 8 kB / 1.117 GB, free: 9.309 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003715/0.9813, allocations: 164.6 kB / 1.117 GB, free: 9.148 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.9829, allocations: 1.375 MB / 1.118 GB, free: 7.68 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.9832, allocations: 183.7 kB / 1.118 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.9834, allocations: 97.11 kB / 1.118 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003875/0.9838, allocations: 129 kB / 1.119 GB, free: 7.188 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.9839, allocations: 50.44 kB / 1.119 GB, free: 7.129 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=10): time 2.064e-06/0.9839, allocations: 0 / 1.119 GB, free: 7.129 MB / 0.8731 GB Notification: Performance of matching and sorting (n=10): time 0.0008068/0.9847, allocations: 225.7 kB / 1.119 GB, free: 6.902 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.9848, allocations: 183.9 kB / 1.119 GB, free: 6.68 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004433/0.9853, allocations: 294.8 kB / 1.119 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.9853, allocations: 29.7 kB / 1.119 GB, free: 6.344 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.9855, allocations: 143.9 kB / 1.119 GB, free: 6.199 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.9856, allocations: 39.52 kB / 1.119 GB, free: 6.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.9856, allocations: 21.66 kB / 1.119 GB, free: 6.133 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002083/0.9858, allocations: 334.8 kB / 1.12 GB, free: 5.797 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.986, allocations: 55.95 kB / 1.12 GB, free: 5.742 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.9862, allocations: 123.6 kB / 1.12 GB, free: 5.594 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.9866, allocations: 166.7 kB / 1.12 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.9866, allocations: 0 / 1.12 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000419/0.9871, allocations: 197.2 kB / 1.12 GB, free: 5.207 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.9871, allocations: 11.94 kB / 1.12 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.9871, allocations: 224 / 1.12 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.9871, allocations: 8 kB / 1.12 GB, free: 5.188 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.9873, allocations: 35.91 kB / 1.12 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.9873, allocations: 4 kB / 1.12 GB, free: 5.148 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.9875, allocations: 27.83 kB / 1.12 GB, free: 5.121 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/0.9876, allocations: 8 kB / 1.12 GB, free: 5.113 MB / 0.8731 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.0001578/0.9877, allocations: 153.7 kB / 1.121 GB, free: 4.953 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.9879, allocations: 31.66 kB / 1.121 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003675/0.9882, allocations: 139.3 kB / 1.121 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.9883, allocations: 0 / 1.121 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.9883, allocations: 4 kB / 1.121 GB, free: 4.777 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.9883, allocations: 4 kB / 1.121 GB, free: 4.773 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009137/0.9892, allocations: 0.7806 MB / 1.121 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.9892, allocations: 0 / 1.121 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.9894, allocations: 28.14 kB / 1.121 GB, free: 3.891 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.9894, allocations: 4 kB / 1.121 GB, free: 3.887 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.9894, allocations: 4 kB / 1.121 GB, free: 3.883 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.9894, allocations: 4 kB / 1.121 GB, free: 3.879 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.9894, allocations: 3.938 kB / 1.121 GB, free: 3.875 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.99, allocations: 351.3 kB / 1.122 GB, free: 3.5 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.9902, allocations: 116.9 kB / 1.122 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.9903, allocations: 4 kB / 1.122 GB, free: 3.363 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.9904, allocations: 11.98 kB / 1.122 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.9905, allocations: 16.02 kB / 1.122 GB, free: 3.336 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.425e-06/0.9905, allocations: 7.938 kB / 1.122 GB, free: 3.328 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002069/0.9907, allocations: 209.9 kB / 1.122 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9907, allocations: 7.938 kB / 1.122 GB, free: 3.113 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003649/0.9911, allocations: 55.94 kB / 1.122 GB, free: 3.059 MB / 0.8731 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.0003627/0.9915, allocations: 134.6 kB / 1.122 GB, free: 2.926 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003842/0.9919, allocations: 131.8 kB / 1.122 GB, free: 2.797 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.9919, allocations: 0 / 1.122 GB, free: 2.797 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.992, allocations: 68.64 kB / 1.123 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008455/0.9929, allocations: 123.3 kB / 1.123 GB, free: 2.613 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009591/0.9939, allocations: 0.5639 MB / 1.123 GB, free: 2.008 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.9943, allocations: 0.7599 MB / 1.124 GB, free: 1.223 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001816/0.9944, allocations: 50.25 kB / 1.124 GB, free: 1.168 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.9945, allocations: 23.44 kB / 1.124 GB, free: 1.145 MB / 0.8731 GB Notification: Performance of SimCode: time 5.62e-07/0.9945, allocations: 0 / 1.124 GB, free: 1.145 MB / 0.8731 GB Notification: Performance of Templates: time 0.009433/1.004, allocations: 4.002 MB / 1.128 GB, free: 13.21 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_SpecificEnthalpy.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches