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.001257/0.001257, allocations: 109 kB / 16.41 MB, free: 6.496 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.001236/0.001236, allocations: 187 kB / 17.34 MB, free: 5.762 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.659/2.659, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 59.91 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8727/0.8741, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08676/0.9609, allocations: 81.02 MB / 1.288 GB, free: 12.32 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.03461/0.9956, allocations: 21.04 MB / 1.308 GB, free: 7.223 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004623/1, allocations: 107.4 kB / 1.308 GB, free: 7.117 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.006727/1.007, allocations: 1.963 MB / 1.31 GB, free: 5.152 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.009452/1.017, allocations: 2.945 MB / 1.313 GB, free: 2.195 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.007274/1.024, allocations: 2.502 MB / 1.315 GB, free: 15.71 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.02547/1.049, allocations: 18.43 MB / 1.333 GB, free: 13.23 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01145/1.061, allocations: 7.241 MB / 1.34 GB, free: 5.895 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01278/1.074, allocations: 5.957 MB / 1.346 GB, free: 15.95 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009577/1.083, allocations: 5.121 MB / 1.351 GB, free: 10.81 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.002756/1.086, allocations: 0.5508 MB / 1.352 GB, free: 10.26 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007784/1.094, allocations: 1.978 MB / 1.354 GB, free: 8.281 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.003678/1.098, allocations: 1.76 MB / 1.355 GB, free: 6.516 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.008323/1.106, allocations: 3.48 MB / 1.359 GB, free: 3.02 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.01622/1.122, allocations: 9.671 MB / 1.368 GB, free: 9.316 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/1.122, allocations: 0 / 1.368 GB, free: 9.316 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.954e-06/1.122, allocations: 0 / 1.368 GB, free: 9.316 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0003774/1.123, allocations: 0 / 1.368 GB, free: 9.316 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.01961/1.142, allocations: 6.908 MB / 1.375 GB, free: 2.312 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/1.142, allocations: 12.03 kB / 1.375 GB, free: 2.301 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005904/1.148, allocations: 0.945 MB / 1.376 GB, free: 1.348 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01534/1.164, allocations: 6.412 MB / 1.382 GB, free: 10.86 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003369/1.164, allocations: 266.6 kB / 1.383 GB, free: 10.6 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001527/1.166, allocations: 343.9 kB / 1.383 GB, free: 10.26 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01509/1.181, allocations: 5.735 MB / 1.388 GB, free: 4.277 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/1.181, allocations: 7.938 kB / 1.388 GB, free: 4.27 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001268/1.182, allocations: 151.9 kB / 1.389 GB, free: 4.121 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/1.182, allocations: 114 kB / 1.389 GB, free: 4.008 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/1.196, allocations: 5.562 MB / 1.394 GB, free: 14.43 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.04471/1.24, allocations: 24.08 MB / 1.418 GB, free: 5.273 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005838/1.246, allocations: 2.752 MB / 1.42 GB, free: 2.527 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003423/1.25, allocations: 1.913 MB / 1.422 GB, free: 0.6094 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/1.265, allocations: 7.163 MB / 1.429 GB, free: 9.129 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003837/1.269, allocations: 1.918 MB / 1.431 GB, free: 7.203 MB / 1.154 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004132/1.273, allocations: 0.7195 MB / 1.432 GB, free: 6.48 MB / 1.154 GB Notification: Performance of pre-optimization done (n=154): time 1.075e-05/1.273, allocations: 4 kB / 1.432 GB, free: 6.477 MB / 1.154 GB Notification: Performance of matching and sorting (n=154): time 0.02837/1.302, allocations: 8.018 MB / 1.44 GB, free: 14.38 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/1.302, allocations: 68.72 kB / 1.44 GB, free: 14.3 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01266/1.314, allocations: 5.606 MB / 1.445 GB, free: 8.719 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.000924/1.315, allocations: 65.7 kB / 1.445 GB, free: 8.648 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.003579/1.319, allocations: 2.597 MB / 1.448 GB, free: 6.027 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.00133/1.32, allocations: 0.5626 MB / 1.448 GB, free: 5.457 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002564/1.323, allocations: 0.7635 MB / 1.449 GB, free: 4.684 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001018/1.323, allocations: 305.1 kB / 1.449 GB, free: 4.383 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/1.327, allocations: 1.9 MB / 1.451 GB, free: 2.473 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004801/1.331, allocations: 3.163 MB / 1.454 GB, free: 14.75 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008596/1.34, allocations: 5.027 MB / 1.459 GB, free: 9.23 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-05/1.34, allocations: 8 kB / 1.459 GB, free: 9.223 MB / 1.186 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01629/1.357, allocations: 6.789 MB / 1.466 GB, free: 2.41 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/1.357, allocations: 52.2 kB / 1.466 GB, free: 2.355 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.578e-05/1.357, allocations: 39.98 kB / 1.466 GB, free: 2.316 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08302/1.44, allocations: 13.54 MB / 1.479 GB, free: 4.758 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/1.443, allocations: 0.7058 MB / 1.48 GB, free: 4.051 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.454, allocations: 5.483 MB / 1.485 GB, free: 14.49 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005252/1.459, allocations: 232 kB / 1.485 GB, free: 14.26 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000782/1.46, allocations: 207.8 kB / 1.486 GB, free: 14.06 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006624/1.467, allocations: 3.281 MB / 1.489 GB, free: 10.77 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004675/1.472, allocations: 3.102 MB / 1.492 GB, free: 7.102 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007826/1.479, allocations: 4.93 MB / 1.497 GB, free: 1.688 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.666e-05/1.479, allocations: 12 kB / 1.497 GB, free: 1.676 MB / 1.217 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01376/1.493, allocations: 6.522 MB / 1.503 GB, free: 11.12 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 7.294e-05/1.493, allocations: 49.7 kB / 1.503 GB, free: 11.07 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-05/1.493, allocations: 36 kB / 1.503 GB, free: 11.03 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08241/1.576, allocations: 13.3 MB / 1.516 GB, free: 13.71 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003155/1.579, allocations: 0.7059 MB / 1.517 GB, free: 13.01 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/1.593, allocations: 8.897 MB / 1.525 GB, free: 3.789 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004983/1.598, allocations: 252.2 kB / 1.526 GB, free: 3.543 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007224/1.599, allocations: 195.8 kB / 1.526 GB, free: 3.352 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.001232/1.6, allocations: 375.2 kB / 1.526 GB, free: 2.977 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001858/1.602, allocations: 0.4978 MB / 1.527 GB, free: 2.473 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009735/1.612, allocations: 4.583 MB / 1.531 GB, free: 13.86 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.81e-05/1.612, allocations: 16 kB / 1.531 GB, free: 13.85 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.612, allocations: 4 kB / 1.531 GB, free: 13.84 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01173/1.624, allocations: 5.668 MB / 1.537 GB, free: 7.91 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03052/1.654, allocations: 10.92 MB / 1.547 GB, free: 12.9 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/1.654, allocations: 0 / 1.547 GB, free: 12.9 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002637/1.657, allocations: 371.6 kB / 1.548 GB, free: 12.54 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0736/1.731, allocations: 11.71 MB / 1.559 GB, free: 0.8164 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005076/1.731, allocations: 47.97 kB / 1.559 GB, free: 0.7695 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7401/2.471, allocations: 3.549 MB / 1.563 GB, free: 333.9 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/2.471, allocations: 1.141 kB / 1.563 GB, free: 333.9 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02594/2.497, allocations: 8.113 MB / 1.571 GB, free: 331.3 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003411/2.501, allocations: 0.9844 MB / 1.572 GB, free: 331 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/2.502, allocations: 34.12 kB / 1.572 GB, free: 331 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003838/2.506, allocations: 150.2 kB / 1.572 GB, free: 331 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/2.506, allocations: 110.7 kB / 1.572 GB, free: 330.9 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003093/2.507, allocations: 91.97 kB / 1.572 GB, free: 330.9 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.007405/2.514, allocations: 3.825 MB / 1.576 GB, free: 329.7 MB / 1.279 GB Notification: Performance of sort global known variables: time 5.31e-07/2.514, allocations: 0 / 1.576 GB, free: 329.7 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.009631/2.524, allocations: 2.787 MB / 1.578 GB, free: 329.6 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.001652/2.525, allocations: 0.666 MB / 1.579 GB, free: 329.5 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01856/2.544, allocations: 7.953 MB / 1.587 GB, free: 326.5 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.544, allocations: 3.531 kB / 1.587 GB, free: 326.5 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.005673/2.55, 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.01407/2.564, allocations: 2.92 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.01896/2.583, allocations: 10.87 MB / 1.603 GB, free: 314.9 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002442/2.585, 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.001809/2.587, allocations: 406.6 kB / 1.606 GB, free: 311.1 MB / 1.279 GB Notification: Performance of SimCode: time 1.022e-06/2.587, allocations: 0 / 1.606 GB, free: 311.1 MB / 1.279 GB Notification: Performance of Templates: time 0.1595/2.747, allocations: 174.1 MB / 1.776 GB, free: 137.4 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