Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.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 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.Experimental.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_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap") translateModel(Buildings.Experimental.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_10_Buildings.Experimental.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.007253/0.007253, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001585/0.001585, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.471/2.471, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 67.89 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 151.6 MB / 1.167 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap): time 0.03877/1.072, allocations: 37.34 MB / 1.203 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1745/1.247, allocations: 148.6 MB / 1.348 GB, free: 9.184 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001996/1.249, allocations: 47.75 kB / 1.348 GB, free: 9.137 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.004663/1.253, allocations: 1.602 MB / 1.35 GB, free: 7.535 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.006138/1.26, allocations: 2.147 MB / 1.352 GB, free: 5.379 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.003809/1.263, allocations: 1.507 MB / 1.353 GB, free: 3.879 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.009257/1.273, allocations: 6.19 MB / 1.359 GB, free: 13.67 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002137/1.275, allocations: 1.141 MB / 1.361 GB, free: 12.5 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004067/1.279, allocations: 1.509 MB / 1.362 GB, free: 10.99 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001756/1.281, allocations: 0.9922 MB / 1.363 GB, free: 9.992 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0002557/1.281, allocations: 123.9 kB / 1.363 GB, free: 9.871 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002606/1.284, allocations: 1.127 MB / 1.364 GB, free: 8.742 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.000546/1.284, allocations: 0.5101 MB / 1.365 GB, free: 8.23 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.001051/1.285, allocations: 0.8667 MB / 1.366 GB, free: 7.359 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.004545/1.29, allocations: 2.74 MB / 1.368 GB, free: 4.609 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/1.29, allocations: 0 / 1.368 GB, free: 4.609 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.432e-06/1.29, allocations: 3.938 kB / 1.368 GB, free: 4.605 MB / 1.092 GB Notification: Performance of Transformations before backend: time 3.885e-05/1.29, allocations: 0 / 1.368 GB, free: 4.605 MB / 1.092 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.003929/1.294, allocations: 2.146 MB / 1.37 GB, free: 2.391 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/1.294, allocations: 12.88 kB / 1.37 GB, free: 2.379 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/1.296, allocations: 358.6 kB / 1.371 GB, free: 2.027 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00387/1.299, allocations: 2.194 MB / 1.373 GB, free: 15.79 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.019e-05/1.3, allocations: 61.98 kB / 1.373 GB, free: 15.72 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/1.3, allocations: 80 kB / 1.373 GB, free: 15.64 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/1.301, allocations: 0.8464 MB / 1.374 GB, free: 14.77 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.9e-05/1.301, allocations: 7.938 kB / 1.374 GB, free: 14.76 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.247e-05/1.301, allocations: 32 kB / 1.374 GB, free: 14.73 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/1.302, allocations: 30 kB / 1.374 GB, free: 14.7 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/1.303, allocations: 0.6557 MB / 1.374 GB, free: 14.04 MB / 1.107 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.006271/1.309, allocations: 3.87 MB / 1.378 GB, free: 9.969 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/1.311, allocations: 0.4948 MB / 1.379 GB, free: 9.465 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005576/1.311, allocations: 243 kB / 1.379 GB, free: 9.227 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003345/1.315, allocations: 1.841 MB / 1.381 GB, free: 7.191 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/1.315, allocations: 34.56 kB / 1.381 GB, free: 7.148 MB / 1.107 GB Notification: Performance of pre-optimization done (n=43): time 2.274e-06/1.315, allocations: 0 / 1.381 GB, free: 7.148 MB / 1.107 GB Notification: Performance of matching and sorting (n=43): time 0.002016/1.317, allocations: 0.7361 MB / 1.381 GB, free: 6.406 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/1.317, allocations: 59.34 kB / 1.382 GB, free: 6.336 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/1.319, allocations: 1.542 MB / 1.383 GB, free: 4.785 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/1.319, allocations: 37.7 kB / 1.383 GB, free: 4.742 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005738/1.32, allocations: 0.6892 MB / 1.384 GB, free: 4.047 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/1.32, allocations: 162.6 kB / 1.384 GB, free: 3.887 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003556/1.32, allocations: 258.4 kB / 1.384 GB, free: 3.629 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001467/1.32, allocations: 349.9 kB / 1.385 GB, free: 3.281 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008402/1.321, allocations: 432.9 kB / 1.385 GB, free: 2.855 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/1.322, allocations: 0.6945 MB / 1.386 GB, free: 2.051 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/1.324, allocations: 1.035 MB / 1.387 GB, free: 0.918 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/1.324, allocations: 0 / 1.387 GB, free: 0.918 MB / 1.107 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002523/1.327, allocations: 1.299 MB / 1.388 GB, free: 15.61 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/1.327, allocations: 8 kB / 1.388 GB, free: 15.6 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/1.327, allocations: 8 kB / 1.388 GB, free: 15.59 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.555e-05/1.327, allocations: 19.92 kB / 1.388 GB, free: 15.57 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008747/1.328, allocations: 232.1 kB / 1.388 GB, free: 15.35 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.182e-05/1.328, allocations: 15.94 kB / 1.388 GB, free: 15.33 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/1.329, allocations: 135.1 kB / 1.388 GB, free: 15.2 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.626e-05/1.329, allocations: 43.98 kB / 1.388 GB, free: 15.16 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001292/1.33, allocations: 0.752 MB / 1.389 GB, free: 14.4 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009776/1.331, allocations: 0.6908 MB / 1.39 GB, free: 13.6 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001615/1.333, allocations: 1.018 MB / 1.391 GB, free: 12.49 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.559e-06/1.333, allocations: 8 kB / 1.391 GB, free: 12.48 MB / 1.123 GB Notification: Performance of matching and sorting (n=148) (initialization_lambda0): time 0.002348/1.335, allocations: 1.278 MB / 1.392 GB, free: 11.19 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/1.335, allocations: 8 kB / 1.392 GB, free: 11.18 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.335, allocations: 15.92 kB / 1.392 GB, free: 11.17 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/1.335, allocations: 12 kB / 1.392 GB, free: 11.16 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008653/1.336, allocations: 224.1 kB / 1.392 GB, free: 10.94 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/1.336, allocations: 19.88 kB / 1.392 GB, free: 10.92 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/1.337, allocations: 108 kB / 1.392 GB, free: 10.81 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.921e-05/1.337, allocations: 36 kB / 1.392 GB, free: 10.78 MB / 1.123 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.0003359/1.338, allocations: 240 kB / 1.393 GB, free: 10.54 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/1.338, allocations: 147 kB / 1.393 GB, free: 10.39 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/1.34, allocations: 0.7315 MB / 1.393 GB, free: 9.652 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/1.34, allocations: 7.984 kB / 1.393 GB, free: 9.645 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/1.34, allocations: 0 / 1.393 GB, free: 9.645 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001345/1.341, allocations: 0.7431 MB / 1.394 GB, free: 8.836 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/1.345, allocations: 1.798 MB / 1.396 GB, free: 6.969 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/1.345, allocations: 4 kB / 1.396 GB, free: 6.965 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000623/1.346, allocations: 107.9 kB / 1.396 GB, free: 6.859 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/1.346, allocations: 4 kB / 1.396 GB, free: 6.855 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.882e-05/1.346, allocations: 27.91 kB / 1.396 GB, free: 6.828 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/1.346, allocations: 0 / 1.396 GB, free: 6.828 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.346, allocations: 4 kB / 1.396 GB, free: 6.824 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/1.348, allocations: 1.052 MB / 1.397 GB, free: 5.742 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005832/1.348, allocations: 304 kB / 1.397 GB, free: 5.426 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/1.349, allocations: 15.94 kB / 1.397 GB, free: 5.41 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006154/1.349, allocations: 39.95 kB / 1.397 GB, free: 5.371 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/1.349, allocations: 31.95 kB / 1.397 GB, free: 5.34 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/1.349, allocations: 19.98 kB / 1.398 GB, free: 5.32 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001574/1.351, allocations: 1.039 MB / 1.399 GB, free: 4.285 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.41e-07/1.351, allocations: 4 kB / 1.399 GB, free: 4.281 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.002252/1.353, allocations: 0.7486 MB / 1.399 GB, free: 3.531 MB / 1.123 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.001143/1.354, allocations: 0.5293 MB / 1.4 GB, free: 3.004 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.002833/1.357, allocations: 1.443 MB / 1.401 GB, free: 1.566 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/1.357, allocations: 0 / 1.401 GB, free: 1.566 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0006471/1.358, allocations: 285.5 kB / 1.401 GB, free: 1.289 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/1.361, allocations: 0.7126 MB / 1.402 GB, free: 0.6016 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004498/1.365, allocations: 2.591 MB / 1.405 GB, free: 13.96 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/1.366, allocations: 1.288 MB / 1.406 GB, free: 12.64 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.001431/1.368, allocations: 400.3 kB / 1.406 GB, free: 12.25 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/1.368, allocations: 123.4 kB / 1.406 GB, free: 12.13 MB / 1.139 GB Notification: Performance of SimCode: time 7.11e-07/1.368, allocations: 0 / 1.406 GB, free: 12.13 MB / 1.139 GB Notification: Performance of Templates: time 0.05522/1.423, allocations: 29.25 MB / 1.435 GB, free: 15.23 MB / 1.17 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.sim & ./Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Loads_Steam_BaseClasses_Examples_SteamTrap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches