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.001446/0.001446, allocations: 108 kB / 15.6 MB, free: 132 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.00165/0.00165, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.468/1.468, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.416/2.416, allocations: 390.2 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001458, allocations: 67.91 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7374/0.7388, allocations: 140.4 MB / 0.9496 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1764/0.9153, allocations: 136.1 MB / 1.083 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02978/0.9451, allocations: 22.33 MB / 1.104 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002947/0.9455, allocations: 0 / 1.104 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004318/0.9459, allocations: 59.66 kB / 1.104 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.9466, allocations: 91.38 kB / 1.104 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.02467/0.9712, allocations: 6.677 MB / 1.111 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.9717, allocations: 251.9 kB / 1.111 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 6.031e-05/0.9718, allocations: 9.562 kB / 1.111 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.9722, allocations: 139.4 kB / 1.111 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.9724, allocations: 91.61 kB / 1.111 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.04e-05/0.9724, allocations: 8 kB / 1.111 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02286/0.9953, allocations: 10.69 MB / 1.122 GB, free: 0.7969 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.9955, allocations: 35.91 kB / 1.122 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002215/0.9957, allocations: 79.64 kB / 1.122 GB, free: 0.6836 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01885/1.015, allocations: 6.168 MB / 1.128 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/1.015, allocations: 0 / 1.128 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.694e-06/1.015, allocations: 3.938 kB / 1.128 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.044e-05/1.015, allocations: 0 / 1.128 GB, free: 10.5 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.00376/1.018, allocations: 1.185 MB / 1.129 GB, free: 9.266 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.018, allocations: 15.97 kB / 1.129 GB, free: 9.25 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/1.02, allocations: 84.75 kB / 1.129 GB, free: 9.168 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/1.02, allocations: 228 kB / 1.13 GB, free: 8.906 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/1.02, allocations: 12.12 kB / 1.13 GB, free: 8.895 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/1.02, allocations: 16 kB / 1.13 GB, free: 8.879 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/1.021, allocations: 452.5 kB / 1.13 GB, free: 8.418 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/1.021, allocations: 4 kB / 1.13 GB, free: 8.414 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/1.021, allocations: 8 kB / 1.13 GB, free: 8.406 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/1.021, allocations: 4 kB / 1.13 GB, free: 8.402 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/1.022, allocations: 0.597 MB / 1.131 GB, free: 7.805 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/1.024, allocations: 0.8745 MB / 1.131 GB, free: 6.844 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/1.024, allocations: 255 kB / 1.132 GB, free: 6.586 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/1.024, allocations: 72.84 kB / 1.132 GB, free: 6.512 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09243/1.117, allocations: 35.05 MB / 1.166 GB, free: 384 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/1.117, allocations: 38.56 kB / 1.166 GB, free: 336 kB / 0.92 GB Notification: Performance of pre-optimization done (n=25): time 2.003e-06/1.117, allocations: 0 / 1.166 GB, free: 336 kB / 0.92 GB Notification: Performance of matching and sorting (n=25): time 0.001733/1.119, allocations: 431.7 kB / 1.166 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/1.119, allocations: 55.41 kB / 1.166 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/1.119, allocations: 139.6 kB / 1.167 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.931e-05/1.119, allocations: 33.7 kB / 1.167 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.755e-05/1.119, allocations: 108.4 kB / 1.167 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.135e-05/1.119, allocations: 82.73 kB / 1.167 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/1.119, allocations: 81.58 kB / 1.167 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001913/1.119, allocations: 330.8 kB / 1.167 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/1.12, allocations: 87.94 kB / 1.167 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/1.12, allocations: 121.6 kB / 1.167 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/1.12, allocations: 219 kB / 1.168 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/1.12, allocations: 0 / 1.168 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007085/1.121, allocations: 295 kB / 1.168 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/1.121, allocations: 7.938 kB / 1.168 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/1.121, allocations: 4 kB / 1.168 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/1.121, allocations: 0 / 1.168 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/1.121, allocations: 84.09 kB / 1.168 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/1.121, allocations: 3.938 kB / 1.168 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/1.122, allocations: 27.69 kB / 1.168 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/1.122, allocations: 23.97 kB / 1.168 GB, free: 14.14 MB / 0.9356 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.0001411/1.122, allocations: 129.8 kB / 1.168 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/1.122, allocations: 15.81 kB / 1.168 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/1.124, allocations: 2.342 MB / 1.17 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/1.124, allocations: 15.97 kB / 1.17 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.124, allocations: 0 / 1.17 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/1.124, allocations: 7.938 kB / 1.17 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003298/1.128, allocations: 3.423 MB / 1.174 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/1.128, allocations: 0 / 1.174 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/1.128, allocations: 63.88 kB / 1.174 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/1.128, allocations: 0 / 1.174 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/1.128, allocations: 11.94 kB / 1.174 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/1.128, allocations: 0 / 1.174 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.128, allocations: 3.938 kB / 1.174 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007658/1.129, allocations: 0.5464 MB / 1.174 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/1.129, allocations: 140.5 kB / 1.175 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/1.129, allocations: 7.938 kB / 1.175 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/1.129, allocations: 15.98 kB / 1.175 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/1.129, allocations: 19.97 kB / 1.175 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/1.129, allocations: 8 kB / 1.175 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.131e-05/1.129, allocations: 109.4 kB / 1.175 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.129, allocations: 0 / 1.175 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.006264/1.136, allocations: 1.628 MB / 1.176 GB, free: 5.508 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.007173/1.143, allocations: 1.899 MB / 1.178 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007778/1.144, allocations: 347.6 kB / 1.178 GB, free: 3.254 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.144, allocations: 0 / 1.178 GB, free: 3.254 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002994/1.144, allocations: 241.2 kB / 1.179 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/1.144, allocations: 60.27 kB / 1.179 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/1.146, allocations: 0.6387 MB / 1.179 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/1.146, allocations: 0.7661 MB / 1.18 GB, free: 1.504 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0005363/1.146, allocations: 409 kB / 1.181 GB, free: 1.105 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/1.147, allocations: 39.42 kB / 1.181 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/1.147, allocations: 0 / 1.181 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of Templates: time 0.07301/1.22, allocations: 57.24 MB / 1.236 GB, free: 7.793 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