Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamProperties.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.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamProperties") translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008009/0.008009, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001459/0.001459, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.18 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.286/2.286, allocations: 390.2 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.89 kB / 0.9508 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.01/1.011, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1954/1.207, allocations: 136.1 MB / 1.221 GB, free: 236 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.03205/1.239, allocations: 22.35 MB / 1.243 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/1.239, allocations: 0 / 1.243 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003509/1.239, allocations: 47.45 kB / 1.243 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003436/1.24, allocations: 98.61 kB / 1.243 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.02266/1.263, allocations: 6.67 MB / 1.249 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004605/1.263, allocations: 251.9 kB / 1.25 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.033e-05/1.263, allocations: 9.547 kB / 1.25 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003604/1.263, allocations: 143.4 kB / 1.25 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/1.264, allocations: 87.61 kB / 1.25 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/1.264, allocations: 12 kB / 1.25 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02427/1.288, allocations: 10.96 MB / 1.261 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001981/1.288, allocations: 43.89 kB / 1.261 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002194/1.288, allocations: 79.66 kB / 1.261 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.02166/1.31, allocations: 6.16 MB / 1.267 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.31, allocations: 0 / 1.267 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.385e-06/1.31, allocations: 4 kB / 1.267 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.687e-06/1.31, allocations: 0 / 1.267 GB, free: 6.711 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.004292/1.314, allocations: 1.178 MB / 1.268 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/1.315, allocations: 8.031 kB / 1.268 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/1.316, allocations: 92.66 kB / 1.268 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/1.316, allocations: 224.1 kB / 1.268 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/1.316, allocations: 16.12 kB / 1.268 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.897e-05/1.316, allocations: 12 kB / 1.268 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/1.317, allocations: 456.5 kB / 1.269 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/1.317, allocations: 0 / 1.269 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/1.317, allocations: 8 kB / 1.269 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/1.317, allocations: 8 kB / 1.269 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/1.319, allocations: 0.6047 MB / 1.269 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/1.32, allocations: 0.8745 MB / 1.27 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000804/1.32, allocations: 262 kB / 1.27 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/1.321, allocations: 72.83 kB / 1.27 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09186/1.412, allocations: 35.42 MB / 1.305 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/1.413, allocations: 34.56 kB / 1.305 GB, free: 12.15 MB / 1.045 GB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/1.413, allocations: 0 / 1.305 GB, free: 12.15 MB / 1.045 GB Notification: Performance of matching and sorting (n=25): time 0.001804/1.414, allocations: 426.1 kB / 1.305 GB, free: 11.73 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/1.414, allocations: 55.41 kB / 1.305 GB, free: 11.66 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/1.415, allocations: 141.8 kB / 1.306 GB, free: 11.52 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/1.415, allocations: 33.7 kB / 1.306 GB, free: 11.48 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.535e-05/1.415, allocations: 108.4 kB / 1.306 GB, free: 11.36 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/1.415, allocations: 86.73 kB / 1.306 GB, free: 11.28 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/1.415, allocations: 81.66 kB / 1.306 GB, free: 11.19 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001421/1.415, allocations: 326.8 kB / 1.306 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/1.415, allocations: 79.95 kB / 1.306 GB, free: 10.79 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/1.416, allocations: 126.6 kB / 1.306 GB, free: 10.64 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/1.416, allocations: 223.4 kB / 1.307 GB, free: 10.41 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.416, allocations: 3.938 kB / 1.307 GB, free: 10.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007099/1.417, allocations: 298.9 kB / 1.307 GB, free: 10.11 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/1.417, allocations: 4 kB / 1.307 GB, free: 10.11 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/1.417, allocations: 4 kB / 1.307 GB, free: 10.1 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/1.417, allocations: 0 / 1.307 GB, free: 10.1 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/1.417, allocations: 83.94 kB / 1.307 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/1.417, allocations: 8.094 kB / 1.307 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/1.417, allocations: 23.78 kB / 1.307 GB, free: 9.988 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/1.417, allocations: 19.98 kB / 1.307 GB, free: 9.969 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.0001452/1.418, allocations: 129.7 kB / 1.307 GB, free: 9.832 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/1.418, allocations: 23.8 kB / 1.307 GB, free: 9.809 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002396/1.42, allocations: 2.33 MB / 1.309 GB, free: 7.465 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/1.42, allocations: 15.97 kB / 1.309 GB, free: 7.449 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.42, allocations: 0 / 1.309 GB, free: 7.449 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.471e-05/1.42, allocations: 7.938 kB / 1.309 GB, free: 7.441 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/1.423, allocations: 3.435 MB / 1.313 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/1.423, allocations: 0 / 1.313 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/1.424, allocations: 51.89 kB / 1.313 GB, free: 3.855 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/1.424, allocations: 4 kB / 1.313 GB, free: 3.852 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/1.424, allocations: 15.92 kB / 1.313 GB, free: 3.836 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/1.424, allocations: 0 / 1.313 GB, free: 3.836 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.424, allocations: 0 / 1.313 GB, free: 3.836 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008255/1.425, allocations: 0.5388 MB / 1.313 GB, free: 3.273 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/1.425, allocations: 148.5 kB / 1.314 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/1.425, allocations: 3.938 kB / 1.314 GB, free: 3.105 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/1.425, allocations: 15.98 kB / 1.314 GB, free: 3.09 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/1.425, allocations: 19.92 kB / 1.314 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/1.425, allocations: 15.98 kB / 1.314 GB, free: 3.055 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.156e-05/1.425, allocations: 109.7 kB / 1.314 GB, free: 2.949 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/1.425, allocations: 0 / 1.314 GB, free: 2.949 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.005053/1.43, allocations: 1.628 MB / 1.315 GB, free: 1.32 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.009441/1.44, allocations: 1.888 MB / 1.317 GB, free: 15.42 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009209/1.441, allocations: 321 kB / 1.317 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/1.441, allocations: 0 / 1.317 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003549/1.441, allocations: 248.5 kB / 1.318 GB, free: 14.87 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/1.442, allocations: 79.12 kB / 1.318 GB, free: 14.79 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/1.443, allocations: 0.6304 MB / 1.318 GB, free: 14.13 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/1.443, allocations: 0.7699 MB / 1.319 GB, free: 13.34 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000556/1.444, allocations: 405 kB / 1.32 GB, free: 12.94 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/1.444, allocations: 51.41 kB / 1.32 GB, free: 12.89 MB / 1.061 GB Notification: Performance of SimCode: time 8.62e-07/1.444, allocations: 0 / 1.32 GB, free: 12.89 MB / 1.061 GB Notification: Performance of Templates: time 0.07495/1.519, allocations: 57.06 MB / 1.375 GB, free: 3.797 MB / 1.107 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_9_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches