Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 111.5 kB / 16.37 MB, free: 6.016 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.001671/0.001671, allocations: 197.4 kB / 17.31 MB, free: 5.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.312/1.312, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.386/2.386, allocations: 437.1 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 56.5 kB / 0.8707 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2656, allocations: 151.6 MB / 1.019 GB, free: 9.887 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005034/0.2707, allocations: 4.019 MB / 1.023 GB, free: 5.84 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001787/0.2709, allocations: 155.5 kB / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.2709, allocations: 0 / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.156e-05/0.271, allocations: 7.938 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.98e-05/0.2711, allocations: 19.91 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.2714, allocations: 83.75 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.874e-05/0.2715, allocations: 35.84 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/0.2716, allocations: 0 / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.322e-05/0.2716, allocations: 12 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.202e-05/0.2717, allocations: 19.91 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.2717, allocations: 4 kB / 1.023 GB, free: 5.512 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.2719, allocations: 55.81 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.37e-05/0.272, allocations: 4 kB / 1.023 GB, free: 5.453 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.272, allocations: 19.91 kB / 1.023 GB, free: 5.434 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.2721, allocations: 39.95 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2722, allocations: 4 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2722, allocations: 3.938 kB / 1.023 GB, free: 5.387 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.2722, allocations: 0 / 1.023 GB, free: 5.387 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003634/0.2725, allocations: 331.5 kB / 1.023 GB, free: 5.016 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2726, allocations: 8.922 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.2726, allocations: 8.938 kB / 1.023 GB, free: 5 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.2727, allocations: 172.3 kB / 1.024 GB, free: 4.793 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/0.2728, allocations: 26.27 kB / 1.024 GB, free: 4.762 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.2728, allocations: 4.375 kB / 1.024 GB, free: 4.758 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.273, allocations: 49.55 kB / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.273, allocations: 0 / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.273, allocations: 0 / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.273, allocations: 7.938 kB / 1.024 GB, free: 4.695 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.199e-05/0.2731, allocations: 27.92 kB / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004154/0.2735, allocations: 330 kB / 1.024 GB, free: 4.277 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.2736, allocations: 18.58 kB / 1.024 GB, free: 4.25 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.578e-05/0.2736, allocations: 4.859 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.011e-05/0.2737, allocations: 85.17 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.2737, allocations: 38.56 kB / 1.024 GB, free: 4.094 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.2737, allocations: 0 / 1.024 GB, free: 4.094 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.2739, allocations: 37.62 kB / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.2739, allocations: 55.41 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.799e-05/0.274, allocations: 97.86 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.274, allocations: 29.69 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.319e-05/0.2741, allocations: 87.98 kB / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.338e-06/0.2741, allocations: 4.125 kB / 1.024 GB, free: 3.75 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.2741, allocations: 21.72 kB / 1.025 GB, free: 3.723 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2742, allocations: 314.8 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.2743, allocations: 7.984 kB / 1.025 GB, free: 3.398 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.622e-05/0.2743, allocations: 13.72 kB / 1.025 GB, free: 3.379 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.359e-05/0.2743, allocations: 21.66 kB / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2743, allocations: 4 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.086e-05/0.2744, allocations: 49.59 kB / 1.025 GB, free: 3.293 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2745, allocations: 8 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.2745, allocations: 0 / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2745, allocations: 0 / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.202e-05/0.2745, allocations: 11.92 kB / 1.025 GB, free: 3.273 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2746, allocations: 4 kB / 1.025 GB, free: 3.27 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.78e-05/0.2746, allocations: 0 / 1.025 GB, free: 3.27 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.2746, allocations: 0 / 1.025 GB, free: 3.27 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 7.221e-05/0.2747, allocations: 122.7 kB / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.2747, allocations: 0 / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.2748, allocations: 121 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.543e-05/0.2749, allocations: 180.2 kB / 1.025 GB, free: 2.824 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.424e-05/0.2749, allocations: 180.3 kB / 1.026 GB, free: 2.641 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.266e-05/0.275, allocations: 188.2 kB / 1.026 GB, free: 2.449 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.2752, allocations: 401.2 kB / 1.026 GB, free: 2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.791e-05/0.2753, allocations: 109 kB / 1.026 GB, free: 1.887 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.992e-05/0.2753, allocations: 108.9 kB / 1.026 GB, free: 1.773 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.813e-05/0.2754, allocations: 180.2 kB / 1.026 GB, free: 1.59 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/0.2754, allocations: 180.2 kB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.231e-05/0.2755, allocations: 188.2 kB / 1.027 GB, free: 1.215 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.459e-05/0.2755, allocations: 180.2 kB / 1.027 GB, free: 1.031 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.2757, allocations: 308 kB / 1.027 GB, free: 0.707 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.2757, allocations: 185.9 kB / 1.027 GB, free: 0.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.455e-05/0.2758, allocations: 188.2 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.2759, allocations: 105 kB / 1.028 GB, free: 204 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.276, allocations: 196.2 kB / 1.028 GB, free: 0 / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.2761, allocations: 101 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.099e-05/0.2761, allocations: 83.27 kB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2761, allocations: 0 / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002387/0.2763, allocations: 16 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.000246/0.2766, allocations: 206.4 kB / 1.028 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.459e-05/0.2767, allocations: 11.92 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2767, allocations: 0 / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.173e-06/0.2767, allocations: 0 / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.2771, allocations: 466.2 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002622/0.2774, allocations: 181.8 kB / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.2776, allocations: 0.6768 MB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.9e-05/0.2777, allocations: 7.859 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.775e-05/0.2777, allocations: 11.44 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of SimCode: time 4.51e-07/0.2777, allocations: 4 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of Templates: time 0.002979/0.2807, allocations: 0.6242 MB / 1.03 GB, free: 13.57 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches