Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.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.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001122/0.001122, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.213/2.213, allocations: 390.3 MB / 0.6653 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.56 kB / 0.8132 GB, free: 33.15 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2886, allocations: 140.4 MB / 0.9503 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.146/0.4347, allocations: 135.4 MB / 1.083 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001737/0.4349, allocations: 51.73 kB / 1.083 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.74e-05/0.4349, allocations: 0 / 1.083 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.435, allocations: 4 kB / 1.083 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.331e-05/0.4352, allocations: 15.91 kB / 1.083 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008892/0.4361, allocations: 238.9 kB / 1.083 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.876e-05/0.4362, allocations: 27.92 kB / 1.083 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.4362, allocations: 7.984 kB / 1.083 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.846e-05/0.4363, allocations: 19.75 kB / 1.083 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.292e-05/0.4364, allocations: 12 kB / 1.083 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.4364, allocations: 0 / 1.083 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.4369, allocations: 247.4 kB / 1.083 GB, free: 316 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.576e-05/0.437, allocations: 7.984 kB / 1.083 GB, free: 308 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.834e-05/0.437, allocations: 15.94 kB / 1.083 GB, free: 292 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003995/0.4374, allocations: 183.9 kB / 1.083 GB, free: 108 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4374, allocations: 0 / 1.083 GB, free: 108 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4374, allocations: 0 / 1.083 GB, free: 108 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.4374, allocations: 0 / 1.083 GB, free: 108 kB / 0.8575 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.489/0.9265, allocations: 358.4 kB / 1.084 GB, free: 142.2 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.9265, allocations: 8.844 kB / 1.084 GB, free: 142.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.9266, allocations: 3.266 kB / 1.084 GB, free: 142.2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.251e-05/0.9267, allocations: 170.1 kB / 1.084 GB, free: 142 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.664e-05/0.9268, allocations: 30.02 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.9268, allocations: 1.656 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.9269, allocations: 43.27 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.9269, allocations: 4.531 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.927, allocations: 0.9062 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.927, allocations: 2.406 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.153e-05/0.927, allocations: 17.3 kB / 1.084 GB, free: 141.9 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000724/0.9278, allocations: 0.6027 MB / 1.084 GB, free: 141.2 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.033e-05/0.9278, allocations: 17.7 kB / 1.085 GB, free: 141.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.9278, allocations: 6.891 kB / 1.085 GB, free: 141.2 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.928, allocations: 339.2 kB / 1.085 GB, free: 140.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.928, allocations: 35.44 kB / 1.085 GB, free: 140.8 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.928, allocations: 0.5 kB / 1.085 GB, free: 140.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001465/0.9282, allocations: 39.31 kB / 1.085 GB, free: 140.8 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.9282, allocations: 52.89 kB / 1.085 GB, free: 140.7 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.404e-05/0.9283, allocations: 105.3 kB / 1.085 GB, free: 140.6 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.9283, allocations: 26.23 kB / 1.085 GB, free: 140.6 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.234e-05/0.9283, allocations: 87.81 kB / 1.085 GB, free: 140.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.276e-06/0.9283, allocations: 9.719 kB / 1.085 GB, free: 140.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.9284, allocations: 21.36 kB / 1.085 GB, free: 140.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.679e-05/0.9284, allocations: 312.5 kB / 1.086 GB, free: 140.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.602e-05/0.9285, allocations: 3.531 kB / 1.086 GB, free: 140.2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.209e-05/0.9285, allocations: 18.67 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.474e-05/0.9285, allocations: 27.69 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.9285, allocations: 0.5 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.617e-05/0.9286, allocations: 50.44 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.9286, allocations: 8.578 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.9286, allocations: 0.5938 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.9287, allocations: 4.312 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.864e-05/0.9287, allocations: 5.984 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.9287, allocations: 1.109 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.881e-05/0.9288, allocations: 2.781 kB / 1.086 GB, free: 140.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.9288, allocations: 3 kB / 1.086 GB, free: 140.1 MB / 0.8575 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 5.278e-05/0.9288, allocations: 115.8 kB / 1.086 GB, free: 139.9 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.9289, allocations: 3.406 kB / 1.086 GB, free: 139.9 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.178e-05/0.929, allocations: 119.7 kB / 1.086 GB, free: 139.8 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.929, allocations: 178.7 kB / 1.086 GB, free: 139.6 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-05/0.929, allocations: 185.5 kB / 1.086 GB, free: 139.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.79e-05/0.9291, allocations: 186.9 kB / 1.086 GB, free: 139.3 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.9292, allocations: 405.4 kB / 1.087 GB, free: 138.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/0.9292, allocations: 106.5 kB / 1.087 GB, free: 138.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.324e-05/0.9292, allocations: 102.7 kB / 1.087 GB, free: 138.6 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.343e-05/0.9293, allocations: 185.5 kB / 1.087 GB, free: 138.4 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.9293, allocations: 182.2 kB / 1.087 GB, free: 138.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.519e-05/0.9293, allocations: 177.7 kB / 1.087 GB, free: 138.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.67e-05/0.9294, allocations: 186.6 kB / 1.088 GB, free: 137.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.804e-05/0.9294, allocations: 314.5 kB / 1.088 GB, free: 137.6 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.135e-05/0.9295, allocations: 185 kB / 1.088 GB, free: 137.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.9295, allocations: 179.6 kB / 1.088 GB, free: 137.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.9296, allocations: 109.1 kB / 1.088 GB, free: 137.1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.9297, allocations: 181.6 kB / 1.089 GB, free: 136.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.9297, allocations: 107.1 kB / 1.089 GB, free: 136.8 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.316e-05/0.9297, allocations: 84.33 kB / 1.089 GB, free: 136.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9297, allocations: 0 / 1.089 GB, free: 136.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003338/0.9301, allocations: 63.78 kB / 1.089 GB, free: 136.7 MB / 0.8575 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.0003019/0.9304, allocations: 251.1 kB / 1.089 GB, free: 136.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.787e-05/0.9305, allocations: 18.69 kB / 1.089 GB, free: 136.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9305, allocations: 3.938 kB / 1.089 GB, free: 136.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.9305, allocations: 0.7812 kB / 1.089 GB, free: 136.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.9308, allocations: 464.5 kB / 1.09 GB, free: 136.1 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002326/0.931, allocations: 210.8 kB / 1.09 GB, free: 135.8 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.723e-05/0.9311, allocations: 0.6781 MB / 1.09 GB, free: 135.1 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.924e-05/0.9312, allocations: 9.734 kB / 1.09 GB, free: 135.1 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.9312, allocations: 0.6875 kB / 1.09 GB, free: 135.1 MB / 0.8575 GB Notification: Performance of Templates: time 0.003151/0.9343, allocations: 1.234 MB / 1.092 GB, free: 135 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches