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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001401/0.001401, allocations: 103.2 kB / 16.35 MB, free: 5.875 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.001782/0.001782, allocations: 198.3 kB / 17.3 MB, free: 5.516 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.557/2.557, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 64.67 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2919, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.6991/0.9911, allocations: 136.1 MB / 1.16 GB, free: 5.059 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02749/1.019, allocations: 22.67 MB / 1.182 GB, free: 4.77 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002418/1.019, allocations: 1.406 kB / 1.182 GB, free: 4.77 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003321/1.019, allocations: 47.45 kB / 1.182 GB, free: 4.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0004023/1.02, allocations: 97.34 kB / 1.182 GB, free: 4.648 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.01987/1.04, allocations: 6.933 MB / 1.189 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004958/1.04, allocations: 253.8 kB / 1.189 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.478e-05/1.04, allocations: 16.73 kB / 1.189 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003738/1.041, allocations: 146.3 kB / 1.189 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/1.041, allocations: 90.83 kB / 1.189 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/1.041, allocations: 6.562 kB / 1.189 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02219/1.063, allocations: 11.64 MB / 1.201 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001355/1.063, allocations: 39 kB / 1.201 GB, free: 9.527 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001996/1.063, allocations: 77.94 kB / 1.201 GB, free: 9.488 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01663/1.08, allocations: 6.482 MB / 1.207 GB, free: 4.82 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/1.08, allocations: 0 / 1.207 GB, free: 4.82 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.603e-06/1.08, allocations: 8 kB / 1.207 GB, free: 4.812 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.926e-06/1.08, allocations: 0 / 1.207 GB, free: 4.812 MB / 0.9044 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.003372/1.083, allocations: 1.198 MB / 1.208 GB, free: 3.566 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/1.084, allocations: 12.03 kB / 1.208 GB, free: 3.555 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/1.085, allocations: 84.66 kB / 1.208 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/1.085, allocations: 220.1 kB / 1.208 GB, free: 3.219 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/1.085, allocations: 20.36 kB / 1.208 GB, free: 3.199 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/1.085, allocations: 15.94 kB / 1.208 GB, free: 3.184 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/1.086, allocations: 456.5 kB / 1.209 GB, free: 2.719 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/1.086, allocations: 0 / 1.209 GB, free: 2.719 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/1.086, allocations: 8 kB / 1.209 GB, free: 2.711 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/1.086, allocations: 4 kB / 1.209 GB, free: 2.707 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/1.087, allocations: 0.5975 MB / 1.21 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/1.088, allocations: 0.886 MB / 1.21 GB, free: 1.137 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008054/1.089, allocations: 251.7 kB / 1.211 GB, free: 0.8789 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/1.089, allocations: 72.83 kB / 1.211 GB, free: 0.8047 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08172/1.171, allocations: 35.42 MB / 1.245 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/1.171, allocations: 34.56 kB / 1.245 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/1.171, allocations: 0 / 1.245 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001795/1.173, allocations: 423.2 kB / 1.246 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/1.173, allocations: 55.41 kB / 1.246 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/1.173, allocations: 136.5 kB / 1.246 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/1.173, allocations: 41.69 kB / 1.246 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/1.173, allocations: 100.5 kB / 1.246 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.88e-05/1.173, allocations: 86.73 kB / 1.246 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/1.173, allocations: 85.56 kB / 1.246 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.758e-05/1.173, allocations: 326.8 kB / 1.247 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/1.174, allocations: 79.95 kB / 1.247 GB, free: 8.887 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/1.174, allocations: 134.1 kB / 1.247 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000441/1.174, allocations: 224 kB / 1.247 GB, free: 8.504 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/1.174, allocations: 0 / 1.247 GB, free: 8.504 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007652/1.175, allocations: 293.3 kB / 1.247 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/1.175, allocations: 8 kB / 1.247 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/1.175, allocations: 3.984 kB / 1.247 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/1.175, allocations: 7.938 kB / 1.247 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/1.175, allocations: 75.94 kB / 1.247 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/1.175, allocations: 7.938 kB / 1.247 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/1.176, allocations: 19.75 kB / 1.247 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/1.176, allocations: 24.8 kB / 1.247 GB, free: 8.066 MB / 0.9512 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.0001323/1.176, allocations: 133.9 kB / 1.247 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/1.176, allocations: 19.75 kB / 1.247 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/1.178, allocations: 2.342 MB / 1.25 GB, free: 5.551 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/1.178, allocations: 11.98 kB / 1.25 GB, free: 5.539 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.178, allocations: 4 kB / 1.25 GB, free: 5.535 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/1.178, allocations: 3.984 kB / 1.25 GB, free: 5.531 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/1.181, allocations: 3.42 MB / 1.253 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/1.181, allocations: 5 kB / 1.253 GB, free: 2 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002607/1.182, allocations: 51.95 kB / 1.253 GB, free: 1.949 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/1.182, allocations: 3.938 kB / 1.253 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.546e-05/1.182, allocations: 19.86 kB / 1.253 GB, free: 1.926 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/1.182, allocations: 0 / 1.253 GB, free: 1.926 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/1.182, allocations: 0 / 1.253 GB, free: 1.926 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007599/1.182, allocations: 0.5426 MB / 1.254 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/1.183, allocations: 148.5 kB / 1.254 GB, free: 1.203 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/1.183, allocations: 12.81 kB / 1.254 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/1.183, allocations: 15.98 kB / 1.254 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.058e-05/1.183, allocations: 11.98 kB / 1.254 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/1.183, allocations: 15.98 kB / 1.254 GB, free: 1.148 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.138e-05/1.183, allocations: 103.3 kB / 1.254 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/1.183, allocations: 0 / 1.254 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.004421/1.187, allocations: 1.691 MB / 1.256 GB, free: 15.36 MB / 0.9669 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.008471/1.196, allocations: 1.943 MB / 1.258 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006662/1.197, allocations: 322.4 kB / 1.258 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.197, allocations: 4.062 kB / 1.258 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003287/1.197, allocations: 241.2 kB / 1.258 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004983/1.197, allocations: 62.12 kB / 1.258 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009948/1.198, allocations: 0.6345 MB / 1.259 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/1.199, allocations: 0.7699 MB / 1.26 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0005049/1.199, allocations: 409 kB / 1.26 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/1.199, allocations: 39.42 kB / 1.26 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of SimCode: time 5.41e-07/1.199, allocations: 0 / 1.26 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of Templates: time 0.07376/1.273, allocations: 59.37 MB / 1.318 GB, free: 15.47 MB / 1.029 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches