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.001306/0.001306, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001403/0.001404, allocations: 192.5 kB / 16.25 MB, free: 6.645 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.361/1.361, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.468/2.468, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6965/0.6978, allocations: 140.4 MB / 0.9491 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.2045/0.9024, allocations: 134.2 MB / 1.08 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.04542/0.9478, allocations: 22.61 MB / 1.102 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003101/0.9482, allocations: 0 / 1.102 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004414/0.9487, allocations: 47.72 kB / 1.102 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000513/0.9493, allocations: 79.5 kB / 1.102 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0238/0.9731, allocations: 5.913 MB / 1.108 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0004141/0.9735, allocations: 251.9 kB / 1.108 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 6.419e-05/0.9736, allocations: 13.55 kB / 1.108 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000337/0.9739, allocations: 135.5 kB / 1.109 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.9741, allocations: 99.59 kB / 1.109 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.9741, allocations: 8 kB / 1.109 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01943/0.9935, allocations: 10.81 MB / 1.119 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.9937, allocations: 35.89 kB / 1.119 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.9939, allocations: 79.66 kB / 1.119 GB, free: 3.238 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01839/1.012, allocations: 6.199 MB / 1.125 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/1.012, allocations: 0 / 1.125 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.144e-06/1.012, allocations: 0 / 1.125 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.917e-06/1.012, allocations: 0 / 1.125 GB, free: 13.03 MB / 0.8887 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.003601/1.016, allocations: 1.193 MB / 1.126 GB, free: 11.79 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.016, allocations: 12.03 kB / 1.127 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/1.017, allocations: 80.75 kB / 1.127 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/1.017, allocations: 224 kB / 1.127 GB, free: 11.44 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/1.018, allocations: 16.12 kB / 1.127 GB, free: 11.42 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/1.018, allocations: 16 kB / 1.127 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/1.019, allocations: 452.5 kB / 1.127 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/1.019, allocations: 3.938 kB / 1.127 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/1.019, allocations: 12 kB / 1.127 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/1.019, allocations: 4 kB / 1.127 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/1.02, allocations: 0.5931 MB / 1.128 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/1.021, allocations: 0.8784 MB / 1.129 GB, free: 9.367 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008246/1.022, allocations: 247.4 kB / 1.129 GB, free: 9.117 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/1.022, allocations: 72.83 kB / 1.129 GB, free: 9.043 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08417/1.106, allocations: 35.05 MB / 1.163 GB, free: 2.906 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/1.106, allocations: 42.56 kB / 1.163 GB, free: 2.855 MB / 0.92 GB Notification: Performance of pre-optimization done (n=25): time 2.284e-06/1.106, allocations: 0 / 1.163 GB, free: 2.855 MB / 0.92 GB Notification: Performance of matching and sorting (n=25): time 0.001858/1.108, allocations: 419.7 kB / 1.164 GB, free: 2.441 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/1.108, allocations: 59.39 kB / 1.164 GB, free: 2.371 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/1.108, allocations: 143.9 kB / 1.164 GB, free: 2.223 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.038e-05/1.109, allocations: 29.7 kB / 1.164 GB, free: 2.188 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/1.109, allocations: 104.4 kB / 1.164 GB, free: 2.078 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/1.109, allocations: 82.77 kB / 1.164 GB, free: 1.996 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/1.109, allocations: 85.56 kB / 1.164 GB, free: 1.906 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001109/1.109, allocations: 326.8 kB / 1.164 GB, free: 1.578 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/1.109, allocations: 79.95 kB / 1.165 GB, free: 1.5 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/1.109, allocations: 133.1 kB / 1.165 GB, free: 1.352 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004226/1.11, allocations: 219 kB / 1.165 GB, free: 1.121 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.11, allocations: 0 / 1.165 GB, free: 1.121 MB / 0.92 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007216/1.111, allocations: 295 kB / 1.165 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/1.111, allocations: 8 kB / 1.165 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/1.111, allocations: 4.156 kB / 1.165 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/1.111, allocations: 4 kB / 1.165 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/1.111, allocations: 83.88 kB / 1.165 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/1.111, allocations: 8 kB / 1.165 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/1.111, allocations: 23.69 kB / 1.165 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/1.111, allocations: 27.97 kB / 1.165 GB, free: 0.6719 MB / 0.92 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.0001546/1.111, allocations: 129.8 kB / 1.165 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/1.112, allocations: 15.81 kB / 1.165 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002376/1.114, allocations: 2.347 MB / 1.168 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/1.114, allocations: 15.97 kB / 1.168 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/1.114, allocations: 0 / 1.168 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/1.114, allocations: 3.938 kB / 1.168 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003149/1.117, allocations: 3.423 MB / 1.171 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/1.117, allocations: 4 kB / 1.171 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/1.117, allocations: 55.88 kB / 1.171 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/1.117, allocations: 7.938 kB / 1.171 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/1.117, allocations: 7.938 kB / 1.171 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/1.117, allocations: 8 kB / 1.171 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/1.117, allocations: 0 / 1.171 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007747/1.118, allocations: 0.5457 MB / 1.172 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/1.118, allocations: 136.5 kB / 1.172 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/1.118, allocations: 11.94 kB / 1.172 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/1.119, allocations: 15.98 kB / 1.172 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/1.119, allocations: 15.97 kB / 1.172 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/1.119, allocations: 16 kB / 1.172 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.097e-05/1.119, allocations: 113.4 kB / 1.172 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.119, allocations: 0 / 1.172 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.004103/1.123, allocations: 1.624 MB / 1.174 GB, free: 8.023 MB / 0.9356 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.007884/1.131, allocations: 1.899 MB / 1.175 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007349/1.132, allocations: 347.5 kB / 1.176 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.132, allocations: 0 / 1.176 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003114/1.132, allocations: 233.2 kB / 1.176 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/1.132, allocations: 68.25 kB / 1.176 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/1.134, allocations: 0.7594 MB / 1.177 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/1.134, allocations: 0.7661 MB / 1.178 GB, free: 3.902 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0005609/1.134, allocations: 405 kB / 1.178 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/1.135, allocations: 51.41 kB / 1.178 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of SimCode: time 4.71e-07/1.135, allocations: 0 / 1.178 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of Templates: time 0.08458/1.219, allocations: 57.28 MB / 1.234 GB, free: 10.14 MB / 0.9981 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