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.001686/0.001686, allocations: 103.7 kB / 15.98 MB, free: 6.348 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.002017/0.002017, allocations: 196.6 kB / 16.91 MB, free: 6.188 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.414/1.414, allocations: 222.9 MB / 240.6 MB, free: 15.39 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.214/2.214, allocations: 390.2 MB / 0.665 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 62.69 kB / 0.8127 GB, free: 33.25 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2512, allocations: 140.4 MB / 0.9498 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1409/0.3922, allocations: 134.2 MB / 1.081 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.5533/0.9456, allocations: 22.6 MB / 1.103 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.9458, allocations: 1.719 kB / 1.103 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.9461, allocations: 41.67 kB / 1.103 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.9464, allocations: 84.33 kB / 1.103 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.02156/0.968, allocations: 5.915 MB / 1.109 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004089/0.9684, allocations: 250.4 kB / 1.109 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.52e-05/0.9685, allocations: 14.33 kB / 1.109 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.9688, allocations: 140.3 kB / 1.109 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.9689, allocations: 91.91 kB / 1.109 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.969, allocations: 10.62 kB / 1.109 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02344/0.9924, allocations: 10.81 MB / 1.12 GB, free: 6.512 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.9926, allocations: 41.44 kB / 1.12 GB, free: 6.512 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001845/0.9928, allocations: 80.86 kB / 1.12 GB, free: 6.512 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01203/1.005, allocations: 4.139 MB / 1.124 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/1.005, allocations: 0 / 1.124 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.204e-06/1.005, allocations: 0.875 kB / 1.124 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.454e-06/1.005, allocations: 1.031 kB / 1.124 GB, free: 6.344 MB / 0.8575 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.005517/1.01, allocations: 1.189 MB / 1.125 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/1.01, allocations: 10.22 kB / 1.125 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/1.012, allocations: 86.17 kB / 1.125 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/1.012, allocations: 227.9 kB / 1.125 GB, free: 21.38 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/1.012, allocations: 9.688 kB / 1.125 GB, free: 21.38 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/1.012, allocations: 22.97 kB / 1.125 GB, free: 21.38 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/1.013, allocations: 452.1 kB / 1.126 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.013, allocations: 1.5 kB / 1.126 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/1.013, allocations: 9.406 kB / 1.126 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/1.013, allocations: 4.75 kB / 1.126 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/1.014, allocations: 0.5919 MB / 1.127 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009885/1.015, allocations: 0.8784 MB / 1.127 GB, free: 20.66 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008305/1.016, allocations: 251.7 kB / 1.128 GB, free: 20.64 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/1.016, allocations: 76.45 kB / 1.128 GB, free: 20.63 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0818/1.098, allocations: 35.04 MB / 1.162 GB, free: 16.83 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/1.098, allocations: 45.03 kB / 1.162 GB, free: 16.79 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=25): time 4.128e-06/1.098, allocations: 2.297 kB / 1.162 GB, free: 16.79 MB / 0.8887 GB Notification: Performance of matching and sorting (n=25): time 0.002122/1.1, allocations: 414.4 kB / 1.162 GB, free: 16.66 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/1.1, allocations: 53.5 kB / 1.162 GB, free: 16.6 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/1.101, allocations: 145.9 kB / 1.163 GB, free: 16.48 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/1.101, allocations: 32.05 kB / 1.163 GB, free: 16.45 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/1.101, allocations: 111.3 kB / 1.163 GB, free: 16.36 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 7.338e-05/1.101, allocations: 86.5 kB / 1.163 GB, free: 16.29 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/1.101, allocations: 87.78 kB / 1.163 GB, free: 16.25 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001239/1.101, allocations: 327.5 kB / 1.163 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/1.101, allocations: 83.34 kB / 1.163 GB, free: 15.92 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/1.102, allocations: 127.5 kB / 1.163 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/1.102, allocations: 225.4 kB / 1.164 GB, free: 15.79 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.102, allocations: 0 / 1.164 GB, free: 15.79 MB / 0.8887 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006678/1.103, allocations: 289.2 kB / 1.164 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/1.103, allocations: 10.53 kB / 1.164 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/1.103, allocations: 2.094 kB / 1.164 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/1.103, allocations: 6.25 kB / 1.164 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/1.103, allocations: 80.44 kB / 1.164 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/1.103, allocations: 2.625 kB / 1.164 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/1.103, allocations: 22.66 kB / 1.164 GB, free: 15.68 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/1.103, allocations: 25.52 kB / 1.164 GB, free: 15.68 MB / 0.8887 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.0001451/1.103, allocations: 135 kB / 1.164 GB, free: 15.56 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/1.104, allocations: 20.31 kB / 1.164 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/1.106, allocations: 2.343 MB / 1.166 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/1.106, allocations: 12.64 kB / 1.166 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/1.106, allocations: 3.938 kB / 1.166 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/1.106, allocations: 2.125 kB / 1.166 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002955/1.109, allocations: 3.424 MB / 1.17 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/1.109, allocations: 0 / 1.17 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/1.109, allocations: 61.22 kB / 1.17 GB, free: 14.08 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/1.109, allocations: 0 / 1.17 GB, free: 14.08 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/1.109, allocations: 11.19 kB / 1.17 GB, free: 14.07 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/1.109, allocations: 3.938 kB / 1.17 GB, free: 14.07 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.109, allocations: 2.281 kB / 1.17 GB, free: 14.07 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007494/1.11, allocations: 0.5521 MB / 1.17 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/1.11, allocations: 137.7 kB / 1.171 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/1.11, allocations: 6.281 kB / 1.171 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/1.11, allocations: 20.3 kB / 1.171 GB, free: 13.55 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/1.11, allocations: 22.09 kB / 1.171 GB, free: 13.54 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/1.11, allocations: 13.45 kB / 1.171 GB, free: 13.54 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 7.745e-05/1.111, allocations: 106.6 kB / 1.171 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/1.111, allocations: 0 / 1.171 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.006145/1.117, allocations: 1.622 MB / 1.172 GB, free: 13.13 MB / 0.8887 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.01212/1.129, allocations: 1.895 MB / 1.174 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009312/1.13, allocations: 337.8 kB / 1.174 GB, free: 12.43 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/1.13, allocations: 2.719 kB / 1.174 GB, free: 12.43 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003501/1.13, allocations: 239.2 kB / 1.175 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006456/1.131, allocations: 80.59 kB / 1.175 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/1.132, allocations: 0.7858 MB / 1.176 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/1.132, allocations: 0.766 MB / 1.176 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/1.133, allocations: 51.78 kB / 1.176 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of SimCode: time 7.52e-07/1.133, allocations: 3.344 kB / 1.176 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of Templates: time 0.04888/1.181, allocations: 31.47 MB / 1.207 GB, free: 13.93 MB / 0.92 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches