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.001417/0.001417, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001659/0.00166, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.423/2.423, allocations: 390.2 MB / 0.6646 GB, free: 408 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001442, allocations: 59.91 kB / 0.8125 GB, free: 14.48 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.755/0.7564, allocations: 140.4 MB / 0.9496 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1609/0.9174, allocations: 135.4 MB / 1.082 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001759/0.9176, allocations: 59.86 kB / 1.082 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.9176, allocations: 0 / 1.082 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.725e-05/0.9177, allocations: 3.938 kB / 1.082 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.608e-05/0.9179, allocations: 15.91 kB / 1.082 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.9189, allocations: 242.4 kB / 1.082 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.859e-05/0.919, allocations: 43.83 kB / 1.082 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 2.95e-05/0.919, allocations: 0 / 1.082 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.183e-05/0.919, allocations: 15.94 kB / 1.082 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.527e-05/0.9191, allocations: 15.97 kB / 1.082 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.9191, allocations: 0 / 1.082 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005505/0.9197, allocations: 239.4 kB / 1.082 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.374e-05/0.9197, allocations: 11.98 kB / 1.082 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.636e-05/0.9198, allocations: 19.86 kB / 1.082 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000411/0.9202, allocations: 189.6 kB / 1.083 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.9202, allocations: 4 kB / 1.083 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.233e-06/0.9202, allocations: 0 / 1.083 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.9202, allocations: 0 / 1.083 GB, free: 9.113 MB / 0.8419 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.0004172/0.9207, allocations: 359.4 kB / 1.083 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.9207, allocations: 8.031 kB / 1.083 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.9207, allocations: 4.938 kB / 1.083 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.9209, allocations: 172.4 kB / 1.083 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.452e-05/0.9209, allocations: 30.27 kB / 1.083 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.719e-06/0.9209, allocations: 3.938 kB / 1.083 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.9211, allocations: 45.69 kB / 1.083 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.9211, allocations: 3.938 kB / 1.083 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.9211, allocations: 0 / 1.083 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.9212, allocations: 0 / 1.083 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.45e-05/0.9212, allocations: 19.98 kB / 1.083 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000826/0.922, allocations: 0.595 MB / 1.084 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 3.903e-05/0.9221, allocations: 14.58 kB / 1.084 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.9221, allocations: 8.922 kB / 1.084 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002916/0.9224, allocations: 336.4 kB / 1.084 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.9224, allocations: 34.5 kB / 1.084 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.9224, allocations: 4 kB / 1.084 GB, free: 7.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001579/0.9226, allocations: 41.59 kB / 1.084 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.9227, allocations: 55.34 kB / 1.084 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.754e-05/0.9228, allocations: 101.9 kB / 1.084 GB, free: 6.957 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.9228, allocations: 25.7 kB / 1.084 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/0.9229, allocations: 88.03 kB / 1.084 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.112e-05/0.9229, allocations: 7.938 kB / 1.085 GB, free: 6.828 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.466e-05/0.9229, allocations: 13.72 kB / 1.085 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.9231, allocations: 318.9 kB / 1.085 GB, free: 6.488 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.861e-05/0.9231, allocations: 8 kB / 1.085 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.47e-05/0.9231, allocations: 21.64 kB / 1.085 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.024e-05/0.9232, allocations: 21.72 kB / 1.085 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.9232, allocations: 0 / 1.085 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.488e-05/0.9233, allocations: 49.66 kB / 1.085 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.9233, allocations: 4 kB / 1.085 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.9233, allocations: 0 / 1.085 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.9233, allocations: 4 kB / 1.085 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.582e-05/0.9234, allocations: 4 kB / 1.085 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.9234, allocations: 0 / 1.085 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.364e-05/0.9234, allocations: 4 kB / 1.085 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.9234, allocations: 11.92 kB / 1.085 GB, free: 6.344 MB / 0.8419 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 0.0001051/0.9236, allocations: 109.8 kB / 1.085 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-05/0.9236, allocations: 11.94 kB / 1.085 GB, free: 6.215 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.9238, allocations: 116.9 kB / 1.085 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.123e-05/0.9239, allocations: 184.2 kB / 1.085 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.4e-05/0.924, allocations: 180.2 kB / 1.086 GB, free: 5.715 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.188e-05/0.9241, allocations: 176.3 kB / 1.086 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003636/0.9244, allocations: 413.2 kB / 1.086 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.417e-05/0.9245, allocations: 104.9 kB / 1.086 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.152e-05/0.9246, allocations: 101 kB / 1.086 GB, free: 4.859 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.216e-05/0.9247, allocations: 184.5 kB / 1.086 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.152e-05/0.9248, allocations: 180.2 kB / 1.087 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-05/0.9249, allocations: 180.2 kB / 1.087 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001074/0.925, allocations: 192.2 kB / 1.087 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001946/0.9252, allocations: 311.7 kB / 1.087 GB, free: 3.781 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.9253, allocations: 182.1 kB / 1.087 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.9254, allocations: 180.5 kB / 1.088 GB, free: 3.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.9256, allocations: 120.9 kB / 1.088 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.065e-05/0.9257, allocations: 180.2 kB / 1.088 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.941e-05/0.9258, allocations: 108.9 kB / 1.088 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.769e-05/0.9259, allocations: 91.22 kB / 1.088 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9259, allocations: 0 / 1.088 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003134/0.9262, allocations: 55.92 kB / 1.088 GB, free: 2.828 MB / 0.8419 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.0003622/0.9265, allocations: 258.4 kB / 1.088 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 7.497e-05/0.9266, allocations: 4 kB / 1.088 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.9266, allocations: 0 / 1.088 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.873e-06/0.9266, allocations: 0 / 1.088 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.9271, allocations: 467.8 kB / 1.089 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003173/0.9274, allocations: 181.8 kB / 1.089 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.9278, allocations: 0.6768 MB / 1.09 GB, free: 1.195 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.515e-05/0.9278, allocations: 8 kB / 1.09 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.9278, allocations: 11.44 kB / 1.09 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.9279, allocations: 0 / 1.09 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of Templates: time 0.004138/0.932, allocations: 1.283 MB / 1.091 GB, free: 15.89 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches