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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001007/0.001007, 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.00115/0.00115, allocations: 200.7 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.389/1.389, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.426/2.426, allocations: 390.2 MB / 0.6649 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 59.91 kB / 0.8125 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6754/0.6768, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1408/0.8176, allocations: 134.1 MB / 1.08 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03156/0.8492, allocations: 24.64 MB / 1.105 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.8495, allocations: 0 / 1.105 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.8498, allocations: 43.78 kB / 1.105 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003557/0.8502, allocations: 87.44 kB / 1.105 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01617/0.8664, allocations: 5.282 MB / 1.11 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.8669, allocations: 307.8 kB / 1.11 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 6.467e-05/0.867, allocations: 13.56 kB / 1.11 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/0.8674, allocations: 135.4 kB / 1.11 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.8676, allocations: 87.66 kB / 1.11 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.8676, allocations: 8 kB / 1.11 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02117/0.8888, allocations: 10.85 MB / 1.121 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.889, allocations: 35.88 kB / 1.121 GB, free: 2.027 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.8891, allocations: 79.66 kB / 1.121 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008258/0.8974, allocations: 4.144 MB / 1.125 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.8975, allocations: 0 / 1.125 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8975, allocations: 0 / 1.125 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.8975, allocations: 0 / 1.125 GB, free: 13.8 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.003403/0.9009, allocations: 1.181 MB / 1.126 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.9009, allocations: 16.03 kB / 1.126 GB, free: 12.55 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/0.9021, allocations: 84.66 kB / 1.126 GB, free: 12.47 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.9024, allocations: 232 kB / 1.127 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.9024, allocations: 16.12 kB / 1.127 GB, free: 12.19 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.9025, allocations: 16 kB / 1.127 GB, free: 12.17 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.9037, allocations: 452.2 kB / 1.127 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.9038, allocations: 4 kB / 1.127 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.9038, allocations: 12 kB / 1.127 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.9038, allocations: 4 kB / 1.127 GB, free: 11.69 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.9051, allocations: 0.5931 MB / 1.128 GB, free: 11.1 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.9062, allocations: 0.8745 MB / 1.128 GB, free: 10.14 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.907, allocations: 248.3 kB / 1.129 GB, free: 9.887 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.9072, allocations: 72.83 kB / 1.129 GB, free: 9.812 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08072/0.9879, allocations: 35.05 MB / 1.163 GB, free: 3.668 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.988, allocations: 38.56 kB / 1.163 GB, free: 3.621 MB / 0.92 GB Notification: Performance of pre-optimization done (n=25): time 2.174e-06/0.988, allocations: 0 / 1.163 GB, free: 3.621 MB / 0.92 GB Notification: Performance of matching and sorting (n=25): time 0.00178/0.9898, allocations: 419.8 kB / 1.163 GB, free: 3.207 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.9898, allocations: 51.41 kB / 1.164 GB, free: 3.145 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.99, allocations: 143.3 kB / 1.164 GB, free: 2.996 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.99, allocations: 29.7 kB / 1.164 GB, free: 2.961 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.9901, allocations: 108.4 kB / 1.164 GB, free: 2.852 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.9902, allocations: 90.73 kB / 1.164 GB, free: 2.762 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.9903, allocations: 77.66 kB / 1.164 GB, free: 2.68 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.9904, allocations: 326.8 kB / 1.164 GB, free: 2.352 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.9906, allocations: 87.89 kB / 1.164 GB, free: 2.266 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.9909, allocations: 125.1 kB / 1.164 GB, free: 2.125 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004513/0.9913, allocations: 215 kB / 1.165 GB, free: 1.898 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.9913, allocations: 0 / 1.165 GB, free: 1.898 MB / 0.92 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007161/0.9921, allocations: 298.9 kB / 1.165 GB, free: 1.602 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.9921, allocations: 8 kB / 1.165 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.9921, allocations: 0 / 1.165 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.9921, allocations: 4 kB / 1.165 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.9924, allocations: 84.03 kB / 1.165 GB, free: 1.508 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.9925, allocations: 8 kB / 1.165 GB, free: 1.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.9926, allocations: 27.67 kB / 1.165 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.9927, allocations: 27.92 kB / 1.165 GB, free: 1.445 MB / 0.92 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.0001297/0.9928, allocations: 129.8 kB / 1.165 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.993, allocations: 11.91 kB / 1.165 GB, free: 1.297 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002295/0.9953, allocations: 2.342 MB / 1.168 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.9953, allocations: 7.984 kB / 1.168 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.9953, allocations: 0 / 1.168 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.9954, allocations: 15.91 kB / 1.168 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.9985, allocations: 3.423 MB / 1.171 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.9985, allocations: 3.938 kB / 1.171 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.9988, allocations: 55.95 kB / 1.171 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.9988, allocations: 0 / 1.171 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.9989, allocations: 11.94 kB / 1.171 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.9989, allocations: 11.97 kB / 1.171 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9989, allocations: 0 / 1.171 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007991/0.9997, allocations: 0.5548 MB / 1.172 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.9998, allocations: 136.6 kB / 1.172 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.9999, allocations: 11.94 kB / 1.172 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/1, allocations: 19.89 kB / 1.172 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/1, allocations: 11.98 kB / 1.172 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/1, allocations: 19.92 kB / 1.172 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.513e-05/1, allocations: 104.7 kB / 1.172 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/1, allocations: 4 kB / 1.172 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.004283/1.005, allocations: 1.628 MB / 1.173 GB, free: 8.789 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.00871/1.013, allocations: 1.892 MB / 1.175 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007216/1.014, allocations: 323.7 kB / 1.176 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.014, allocations: 0 / 1.176 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003428/1.014, allocations: 244.5 kB / 1.176 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/1.015, allocations: 60.25 kB / 1.176 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/1.016, allocations: 0.7777 MB / 1.177 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/1.016, allocations: 0.7699 MB / 1.177 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/1.017, allocations: 55.41 kB / 1.177 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of SimCode: time 4.6e-07/1.017, allocations: 0 / 1.177 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of Templates: time 0.04715/1.064, allocations: 31.47 MB / 1.208 GB, free: 5.105 MB / 0.9669 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches