Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json 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/IBPSA 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 175.7 kB / 16.76 MB, free: 4.91 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.4552/0.4552, allocations: 86.27 MB / 103.8 MB, free: 14.56 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 348.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009461/0.0009461, allocations: 99.97 kB / 420.2 MB, free: 9.637 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003944/0.0003944, allocations: 15.98 kB / 0.4901 GB, free: 8.004 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3626, allocations: 71.02 MB / 0.5594 GB, free: 43.68 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6554/1.018, allocations: 369.1 MB / 0.9199 GB, free: 7.312 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/1.018, allocations: 96 kB / 0.92 GB, free: 7.266 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.05/6.069, allocations: 1.467 GB / 2.387 GB, free: 73.54 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.525e-06/6.069, allocations: 0 / 2.387 GB, free: 73.54 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0008754/6.069, allocations: 157.5 kB / 2.387 GB, free: 73.51 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01759/6.087, allocations: 5.79 MB / 2.393 GB, free: 71.35 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/6.087, allocations: 13.34 kB / 2.393 GB, free: 71.35 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004673/6.092, allocations: 0.8002 MB / 2.394 GB, free: 71.05 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01702/6.109, allocations: 6.599 MB / 2.4 GB, free: 69.99 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/6.109, allocations: 265.1 kB / 2.4 GB, free: 69.98 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001309/6.111, allocations: 350 kB / 2.401 GB, free: 69.98 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/6.123, allocations: 5.369 MB / 2.406 GB, free: 69.31 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/6.123, allocations: 14.19 kB / 2.406 GB, free: 69.3 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001428/6.124, allocations: 142.2 kB / 2.406 GB, free: 69.3 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/6.125, allocations: 122.2 kB / 2.406 GB, free: 69.3 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009766/6.134, allocations: 5.068 MB / 2.411 GB, free: 69.27 MB / 0.6355 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.03559/6.17, allocations: 22.66 MB / 2.433 GB, free: 59.32 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004285/6.174, allocations: 2.568 MB / 2.436 GB, free: 59.28 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00268/6.177, allocations: 1.83 MB / 2.437 GB, free: 59.26 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01456/6.192, allocations: 7.054 MB / 2.444 GB, free: 57 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002858/6.194, allocations: 1.851 MB / 2.446 GB, free: 56.93 MB / 0.6355 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006664/6.201, allocations: 2.026 MB / 2.448 GB, free: 56.82 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=158): time 1.557e-05/6.201, allocations: 2.297 kB / 2.448 GB, free: 56.82 MB / 0.6355 GB Notification: Performance of matching and sorting (n=158): time 0.01906/6.22, allocations: 7.005 MB / 2.455 GB, free: 56.19 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/6.22, allocations: 80.64 kB / 2.455 GB, free: 56.12 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009908/6.23, allocations: 4.779 MB / 2.46 GB, free: 55.77 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0006457/6.231, allocations: 66.17 kB / 2.46 GB, free: 55.74 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.002574/6.234, allocations: 2.425 MB / 2.462 GB, free: 54.96 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009797/6.235, allocations: 0.5617 MB / 2.463 GB, free: 54.61 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003924/6.235, allocations: 54.25 kB / 2.463 GB, free: 54.61 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002026/6.235, allocations: 415.1 kB / 2.463 GB, free: 54.3 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002543/6.238, allocations: 1.516 MB / 2.465 GB, free: 54.3 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00321/6.241, allocations: 2.812 MB / 2.467 GB, free: 52.75 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/6.247, allocations: 4.275 MB / 2.472 GB, free: 51.52 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.5e-05/6.247, allocations: 11.53 kB / 2.472 GB, free: 51.52 MB / 0.6355 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01174/6.258, allocations: 5.62 MB / 2.477 GB, free: 51.15 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008889/6.259, allocations: 1.093 MB / 2.478 GB, free: 49.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.597e-05/6.259, allocations: 32.62 kB / 2.478 GB, free: 49.85 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06284/6.322, allocations: 11.57 MB / 2.489 GB, free: 49.17 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003007/6.325, allocations: 0.6485 MB / 2.49 GB, free: 49.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007279/6.333, allocations: 4.729 MB / 2.495 GB, free: 47.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/6.338, allocations: 357.5 kB / 2.495 GB, free: 47.51 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000684/6.339, allocations: 156 kB / 2.495 GB, free: 47.51 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/6.339, allocations: 3.844 kB / 2.495 GB, free: 47.51 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008548/6.348, allocations: 5.005 MB / 2.5 GB, free: 47.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.54e-05/6.348, allocations: 35.44 kB / 2.5 GB, free: 47.25 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06309/6.411, allocations: 11.38 MB / 2.511 GB, free: 46.5 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00284/6.414, allocations: 0.638 MB / 2.512 GB, free: 46.45 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009977/6.424, allocations: 7.723 MB / 2.519 GB, free: 43.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004948/6.429, allocations: 333 kB / 2.52 GB, free: 43.05 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005992/6.429, allocations: 148.6 kB / 2.52 GB, free: 43.05 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 280 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.003447/6.433, allocations: 1.552 MB / 2.521 GB, free: 42.8 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/6.434, allocations: 457.9 kB / 2.522 GB, free: 42.56 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008013/6.442, allocations: 4.583 MB / 2.526 GB, free: 41.84 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-05/6.442, allocations: 26.94 kB / 2.526 GB, free: 41.83 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/6.442, allocations: 0 / 2.526 GB, free: 41.83 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009796/6.452, allocations: 6.229 MB / 2.532 GB, free: 37.51 MB / 0.6355 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 postOpt removeSimpleEquations (simulation): time 0.02542/6.478, allocations: 12.55 MB / 2.545 GB, free: 27.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/6.478, allocations: 0 / 2.545 GB, free: 27.57 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/6.48, allocations: 372.4 kB / 2.545 GB, free: 27.28 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05963/6.539, allocations: 11.63 MB / 2.556 GB, free: 18.91 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004795/6.54, allocations: 47.53 kB / 2.556 GB, free: 18.87 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005672/6.545, allocations: 4.128 MB / 2.56 GB, free: 15.25 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/6.545, allocations: 0 / 2.56 GB, free: 15.25 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0211/6.567, allocations: 9.282 MB / 2.57 GB, free: 7.672 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004452/6.571, allocations: 1.05 MB / 2.571 GB, free: 6.746 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002392/6.573, allocations: 32 kB / 2.571 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005902/6.579, allocations: 294.1 kB / 2.571 GB, free: 6.508 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006218/6.58, allocations: 102.3 kB / 2.571 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005915/6.581, allocations: 80.16 kB / 2.571 GB, free: 6.391 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.007486/6.588, allocations: 3.263 MB / 2.574 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.81e-07/6.588, allocations: 0 / 2.574 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01189/6.6, allocations: 2.743 MB / 2.577 GB, free: 1.051 MB / 0.6355 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 (130): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002669/6.603, allocations: 1.176 MB / 2.578 GB, free: 112 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0175/6.62, allocations: 7.314 MB / 2.585 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/6.62, allocations: 448 / 2.585 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.006285/6.627, allocations: 2.488 MB / 2.588 GB, free: 6.418 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01669/6.643, allocations: 2.677 MB / 2.59 GB, free: 3.863 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4613/7.105, allocations: 10.97 MB / 2.601 GB, free: 86.13 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0027/7.107, allocations: 3.204 MB / 2.604 GB, free: 85.36 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.006325/7.114, allocations: 1.703 MB / 2.606 GB, free: 85.32 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/7.115, allocations: 352.7 kB / 2.606 GB, free: 85.32 MB / 0.6511 GB Notification: Performance of SimCode: time 1.593e-06/7.115, allocations: 0 / 2.606 GB, free: 85.32 MB / 0.6511 GB Notification: Performance of Templates: time 0.1606/7.276, allocations: 112.8 MB / 2.716 GB, free: 76.2 MB / 0.6511 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)