Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.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_10_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_10_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.001651/0.001651, allocations: 108 kB / 15.61 MB, free: 152 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.001753/0.001753, allocations: 198 kB / 16.53 MB, free: 6.664 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.5/1.5, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.932/2.932, allocations: 437 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 67.89 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7496/0.7519, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1746/0.9266, allocations: 136.1 MB / 1.15 GB, free: 9.836 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03032/0.9569, allocations: 22.68 MB / 1.172 GB, free: 3.078 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.9572, allocations: 7.938 kB / 1.172 GB, free: 3.07 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.9575, allocations: 39.73 kB / 1.172 GB, free: 3.031 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000359/0.958, allocations: 99.3 kB / 1.172 GB, free: 2.934 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.02356/0.9816, allocations: 6.943 MB / 1.179 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006727/0.9823, allocations: 247.9 kB / 1.179 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.85e-05/0.9824, allocations: 9.562 kB / 1.179 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005559/0.983, allocations: 139.4 kB / 1.18 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000285/0.9833, allocations: 91.66 kB / 1.18 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.9833, allocations: 15.94 kB / 1.18 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02843/1.012, allocations: 11.33 MB / 1.191 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001486/1.012, allocations: 35.91 kB / 1.191 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001833/1.012, allocations: 83.64 kB / 1.191 GB, free: 48 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01807/1.03, allocations: 6.491 MB / 1.197 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.03, allocations: 0 / 1.197 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.904e-06/1.03, allocations: 4 kB / 1.197 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.754e-05/1.03, allocations: 0 / 1.197 GB, free: 9.539 MB / 0.9512 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.003984/1.034, allocations: 1.202 MB / 1.198 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/1.034, allocations: 12.03 kB / 1.198 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/1.036, allocations: 84.67 kB / 1.199 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/1.036, allocations: 224.1 kB / 1.199 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/1.036, allocations: 20.06 kB / 1.199 GB, free: 7.918 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/1.036, allocations: 12 kB / 1.199 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/1.037, allocations: 456.5 kB / 1.199 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/1.037, allocations: 0 / 1.199 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/1.037, allocations: 8 kB / 1.199 GB, free: 7.434 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/1.037, allocations: 4 kB / 1.199 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/1.039, allocations: 0.5969 MB / 1.2 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/1.04, allocations: 0.8822 MB / 1.201 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009005/1.041, allocations: 250.3 kB / 1.201 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/1.041, allocations: 76.83 kB / 1.201 GB, free: 5.531 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09519/1.136, allocations: 35.04 MB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/1.136, allocations: 42.56 kB / 1.235 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=25): time 4.177e-06/1.136, allocations: 0 / 1.235 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25): time 0.00194/1.138, allocations: 427.2 kB / 1.236 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/1.138, allocations: 51.41 kB / 1.236 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/1.139, allocations: 143.4 kB / 1.236 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/1.139, allocations: 29.7 kB / 1.236 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.078e-05/1.139, allocations: 104.5 kB / 1.236 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.885e-05/1.139, allocations: 86.75 kB / 1.236 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/1.139, allocations: 81.56 kB / 1.236 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001639/1.139, allocations: 334.8 kB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/1.139, allocations: 79.95 kB / 1.237 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/1.14, allocations: 129.6 kB / 1.237 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004941/1.14, allocations: 222.7 kB / 1.237 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.14, allocations: 0 / 1.237 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000857/1.141, allocations: 296.4 kB / 1.237 GB, free: 13.31 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/1.141, allocations: 12.14 kB / 1.237 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/1.141, allocations: 0 / 1.237 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/1.141, allocations: 4 kB / 1.237 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/1.141, allocations: 83.86 kB / 1.237 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/1.141, allocations: 4 kB / 1.237 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/1.142, allocations: 23.69 kB / 1.237 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/1.142, allocations: 27.98 kB / 1.237 GB, free: 13.16 MB / 0.9981 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.0001645/1.142, allocations: 121.8 kB / 1.237 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/1.142, allocations: 23.8 kB / 1.237 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002812/1.145, allocations: 2.347 MB / 1.24 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/1.145, allocations: 11.98 kB / 1.24 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.145, allocations: 3.984 kB / 1.24 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/1.145, allocations: 3.938 kB / 1.24 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003972/1.149, allocations: 3.423 MB / 1.243 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/1.149, allocations: 0 / 1.243 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/1.149, allocations: 59.89 kB / 1.243 GB, free: 7.039 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/1.149, allocations: 0 / 1.243 GB, free: 7.039 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/1.149, allocations: 15.92 kB / 1.243 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/1.149, allocations: 4 kB / 1.243 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/1.149, allocations: 4 kB / 1.243 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008623/1.15, allocations: 0.5379 MB / 1.244 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/1.15, allocations: 140.5 kB / 1.244 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/1.15, allocations: 15.88 kB / 1.244 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/1.151, allocations: 15.92 kB / 1.244 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/1.151, allocations: 19.98 kB / 1.244 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/1.151, allocations: 19.98 kB / 1.244 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.765e-05/1.151, allocations: 104.7 kB / 1.244 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.151, allocations: 0 / 1.244 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00488/1.156, allocations: 1.683 MB / 1.246 GB, free: 4.449 MB / 0.9981 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.009162/1.165, allocations: 1.935 MB / 1.248 GB, free: 2.504 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009194/1.166, allocations: 340.2 kB / 1.248 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/1.166, allocations: 3.938 kB / 1.248 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004002/1.166, allocations: 237.5 kB / 1.248 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/1.167, allocations: 68.23 kB / 1.248 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/1.168, allocations: 0.6355 MB / 1.249 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/1.169, allocations: 0.7737 MB / 1.25 GB, free: 420 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0006621/1.169, allocations: 405 kB / 1.25 GB, free: 16 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4824/1.652, allocations: 40.66 kB / 1.25 GB, free: 229 MB / 0.9981 GB Notification: Performance of SimCode: time 8.62e-07/1.652, allocations: 0.9688 kB / 1.25 GB, free: 229 MB / 0.9981 GB Notification: Performance of Templates: time 0.07456/1.726, allocations: 59.61 MB / 1.308 GB, free: 189.6 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_10_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches