Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.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.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|steTra.port_a.p|steTra.port_b.p|steTra.sta_a.T|steTra.sta_b.T|hIn.h_out|hOut.h_out|steTra.m_flow|steTra.QLos_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap") translateModel(Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|steTra.port_a.p|steTra.port_b.p|steTra.sta_a.T|steTra.sta_b.T|hIn.h_out|hOut.h_out|steTra.m_flow|steTra.QLos_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005009/0.00501, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001198/0.001198, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.619/2.619, allocations: 472.7 MB / 0.7453 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.89 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7445/0.7457, allocations: 159.9 MB / 1.226 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap): time 0.03654/0.7823, allocations: 37.34 MB / 1.262 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.1512/0.9336, allocations: 148.6 MB / 1.407 GB, free: 2.961 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.9353, allocations: 51.69 kB / 1.407 GB, free: 2.91 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.003966/0.9393, allocations: 1.595 MB / 1.409 GB, free: 1.312 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.9441, allocations: 2.072 MB / 1.411 GB, free: 15.23 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.003263/0.9474, allocations: 1.497 MB / 1.412 GB, free: 13.74 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.008074/0.9554, allocations: 6.187 MB / 1.418 GB, free: 7.543 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/0.9571, allocations: 1.129 MB / 1.419 GB, free: 6.379 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.9601, allocations: 1.473 MB / 1.421 GB, free: 4.902 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001342/0.9615, allocations: 0.9844 MB / 1.422 GB, free: 3.914 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0002152/0.9617, allocations: 120 kB / 1.422 GB, free: 3.797 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.9639, allocations: 1.139 MB / 1.423 GB, free: 2.656 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0006077/0.9645, allocations: 0.5024 MB / 1.424 GB, free: 2.152 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.9656, allocations: 0.8628 MB / 1.424 GB, free: 1.285 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003424/0.969, allocations: 2.736 MB / 1.427 GB, free: 14.54 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.969, allocations: 0 / 1.427 GB, free: 14.54 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.553e-06/0.969, allocations: 0 / 1.427 GB, free: 14.54 MB / 1.154 GB Notification: Performance of Transformations before backend: time 2.672e-05/0.9691, allocations: 4 kB / 1.427 GB, free: 14.53 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.003359/0.9724, allocations: 2.142 MB / 1.429 GB, free: 12.32 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.9725, allocations: 11.98 kB / 1.429 GB, free: 12.31 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.9742, allocations: 366.5 kB / 1.429 GB, free: 11.95 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003423/0.9777, allocations: 2.186 MB / 1.432 GB, free: 9.715 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.162e-05/0.9777, allocations: 65.94 kB / 1.432 GB, free: 9.648 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.9779, allocations: 80 kB / 1.432 GB, free: 9.57 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.9795, allocations: 0.8542 MB / 1.433 GB, free: 8.684 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.9795, allocations: 0 / 1.433 GB, free: 8.684 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.9796, allocations: 32 kB / 1.433 GB, free: 8.652 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/0.9796, allocations: 30 kB / 1.433 GB, free: 8.621 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.9812, allocations: 0.6557 MB / 1.433 GB, free: 7.965 MB / 1.154 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00521/0.9864, allocations: 3.869 MB / 1.437 GB, free: 3.895 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.9877, allocations: 0.5078 MB / 1.438 GB, free: 3.379 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005538/0.9882, allocations: 244.7 kB / 1.438 GB, free: 3.137 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00265/0.9909, allocations: 1.818 MB / 1.44 GB, free: 1.125 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.9909, allocations: 38.56 kB / 1.44 GB, free: 1.078 MB / 1.154 GB Notification: Performance of pre-optimization done (n=43): time 2.244e-06/0.991, allocations: 4 kB / 1.44 GB, free: 1.074 MB / 1.154 GB Notification: Performance of matching and sorting (n=43): time 0.001873/0.9928, allocations: 0.7283 MB / 1.44 GB, free: 348 kB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.9929, allocations: 55.41 kB / 1.44 GB, free: 280 kB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.9949, allocations: 1.542 MB / 1.442 GB, free: 14.72 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.9949, allocations: 41.69 kB / 1.442 GB, free: 14.67 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005364/0.9955, allocations: 0.6852 MB / 1.443 GB, free: 13.98 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.9956, allocations: 170.6 kB / 1.443 GB, free: 13.82 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.996, allocations: 254.4 kB / 1.443 GB, free: 13.56 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9961, allocations: 349.9 kB / 1.443 GB, free: 13.21 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007789/0.9969, allocations: 436.9 kB / 1.444 GB, free: 12.79 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.9979, allocations: 0.6944 MB / 1.444 GB, free: 11.98 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.9995, allocations: 1.039 MB / 1.445 GB, free: 10.84 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.9995, allocations: 4 kB / 1.445 GB, free: 10.84 MB / 1.17 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00236/1.002, allocations: 1.292 MB / 1.447 GB, free: 9.539 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/1.002, allocations: 15.98 kB / 1.447 GB, free: 9.523 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/1.002, allocations: 4 kB / 1.447 GB, free: 9.52 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/1.002, allocations: 12.41 kB / 1.447 GB, free: 9.508 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008543/1.003, allocations: 231.7 kB / 1.447 GB, free: 9.281 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/1.003, allocations: 15.94 kB / 1.447 GB, free: 9.266 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009546/1.004, allocations: 139.1 kB / 1.447 GB, free: 9.129 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.864e-05/1.004, allocations: 47.98 kB / 1.447 GB, free: 9.082 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001178/1.005, allocations: 0.752 MB / 1.448 GB, free: 8.328 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009185/1.006, allocations: 0.6945 MB / 1.449 GB, free: 7.523 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001456/1.008, allocations: 1.019 MB / 1.45 GB, free: 6.402 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.228e-06/1.008, allocations: 0 / 1.45 GB, free: 6.402 MB / 1.17 GB Notification: Performance of matching and sorting (n=148) (initialization_lambda0): time 0.002133/1.01, allocations: 1.278 MB / 1.451 GB, free: 5.117 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/1.01, allocations: 8 kB / 1.451 GB, free: 5.109 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/1.01, allocations: 8 kB / 1.451 GB, free: 5.102 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/1.01, allocations: 12 kB / 1.451 GB, free: 5.09 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007999/1.011, allocations: 232 kB / 1.451 GB, free: 4.863 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/1.011, allocations: 19.92 kB / 1.451 GB, free: 4.844 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009436/1.012, allocations: 103.8 kB / 1.451 GB, free: 4.742 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/1.012, allocations: 40 kB / 1.451 GB, free: 4.703 MB / 1.17 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (115): * Single equations (assignments): 113 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0002303/1.012, allocations: 236 kB / 1.451 GB, free: 4.465 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002396/1.012, allocations: 151 kB / 1.452 GB, free: 4.316 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/1.014, allocations: 0.7291 MB / 1.452 GB, free: 3.574 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/1.014, allocations: 15.92 kB / 1.452 GB, free: 3.559 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/1.014, allocations: 0 / 1.452 GB, free: 3.559 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001248/1.015, allocations: 0.7392 MB / 1.453 GB, free: 2.75 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/1.018, allocations: 1.79 MB / 1.455 GB, free: 0.8945 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/1.018, allocations: 0 / 1.455 GB, free: 0.8945 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/1.019, allocations: 112 kB / 1.455 GB, free: 0.7852 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/1.019, allocations: 4 kB / 1.455 GB, free: 0.7812 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/1.019, allocations: 19.92 kB / 1.455 GB, free: 0.7617 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/1.019, allocations: 7.938 kB / 1.455 GB, free: 0.7539 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.019, allocations: 0 / 1.455 GB, free: 0.7539 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/1.021, allocations: 1.048 MB / 1.456 GB, free: 15.67 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004415/1.022, allocations: 304 kB / 1.456 GB, free: 15.36 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/1.022, allocations: 19.94 kB / 1.456 GB, free: 15.34 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006481/1.022, allocations: 40.03 kB / 1.456 GB, free: 15.3 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.277e-05/1.022, allocations: 39.89 kB / 1.456 GB, free: 15.26 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.893e-05/1.022, allocations: 19.98 kB / 1.456 GB, free: 15.24 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.001413/1.024, allocations: 1.039 MB / 1.457 GB, free: 14.2 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.6e-07/1.024, allocations: 3.938 kB / 1.457 GB, free: 14.2 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.00186/1.026, allocations: 0.7525 MB / 1.458 GB, free: 13.45 MB / 1.186 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pum.vol.dynBal.U,pum.filter.s[1],pum.filter.s[2],hIn.h_out,hOut.h_out) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001075/1.027, allocations: 0.5302 MB / 1.459 GB, free: 12.92 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.00267/1.03, allocations: 1.443 MB / 1.46 GB, free: 11.48 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.03, allocations: 4.188 kB / 1.46 GB, free: 11.48 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.0006147/1.03, allocations: 276.1 kB / 1.46 GB, free: 11.21 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002759/1.033, allocations: 0.7003 MB / 1.461 GB, free: 10.53 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/1.037, allocations: 2.583 MB / 1.464 GB, free: 7.891 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008712/1.038, allocations: 1.295 MB / 1.465 GB, free: 6.566 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001304/1.039, allocations: 403.3 kB / 1.465 GB, free: 6.168 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000321/1.039, allocations: 123.4 kB / 1.465 GB, free: 6.047 MB / 1.186 GB Notification: Performance of SimCode: time 5.61e-07/1.039, allocations: 4 kB / 1.465 GB, free: 6.043 MB / 1.186 GB Notification: Performance of Templates: time 0.04518/1.085, allocations: 29.08 MB / 1.494 GB, free: 9.328 MB / 1.217 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.sim & ./Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_Steam_BaseClasses_Examples_SteamTrap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches