Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 105.4 kB / 16.4 MB, free: 6.5 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.001239/0.001239, allocations: 192.1 kB / 17.34 MB, free: 5.766 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.678/2.678, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.89 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8319/0.8333, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07561/0.9089, allocations: 81.02 MB / 1.288 GB, free: 12.34 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0317/0.9407, allocations: 21.06 MB / 1.308 GB, free: 7.227 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00509/0.9458, allocations: 107.4 kB / 1.308 GB, free: 7.121 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.006337/0.9522, allocations: 1.951 MB / 1.31 GB, free: 5.164 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.009323/0.9616, allocations: 2.945 MB / 1.313 GB, free: 2.207 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00632/0.9679, allocations: 2.507 MB / 1.315 GB, free: 15.71 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.02123/0.9891, allocations: 18.42 MB / 1.333 GB, free: 13.25 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01017/0.9994, allocations: 7.229 MB / 1.34 GB, free: 5.926 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01238/1.012, allocations: 5.971 MB / 1.346 GB, free: 15.96 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009075/1.021, allocations: 5.125 MB / 1.351 GB, free: 10.82 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.002304/1.023, allocations: 0.5469 MB / 1.352 GB, free: 10.28 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006658/1.03, allocations: 1.978 MB / 1.354 GB, free: 8.297 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.002961/1.033, allocations: 1.76 MB / 1.355 GB, free: 6.531 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.006295/1.039, allocations: 3.48 MB / 1.359 GB, free: 3.035 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.01164/1.051, allocations: 9.671 MB / 1.368 GB, free: 9.336 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/1.051, allocations: 0 / 1.368 GB, free: 9.336 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.625e-06/1.051, allocations: 0 / 1.368 GB, free: 9.336 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.000232/1.051, allocations: 4 kB / 1.368 GB, free: 9.332 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: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01449/1.066, allocations: 6.901 MB / 1.375 GB, free: 2.332 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/1.066, allocations: 8.031 kB / 1.375 GB, free: 2.324 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004347/1.07, allocations: 0.9489 MB / 1.376 GB, free: 1.367 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/1.084, allocations: 6.416 MB / 1.382 GB, free: 10.88 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002625/1.084, allocations: 254.6 kB / 1.382 GB, free: 10.62 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/1.086, allocations: 351.9 kB / 1.383 GB, free: 10.28 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/1.096, allocations: 5.739 MB / 1.388 GB, free: 4.293 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.386e-05/1.096, allocations: 15.88 kB / 1.388 GB, free: 4.277 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000462/1.097, allocations: 144 kB / 1.389 GB, free: 4.137 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001/1.097, allocations: 118 kB / 1.389 GB, free: 4.02 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009566/1.106, allocations: 5.565 MB / 1.394 GB, free: 14.44 MB / 1.123 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.03905/1.146, allocations: 24.07 MB / 1.418 GB, free: 5.293 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005314/1.151, allocations: 2.754 MB / 1.42 GB, free: 2.543 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003155/1.154, allocations: 1.913 MB / 1.422 GB, free: 0.625 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01471/1.169, allocations: 7.163 MB / 1.429 GB, free: 9.145 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003385/1.172, allocations: 1.91 MB / 1.431 GB, free: 7.227 MB / 1.154 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003725/1.176, allocations: 0.7195 MB / 1.432 GB, free: 6.504 MB / 1.154 GB Notification: Performance of pre-optimization done (n=154): time 1.115e-05/1.176, allocations: 0 / 1.432 GB, free: 6.504 MB / 1.154 GB Notification: Performance of matching and sorting (n=154): time 0.02646/1.203, allocations: 8.021 MB / 1.44 GB, free: 14.4 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/1.203, allocations: 72.72 kB / 1.44 GB, free: 14.32 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/1.214, allocations: 5.602 MB / 1.445 GB, free: 8.742 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0007866/1.214, allocations: 65.7 kB / 1.445 GB, free: 8.672 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.003206/1.218, allocations: 2.597 MB / 1.448 GB, free: 6.051 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.219, allocations: 0.5548 MB / 1.448 GB, free: 5.488 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002478/1.221, allocations: 0.7752 MB / 1.449 GB, free: 4.703 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001051/1.222, allocations: 309.1 kB / 1.449 GB, free: 4.398 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003673/1.225, allocations: 1.9 MB / 1.451 GB, free: 2.488 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00462/1.23, allocations: 3.155 MB / 1.454 GB, free: 14.77 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008001/1.238, allocations: 5.027 MB / 1.459 GB, free: 9.254 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.194e-05/1.238, allocations: 12 kB / 1.459 GB, free: 9.242 MB / 1.186 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01472/1.253, allocations: 6.8 MB / 1.466 GB, free: 2.418 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 8.698e-05/1.253, allocations: 45.7 kB / 1.466 GB, free: 2.367 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.285e-05/1.253, allocations: 36 kB / 1.466 GB, free: 2.332 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07756/1.331, allocations: 13.54 MB / 1.479 GB, free: 4.77 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00331/1.334, allocations: 0.7058 MB / 1.48 GB, free: 4.062 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/1.345, allocations: 5.486 MB / 1.485 GB, free: 14.5 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005188/1.35, allocations: 231.8 kB / 1.485 GB, free: 14.27 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008178/1.351, allocations: 203.8 kB / 1.486 GB, free: 14.07 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006576/1.357, allocations: 3.273 MB / 1.489 GB, free: 10.79 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004339/1.362, allocations: 3.106 MB / 1.492 GB, free: 7.117 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007725/1.369, allocations: 4.93 MB / 1.497 GB, free: 1.703 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.332e-05/1.37, allocations: 8 kB / 1.497 GB, free: 1.695 MB / 1.217 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01409/1.384, allocations: 6.517 MB / 1.503 GB, free: 11.15 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 7.33e-05/1.384, allocations: 46.7 kB / 1.503 GB, free: 11.1 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.704e-05/1.384, allocations: 36.19 kB / 1.503 GB, free: 11.06 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07707/1.461, allocations: 13.31 MB / 1.516 GB, free: 13.73 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003209/1.464, allocations: 0.6981 MB / 1.517 GB, free: 13.03 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01416/1.478, allocations: 8.912 MB / 1.525 GB, free: 3.801 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005135/1.484, allocations: 244.2 kB / 1.526 GB, free: 3.562 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007974/1.484, allocations: 199.8 kB / 1.526 GB, free: 3.367 MB / 1.248 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (317): * Single equations (assignments): 311 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001342/1.486, allocations: 375.2 kB / 1.526 GB, free: 2.992 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001907/1.488, allocations: 0.4938 MB / 1.527 GB, free: 2.492 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009898/1.498, allocations: 4.59 MB / 1.531 GB, free: 13.88 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/1.498, allocations: 16 kB / 1.531 GB, free: 13.86 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.498, allocations: 0 / 1.531 GB, free: 13.86 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01111/1.509, allocations: 5.664 MB / 1.537 GB, free: 7.934 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03152/1.54, allocations: 10.92 MB / 1.547 GB, free: 12.93 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.308e-05/1.54, allocations: 8.031 kB / 1.547 GB, free: 12.92 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002404/1.543, allocations: 371.5 kB / 1.548 GB, free: 12.56 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06749/1.61, allocations: 11.71 MB / 1.559 GB, free: 0.8281 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005405/1.611, allocations: 47.97 kB / 1.559 GB, free: 0.7812 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7186/2.33, allocations: 3.545 MB / 1.563 GB, free: 333.9 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/2.33, allocations: 1.641 kB / 1.563 GB, free: 333.9 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02311/2.353, allocations: 8.11 MB / 1.571 GB, free: 331.2 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003299/2.356, allocations: 0.9814 MB / 1.572 GB, free: 331 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/2.357, allocations: 32.91 kB / 1.572 GB, free: 330.9 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003288/2.361, allocations: 154.3 kB / 1.572 GB, free: 330.9 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/2.361, allocations: 107.6 kB / 1.572 GB, free: 330.9 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002828/2.361, allocations: 87.36 kB / 1.572 GB, free: 330.9 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.007083/2.368, allocations: 3.823 MB / 1.576 GB, free: 329.7 MB / 1.279 GB Notification: Performance of sort global known variables: time 4.71e-07/2.368, allocations: 0 / 1.576 GB, free: 329.7 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.008605/2.377, allocations: 2.792 MB / 1.578 GB, free: 329.5 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001644/2.379, allocations: 0.673 MB / 1.579 GB, free: 329.4 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01764/2.396, allocations: 7.956 MB / 1.587 GB, free: 326.5 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/2.396, allocations: 3.562 kB / 1.587 GB, free: 326.5 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.005477/2.402, allocations: 2.294 MB / 1.589 GB, free: 325.6 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01357/2.415, allocations: 2.915 MB / 1.592 GB, free: 324.6 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01802/2.434, allocations: 10.87 MB / 1.603 GB, free: 314.8 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002213/2.436, allocations: 3.396 MB / 1.606 GB, free: 311.5 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/2.438, allocations: 411.4 kB / 1.606 GB, free: 311.1 MB / 1.279 GB Notification: Performance of SimCode: time 1.022e-06/2.438, allocations: 0 / 1.606 GB, free: 311.1 MB / 1.279 GB Notification: Performance of Templates: time 0.1556/2.593, allocations: 174.9 MB / 1.777 GB, free: 136.7 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches