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.0014/0.0014, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001732/0.001732, allocations: 198.2 kB / 16.14 MB, free: 6.574 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.496/1.496, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.629/2.629, allocations: 437 MB / 0.7099 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 55.91 kB / 0.8685 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8634/0.865, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1743/1.039, allocations: 134 MB / 1.147 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03675/1.076, allocations: 25.14 MB / 1.172 GB, free: 3.031 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001969/1.076, allocations: 4 kB / 1.172 GB, free: 3.027 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003762/1.077, allocations: 39.8 kB / 1.172 GB, free: 2.988 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004215/1.077, allocations: 83.48 kB / 1.172 GB, free: 2.906 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.02125/1.099, allocations: 5.484 MB / 1.177 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005811/1.099, allocations: 307.8 kB / 1.178 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.932e-05/1.099, allocations: 13.56 kB / 1.178 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004503/1.1, allocations: 131.4 kB / 1.178 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/1.1, allocations: 95.66 kB / 1.178 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/1.1, allocations: 8 kB / 1.178 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02684/1.127, allocations: 11.52 MB / 1.189 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001516/1.127, allocations: 43.83 kB / 1.189 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001908/1.127, allocations: 79.64 kB / 1.189 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.02175/1.149, allocations: 6.515 MB / 1.196 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 9.537e-06/1.149, allocations: 0 / 1.196 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.767e-06/1.149, allocations: 0 / 1.196 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.125e-05/1.149, allocations: 4 kB / 1.196 GB, free: 10.71 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.005403/1.155, allocations: 1.201 MB / 1.197 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.235e-05/1.155, allocations: 11.97 kB / 1.197 GB, free: 9.449 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/1.156, allocations: 84.67 kB / 1.197 GB, free: 9.367 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/1.156, allocations: 228.1 kB / 1.197 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/1.157, allocations: 20.11 kB / 1.197 GB, free: 9.086 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/1.157, allocations: 12 kB / 1.197 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/1.158, allocations: 460.5 kB / 1.198 GB, free: 8.605 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/1.158, allocations: 0 / 1.198 GB, free: 8.605 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.082e-05/1.158, allocations: 8 kB / 1.198 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/1.158, allocations: 4 kB / 1.198 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/1.159, allocations: 0.5969 MB / 1.198 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/1.161, allocations: 0.8822 MB / 1.199 GB, free: 7.027 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009665/1.162, allocations: 252.2 kB / 1.199 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/1.162, allocations: 72.83 kB / 1.199 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08705/1.249, allocations: 35.04 MB / 1.234 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/1.249, allocations: 38.55 kB / 1.234 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.954e-06/1.249, allocations: 0 / 1.234 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.002059/1.251, allocations: 419.5 kB / 1.234 GB, free: 108 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/1.251, allocations: 55.41 kB / 1.234 GB, free: 40 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/1.251, allocations: 139.8 kB / 1.234 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/1.252, allocations: 33.7 kB / 1.234 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/1.252, allocations: 112.4 kB / 1.234 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.792e-05/1.252, allocations: 82.77 kB / 1.235 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/1.252, allocations: 85.56 kB / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001194/1.252, allocations: 326.8 kB / 1.235 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/1.252, allocations: 79.95 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/1.252, allocations: 133.1 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004801/1.253, allocations: 216.3 kB / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.253, allocations: 0 / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008042/1.254, allocations: 297.2 kB / 1.236 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/1.254, allocations: 12.16 kB / 1.236 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/1.254, allocations: 0 / 1.236 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/1.254, allocations: 4 kB / 1.236 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/1.254, allocations: 87.88 kB / 1.236 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/1.254, allocations: 0 / 1.236 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/1.254, allocations: 27.69 kB / 1.236 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.225e-05/1.254, allocations: 23.98 kB / 1.236 GB, free: 14.34 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.0001588/1.255, allocations: 126.3 kB / 1.236 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/1.255, allocations: 23.81 kB / 1.236 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/1.257, allocations: 2.347 MB / 1.238 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/1.257, allocations: 15.98 kB / 1.238 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.258, allocations: 0 / 1.238 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/1.258, allocations: 3.938 kB / 1.238 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003629/1.261, allocations: 3.423 MB / 1.242 GB, free: 8.277 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/1.261, allocations: 0 / 1.242 GB, free: 8.277 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/1.261, allocations: 55.94 kB / 1.242 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/1.261, allocations: 0 / 1.242 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/1.262, allocations: 15.94 kB / 1.242 GB, free: 8.207 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/1.262, allocations: 3.938 kB / 1.242 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.262, allocations: 3.938 kB / 1.242 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009534/1.262, allocations: 0.5456 MB / 1.242 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/1.263, allocations: 148.5 kB / 1.242 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/1.263, allocations: 7.938 kB / 1.242 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/1.263, allocations: 11.98 kB / 1.242 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/1.263, allocations: 27.97 kB / 1.242 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.176e-05/1.263, allocations: 12 kB / 1.242 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001004/1.263, allocations: 108.7 kB / 1.242 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.91e-07/1.263, allocations: 0 / 1.242 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005744/1.269, allocations: 1.683 MB / 1.244 GB, free: 5.625 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.0106/1.28, allocations: 1.937 MB / 1.246 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008654/1.281, allocations: 326.1 kB / 1.246 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.281, allocations: 0 / 1.246 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003982/1.281, allocations: 249.4 kB / 1.247 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/1.282, allocations: 57.2 kB / 1.247 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/1.283, allocations: 0.7517 MB / 1.247 GB, free: 2.277 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/1.283, allocations: 0.7661 MB / 1.248 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0006012/1.284, allocations: 412.9 kB / 1.248 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/1.284, allocations: 47.41 kB / 1.249 GB, free: 1.039 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/1.284, allocations: 0 / 1.249 GB, free: 1.039 MB / 0.9981 GB Notification: Performance of Templates: time 0.6167/1.901, allocations: 59.41 MB / 1.307 GB, free: 191 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=480 -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