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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001375/0.001375, allocations: 100.1 kB / 15.88 MB, free: 12 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.001469/0.001469, allocations: 200 kB / 16.79 MB, free: 6.809 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.375/1.375, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.556/2.556, allocations: 437 MB / 0.7106 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 67.91 kB / 0.8692 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.692/0.6934, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.133/0.8265, allocations: 134 MB / 1.148 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03095/0.8575, allocations: 25.14 MB / 1.173 GB, free: 3.09 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.8577, allocations: 0 / 1.173 GB, free: 3.09 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.858, allocations: 43.8 kB / 1.173 GB, free: 3.047 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.8584, allocations: 87.48 kB / 1.173 GB, free: 2.961 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.01672/0.8752, allocations: 5.485 MB / 1.178 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004639/0.8756, allocations: 311.8 kB / 1.178 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.286e-05/0.8757, allocations: 17.55 kB / 1.178 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.8761, allocations: 127.5 kB / 1.179 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.8763, allocations: 91.66 kB / 1.179 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.8763, allocations: 11.94 kB / 1.179 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02297/0.8993, allocations: 11.52 MB / 1.19 GB, free: 1.406 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.8994, allocations: 31.89 kB / 1.19 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.8996, allocations: 83.64 kB / 1.19 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.009307/0.9089, allocations: 4.351 MB / 1.194 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.909, allocations: 4 kB / 1.194 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.573e-06/0.909, allocations: 0 / 1.194 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.909, allocations: 0 / 1.194 GB, free: 12.93 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.003668/0.9127, allocations: 1.189 MB / 1.195 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.9127, allocations: 16.03 kB / 1.195 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/0.914, allocations: 96.58 kB / 1.196 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.9143, allocations: 224.1 kB / 1.196 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.9143, allocations: 16.12 kB / 1.196 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.753e-05/0.9143, allocations: 12 kB / 1.196 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.9156, allocations: 452.5 kB / 1.196 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.9156, allocations: 7.938 kB / 1.196 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.9157, allocations: 12 kB / 1.196 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.9157, allocations: 4 kB / 1.196 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.917, allocations: 0.5969 MB / 1.197 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.9181, allocations: 0.8822 MB / 1.198 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008815/0.919, allocations: 248.2 kB / 1.198 GB, free: 8.996 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.9192, allocations: 72.84 kB / 1.198 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08169/1.001, allocations: 35.04 MB / 1.232 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/1.001, allocations: 38.5 kB / 1.232 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 2.264e-06/1.001, allocations: 0 / 1.232 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.001907/1.003, allocations: 431.4 kB / 1.233 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/1.003, allocations: 51.41 kB / 1.233 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/1.003, allocations: 139.2 kB / 1.233 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/1.003, allocations: 29.7 kB / 1.233 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/1.003, allocations: 108.4 kB / 1.233 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.689e-05/1.003, allocations: 90.73 kB / 1.233 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/1.003, allocations: 77.58 kB / 1.233 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001319/1.004, allocations: 326.8 kB / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/1.004, allocations: 87.94 kB / 1.234 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/1.004, allocations: 125.1 kB / 1.234 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004666/1.005, allocations: 220.3 kB / 1.234 GB, free: 1.004 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/1.005, allocations: 3.938 kB / 1.234 GB, free: 1 MB / 0.9825 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008088/1.005, allocations: 293.3 kB / 1.234 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/1.005, allocations: 10.19 kB / 1.234 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/1.005, allocations: 0 / 1.234 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/1.005, allocations: 4 kB / 1.234 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003096/1.006, allocations: 79.88 kB / 1.234 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/1.006, allocations: 8.156 kB / 1.234 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/1.006, allocations: 23.69 kB / 1.234 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/1.006, allocations: 31.97 kB / 1.234 GB, free: 0.5547 MB / 0.9825 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.0001378/1.006, allocations: 126.3 kB / 1.234 GB, free: 432 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/1.006, allocations: 15.81 kB / 1.234 GB, free: 416 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/1.009, allocations: 2.344 MB / 1.237 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-05/1.009, allocations: 11.98 kB / 1.237 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/1.009, allocations: 0 / 1.237 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.587e-06/1.009, allocations: 3.938 kB / 1.237 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003555/1.013, allocations: 3.423 MB / 1.24 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/1.013, allocations: 0 / 1.24 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/1.013, allocations: 59.88 kB / 1.24 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.687e-05/1.013, allocations: 0 / 1.24 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/1.013, allocations: 19.86 kB / 1.24 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/1.013, allocations: 4 kB / 1.24 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.013, allocations: 0 / 1.24 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/1.014, allocations: 0.5573 MB / 1.241 GB, free: 9.852 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001549/1.014, allocations: 140.5 kB / 1.241 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/1.014, allocations: 11.92 kB / 1.241 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/1.014, allocations: 12 kB / 1.241 GB, free: 9.672 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/1.014, allocations: 19.97 kB / 1.241 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/1.014, allocations: 12 kB / 1.241 GB, free: 9.641 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.456e-05/1.014, allocations: 111.2 kB / 1.241 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.014, allocations: 4 kB / 1.241 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005262/1.02, allocations: 1.691 MB / 1.243 GB, free: 7.836 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.009651/1.029, allocations: 1.931 MB / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008536/1.03, allocations: 326.1 kB / 1.245 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/1.03, allocations: 0 / 1.245 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004079/1.031, allocations: 237.5 kB / 1.245 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/1.031, allocations: 68.23 kB / 1.245 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/1.033, allocations: 0.7924 MB / 1.246 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/1.033, allocations: 0.7699 MB / 1.247 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/1.033, allocations: 51.41 kB / 1.247 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of SimCode: time 6.81e-07/1.033, allocations: 0 / 1.247 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of Templates: time 0.4719/1.505, allocations: 32.76 MB / 1.279 GB, free: 218.3 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches