Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.001652/0.001652, allocations: 117.1 kB / 16.37 MB, free: 6.012 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.002496/0.002496, allocations: 190.9 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.15 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.373/2.373, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 60.59 kB / 0.8707 GB, free: 1.492 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2826, allocations: 151.6 MB / 1.019 GB, free: 9.902 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.6109/0.8935, allocations: 135.4 MB / 1.151 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.000152/0.8937, allocations: 52.62 kB / 1.151 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.164e-05/0.8937, allocations: 0 / 1.151 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 9.257e-05/0.8938, allocations: 5.031 kB / 1.151 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 7.265e-05/0.8939, allocations: 12.67 kB / 1.151 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007882/0.8947, allocations: 238.8 kB / 1.151 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 7.837e-05/0.8948, allocations: 31.81 kB / 1.151 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 4.034e-05/0.8949, allocations: 1.344 kB / 1.151 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 3.707e-05/0.8949, allocations: 20 kB / 1.151 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 7.268e-05/0.895, allocations: 17 kB / 1.151 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.895, allocations: 1.188 kB / 1.151 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004594/0.8955, allocations: 246.5 kB / 1.152 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 4.802e-05/0.8955, allocations: 10.47 kB / 1.152 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 2.77e-05/0.8956, allocations: 7.969 kB / 1.152 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.8959, allocations: 184.2 kB / 1.152 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8959, allocations: 0 / 1.152 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8959, allocations: 1.094 kB / 1.152 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.8959, allocations: 0 / 1.152 GB, free: 14.77 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003893/0.8963, allocations: 355.1 kB / 1.152 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.8964, allocations: 9.141 kB / 1.152 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.8964, allocations: 3.219 kB / 1.152 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.8965, allocations: 166.4 kB / 1.152 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-05/0.8966, allocations: 37.48 kB / 1.152 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-06/0.8966, allocations: 5.25 kB / 1.152 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.8967, allocations: 42.36 kB / 1.152 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.8968, allocations: 0 / 1.152 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.8968, allocations: 0 / 1.152 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.8968, allocations: 4.25 kB / 1.152 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.172e-05/0.8968, allocations: 11.19 kB / 1.152 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007084/0.8976, allocations: 0.6126 MB / 1.153 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 3.419e-05/0.8976, allocations: 20.98 kB / 1.153 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.8976, allocations: 6.141 kB / 1.153 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001859/0.8978, allocations: 336.3 kB / 1.153 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.8979, allocations: 35.53 kB / 1.153 GB, free: 13 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=1): time 2.435e-06/0.8979, allocations: 7.938 kB / 1.153 GB, free: 13 MB / 0.8731 GB Notification: Performance of matching and sorting (n=1): time 0.0001279/0.898, allocations: 39.27 kB / 1.153 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.898, allocations: 56.5 kB / 1.153 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.163e-05/0.8981, allocations: 98.2 kB / 1.154 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.8981, allocations: 30.89 kB / 1.154 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.8982, allocations: 88.22 kB / 1.154 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.222e-06/0.8982, allocations: 5.031 kB / 1.154 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.8982, allocations: 13.06 kB / 1.154 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.614e-05/0.8983, allocations: 326.5 kB / 1.154 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.385e-05/0.8984, allocations: 2.281 kB / 1.154 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.17e-05/0.8984, allocations: 16.12 kB / 1.154 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.196e-05/0.8984, allocations: 24.47 kB / 1.154 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.8984, allocations: 0 / 1.154 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.23e-05/0.8985, allocations: 44.59 kB / 1.154 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.8985, allocations: 10.73 kB / 1.154 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.8985, allocations: 0 / 1.154 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.8986, allocations: 1.062 kB / 1.154 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.273e-05/0.8986, allocations: 7.578 kB / 1.154 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.8986, allocations: 5.531 kB / 1.154 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.057e-05/0.8986, allocations: 5.062 kB / 1.154 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.8987, allocations: 1.656 kB / 1.154 GB, free: 12.24 MB / 0.8731 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 6.653e-05/0.8987, allocations: 115.7 kB / 1.154 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.8988, allocations: 1.156 kB / 1.154 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.8989, allocations: 123.8 kB / 1.154 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.913e-05/0.8989, allocations: 184.3 kB / 1.155 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001426/0.8991, allocations: 177.5 kB / 1.155 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-05/0.8991, allocations: 176.3 kB / 1.155 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.8994, allocations: 415.6 kB / 1.155 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-05/0.8994, allocations: 109.3 kB / 1.155 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-05/0.8995, allocations: 104.9 kB / 1.155 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.8996, allocations: 181.5 kB / 1.156 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.234e-05/0.8997, allocations: 177.7 kB / 1.156 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.297e-05/0.8997, allocations: 182.5 kB / 1.156 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001485/0.8999, allocations: 180.8 kB / 1.156 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.9001, allocations: 309.6 kB / 1.156 GB, free: 9.723 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.73e-05/0.9001, allocations: 185 kB / 1.157 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.9002, allocations: 182.4 kB / 1.157 GB, free: 9.336 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.9004, allocations: 110.3 kB / 1.157 GB, free: 9.227 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.9004, allocations: 181 kB / 1.157 GB, free: 9.043 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.9006, allocations: 107.1 kB / 1.157 GB, free: 8.938 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.391e-05/0.9006, allocations: 86.34 kB / 1.157 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9006, allocations: 0 / 1.157 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003523/0.901, allocations: 66.7 kB / 1.157 GB, free: 8.832 MB / 0.8731 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.000342/0.9013, allocations: 251.9 kB / 1.158 GB, free: 8.648 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.115e-05/0.9014, allocations: 15.12 kB / 1.158 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9014, allocations: 0 / 1.158 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.382e-06/0.9014, allocations: 1.125 kB / 1.158 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.9018, allocations: 459.6 kB / 1.158 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002287/0.902, allocations: 178.4 kB / 1.158 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.9022, allocations: 0.6848 MB / 1.159 GB, free: 7.309 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.023e-05/0.9023, allocations: 17.16 kB / 1.159 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.603e-05/0.9023, allocations: 9.641 kB / 1.159 GB, free: 7.293 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9023, allocations: 0 / 1.159 GB, free: 7.293 MB / 0.8731 GB Notification: Performance of Templates: time 0.003554/0.9059, allocations: 1.279 MB / 1.16 GB, free: 7.109 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches