Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.005915/0.005915, allocations: 100.5 kB / 15.73 MB, free: 6.027 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.00132/0.00132, allocations: 199.5 kB / 16.68 MB, free: 5.938 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.647/2.647, allocations: 472.7 MB / 0.7453 GB, free: 468 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001493, allocations: 67.88 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9545/0.956, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1714/1.127, allocations: 136.1 MB / 1.359 GB, free: 4.887 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.03457/1.162, allocations: 22.67 MB / 1.381 GB, free: 14.15 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/1.162, allocations: 4 kB / 1.381 GB, free: 14.14 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0003515/1.163, allocations: 47.67 kB / 1.381 GB, free: 14.1 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.0004051/1.163, allocations: 91.42 kB / 1.381 GB, free: 14.01 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.02032/1.183, allocations: 6.939 MB / 1.388 GB, free: 7.078 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.0004963/1.184, allocations: 251.9 kB / 1.388 GB, free: 6.828 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 5.948e-05/1.184, allocations: 13.56 kB / 1.388 GB, free: 6.816 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003932/1.184, allocations: 139.4 kB / 1.388 GB, free: 6.68 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/1.185, allocations: 95.59 kB / 1.388 GB, free: 6.586 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/1.185, allocations: 8 kB / 1.388 GB, free: 6.578 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02594/1.211, allocations: 11.64 MB / 1.399 GB, free: 10.93 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0001321/1.211, allocations: 39.83 kB / 1.4 GB, free: 10.89 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.0001686/1.211, allocations: 83.64 kB / 1.4 GB, free: 10.8 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.02102/1.232, allocations: 6.489 MB / 1.406 GB, free: 4.301 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/1.232, allocations: 3.984 kB / 1.406 GB, free: 4.297 MB / 1.123 GB Notification: Performance of FrontEnd: time 2.334e-06/1.232, allocations: 4 kB / 1.406 GB, free: 4.293 MB / 1.123 GB Notification: Performance of Transformations before backend: time 1.302e-05/1.232, allocations: 0 / 1.406 GB, free: 4.293 MB / 1.123 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.004444/1.237, allocations: 1.238 MB / 1.407 GB, free: 3 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/1.237, allocations: 8.031 kB / 1.407 GB, free: 2.992 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/1.238, allocations: 88.7 kB / 1.407 GB, free: 2.906 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/1.238, allocations: 228.1 kB / 1.407 GB, free: 2.645 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/1.238, allocations: 16.12 kB / 1.407 GB, free: 2.629 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.753e-05/1.238, allocations: 12 kB / 1.407 GB, free: 2.617 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/1.24, allocations: 465.8 kB / 1.408 GB, free: 2.145 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/1.24, allocations: 0 / 1.408 GB, free: 2.145 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/1.24, allocations: 8 kB / 1.408 GB, free: 2.137 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/1.24, allocations: 4 kB / 1.408 GB, free: 2.133 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/1.241, allocations: 0.5932 MB / 1.409 GB, free: 1.539 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/1.242, allocations: 0.8939 MB / 1.409 GB, free: 0.5586 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008429/1.243, allocations: 238.4 kB / 1.41 GB, free: 324 kB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/1.243, allocations: 76.83 kB / 1.41 GB, free: 244 kB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08945/1.333, allocations: 35.43 MB / 1.444 GB, free: 9.707 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/1.333, allocations: 38.48 kB / 1.444 GB, free: 9.66 MB / 1.17 GB Notification: Performance of pre-optimization done (n=25): time 1.814e-06/1.333, allocations: 0 / 1.444 GB, free: 9.66 MB / 1.17 GB Notification: Performance of matching and sorting (n=25): time 0.001797/1.335, allocations: 417.4 kB / 1.445 GB, free: 9.246 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/1.335, allocations: 55.41 kB / 1.445 GB, free: 9.18 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/1.335, allocations: 135.5 kB / 1.445 GB, free: 9.039 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/1.335, allocations: 33.7 kB / 1.445 GB, free: 9 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 8.719e-05/1.335, allocations: 116.5 kB / 1.445 GB, free: 8.883 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 7.473e-05/1.335, allocations: 91.2 kB / 1.445 GB, free: 8.793 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/1.335, allocations: 73.67 kB / 1.445 GB, free: 8.715 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001186/1.335, allocations: 330.8 kB / 1.446 GB, free: 8.383 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/1.335, allocations: 83.94 kB / 1.446 GB, free: 8.301 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/1.336, allocations: 133 kB / 1.446 GB, free: 8.152 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004579/1.336, allocations: 219.8 kB / 1.446 GB, free: 7.922 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/1.336, allocations: 0 / 1.446 GB, free: 7.922 MB / 1.17 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007651/1.337, allocations: 301.3 kB / 1.446 GB, free: 7.621 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/1.337, allocations: 9.406 kB / 1.446 GB, free: 7.613 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/1.337, allocations: 0 / 1.446 GB, free: 7.613 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/1.337, allocations: 4 kB / 1.446 GB, free: 7.609 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/1.337, allocations: 79.88 kB / 1.446 GB, free: 7.531 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/1.337, allocations: 0 / 1.446 GB, free: 7.531 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/1.337, allocations: 35.72 kB / 1.446 GB, free: 7.496 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/1.337, allocations: 27.97 kB / 1.446 GB, free: 7.469 MB / 1.17 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.0001341/1.338, allocations: 133.8 kB / 1.447 GB, free: 7.332 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/1.338, allocations: 19.84 kB / 1.447 GB, free: 7.316 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002459/1.34, allocations: 2.338 MB / 1.449 GB, free: 4.961 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/1.34, allocations: 11.98 kB / 1.449 GB, free: 4.949 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.34, allocations: 0 / 1.449 GB, free: 4.949 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/1.34, allocations: 7.938 kB / 1.449 GB, free: 4.941 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/1.344, allocations: 3.419 MB / 1.452 GB, free: 1.41 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/1.344, allocations: 3.984 kB / 1.452 GB, free: 1.406 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/1.344, allocations: 63.89 kB / 1.452 GB, free: 1.344 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/1.344, allocations: 0 / 1.452 GB, free: 1.344 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/1.344, allocations: 11.94 kB / 1.452 GB, free: 1.332 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/1.344, allocations: 0 / 1.452 GB, free: 1.332 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.344, allocations: 0 / 1.452 GB, free: 1.332 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007897/1.345, allocations: 0.5544 MB / 1.453 GB, free: 0.7617 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/1.345, allocations: 144.7 kB / 1.453 GB, free: 0.6016 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/1.345, allocations: 7.938 kB / 1.453 GB, free: 0.5938 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/1.345, allocations: 16 kB / 1.453 GB, free: 0.5781 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/1.345, allocations: 23.91 kB / 1.453 GB, free: 0.5547 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/1.345, allocations: 12 kB / 1.453 GB, free: 0.543 MB / 1.17 GB Notification: Performance of sorting global known variables: time 8.426e-05/1.345, allocations: 109.1 kB / 1.453 GB, free: 448 kB / 1.17 GB Notification: Performance of sort global known variables: time 1.21e-07/1.345, allocations: 0 / 1.453 GB, free: 448 kB / 1.17 GB Notification: Performance of remove unused functions: time 0.007251/1.353, allocations: 1.703 MB / 1.455 GB, free: 14.73 MB / 1.186 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.0116/1.364, allocations: 1.951 MB / 1.457 GB, free: 12.77 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0009437/1.365, allocations: 320.4 kB / 1.457 GB, free: 12.45 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/1.365, allocations: 4.312 kB / 1.457 GB, free: 12.45 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.000451/1.366, allocations: 245.1 kB / 1.457 GB, free: 12.21 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00071/1.366, allocations: 65.86 kB / 1.457 GB, free: 12.15 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/1.368, allocations: 0.634 MB / 1.458 GB, free: 11.49 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/1.368, allocations: 0.7661 MB / 1.459 GB, free: 10.7 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0005838/1.369, allocations: 405 kB / 1.459 GB, free: 10.3 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/1.369, allocations: 51.41 kB / 1.459 GB, free: 10.25 MB / 1.186 GB Notification: Performance of SimCode: time 4.31e-07/1.369, allocations: 0 / 1.459 GB, free: 10.25 MB / 1.186 GB Notification: Performance of Templates: time 0.07918/1.448, allocations: 59.43 MB / 1.517 GB, free: 14.77 MB / 1.248 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_latest_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches