Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.0007554/0.0007552, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004926/0.004926, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.576/1.576, allocations: 252 MB / 0.5105 GB, free: 4.676 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005344/0.0005344, allocations: 16 kB / 0.6249 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5304/0.531, allocations: 106.3 MB / 0.7287 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07456/0.6056, allocations: 78.83 MB / 0.8057 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03285/0.6385, allocations: 22.49 MB / 0.8277 GB, free: 5.648 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00507/0.6436, allocations: 95.25 kB / 0.8277 GB, free: 5.555 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.004387/0.648, allocations: 1.018 MB / 0.8287 GB, free: 4.531 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.009553/0.6576, allocations: 2.569 MB / 0.8312 GB, free: 1.953 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01067/0.6683, allocations: 3.204 MB / 0.8344 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.02232/0.6906, allocations: 20.7 MB / 0.8546 GB, free: 10.02 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009252/0.6999, allocations: 6.015 MB / 0.8605 GB, free: 3.914 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01195/0.7119, allocations: 4.661 MB / 0.865 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.7228, allocations: 4.823 MB / 0.8697 GB, free: 10.39 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.002179/0.725, allocations: 256 kB / 0.87 GB, free: 10.14 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008189/0.7333, allocations: 1.626 MB / 0.8716 GB, free: 8.512 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00374/0.7371, allocations: 1.264 MB / 0.8728 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.008699/0.7458, allocations: 2.885 MB / 0.8756 GB, free: 4.336 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01448/0.7603, allocations: 8.656 MB / 0.8841 GB, free: 11.65 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.7604, allocations: 0 / 0.8841 GB, free: 11.65 MB / 0.7012 GB Notification: Performance of FrontEnd: time 3.597e-06/0.7604, allocations: 0 / 0.8841 GB, free: 11.65 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0003709/0.7608, allocations: 0 / 0.8841 GB, free: 11.65 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.01421/0.775, allocations: 5.341 MB / 0.8893 GB, free: 6.227 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.775, allocations: 12.03 kB / 0.8893 GB, free: 6.215 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004842/0.7799, allocations: 0.8443 MB / 0.8901 GB, free: 5.363 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/0.793, allocations: 5.207 MB / 0.8952 GB, free: 76 kB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003594/0.7935, allocations: 263.2 kB / 0.8955 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/0.7951, allocations: 340 kB / 0.8958 GB, free: 15.48 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01531/0.8105, allocations: 5.739 MB / 0.9014 GB, free: 9.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.202e-05/0.8106, allocations: 7.938 kB / 0.9014 GB, free: 9.488 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005729/0.8112, allocations: 155.9 kB / 0.9015 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-05/0.8113, allocations: 80 kB / 0.9016 GB, free: 9.258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0116/0.8229, allocations: 5.542 MB / 0.907 GB, free: 3.703 MB / 0.7169 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.5386/1.362, allocations: 23.91 MB / 0.9304 GB, free: 154.9 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005768/1.367, allocations: 2.767 MB / 0.9331 GB, free: 153.5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002919/1.37, allocations: 1.905 MB / 0.9349 GB, free: 152.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/1.384, allocations: 7.07 MB / 0.9418 GB, free: 147.3 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003026/1.387, allocations: 1.926 MB / 0.9437 GB, free: 146.1 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00483/1.392, allocations: 1.25 MB / 0.9449 GB, free: 145.6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=155): time 1.232e-05/1.392, allocations: 0.7812 kB / 0.945 GB, free: 145.6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=155): time 0.02061/1.412, allocations: 7.614 MB / 0.9524 GB, free: 139.9 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/1.413, allocations: 149.8 kB / 0.9525 GB, free: 139.8 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009243/1.422, allocations: 4.844 MB / 0.9573 GB, free: 134.9 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0007548/1.423, allocations: 69.7 kB / 0.9573 GB, free: 134.8 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.002476/1.425, allocations: 2.442 MB / 0.9597 GB, free: 132.4 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.001279/1.426, allocations: 0.5556 MB / 0.9603 GB, free: 131.8 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007894/1.427, allocations: 230.8 kB / 0.9605 GB, free: 131.6 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.278e-05/1.427, allocations: 301.1 kB / 0.9608 GB, free: 131.3 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002981/1.43, allocations: 1.688 MB / 0.9624 GB, free: 129.6 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003547/1.434, allocations: 2.92 MB / 0.9653 GB, free: 126.1 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006211/1.44, allocations: 4.613 MB / 0.9698 GB, free: 121.1 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.794e-05/1.44, allocations: 8 kB / 0.9698 GB, free: 121.1 MB / 0.7169 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01131/1.451, allocations: 6.128 MB / 0.9758 GB, free: 114.9 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005681/1.452, allocations: 1.102 MB / 0.9768 GB, free: 113.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-05/1.452, allocations: 32 kB / 0.9769 GB, free: 113.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07054/1.523, allocations: 11.9 MB / 0.9885 GB, free: 101.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003048/1.526, allocations: 0.6591 MB / 0.9891 GB, free: 100.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007615/1.533, allocations: 5.033 MB / 0.994 GB, free: 95.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006143/1.54, allocations: 332.4 kB / 0.9944 GB, free: 95.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006961/1.54, allocations: 163.9 kB / 0.9945 GB, free: 95.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.54, allocations: 4 kB / 0.9945 GB, free: 95.18 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009317/1.55, allocations: 5.397 MB / 0.9998 GB, free: 89.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.172e-05/1.55, allocations: 32 kB / 0.9998 GB, free: 89.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07021/1.62, allocations: 11.67 MB / 1.011 GB, free: 78.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/1.623, allocations: 0.6474 MB / 1.012 GB, free: 77.45 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/1.634, allocations: 8.044 MB / 1.02 GB, free: 69.11 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006106/1.641, allocations: 323.8 kB / 1.02 GB, free: 68.79 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000805/1.641, allocations: 155.9 kB / 1.02 GB, free: 68.64 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (287): * Single equations (assignments): 280 * Array equations: 2 * 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,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.003868/1.645, allocations: 1.535 MB / 1.022 GB, free: 67.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/1.647, allocations: 462.3 kB / 1.022 GB, free: 66.64 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008444/1.656, allocations: 4.85 MB / 1.027 GB, free: 61.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.139e-05/1.656, allocations: 16 kB / 1.027 GB, free: 61.76 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/1.656, allocations: 0 / 1.027 GB, free: 61.76 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01779/1.674, allocations: 6.984 MB / 1.034 GB, free: 54.51 MB / 0.7169 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.03461/1.708, allocations: 13.15 MB / 1.047 GB, free: 41.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/1.708, allocations: 4 kB / 1.047 GB, free: 41.29 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.711, allocations: 375.5 kB / 1.047 GB, free: 40.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06681/1.778, allocations: 11.89 MB / 1.058 GB, free: 29.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007394/1.778, allocations: 47.97 kB / 1.059 GB, free: 29.03 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006365/1.785, allocations: 4.362 MB / 1.063 GB, free: 24.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.785, allocations: 4.062 kB / 1.063 GB, free: 24.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02428/1.809, allocations: 9.697 MB / 1.072 GB, free: 14.85 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003535/1.813, allocations: 1.061 MB / 1.073 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001583/1.814, allocations: 28 kB / 1.073 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004366/1.819, allocations: 275.2 kB / 1.074 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004849/1.819, allocations: 101.2 kB / 1.074 GB, free: 13.37 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003908/1.82, allocations: 79.92 kB / 1.074 GB, free: 13.29 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.006414/1.826, allocations: 3.317 MB / 1.077 GB, free: 9.988 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.92e-07/1.826, allocations: 0 / 1.077 GB, free: 9.988 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.01142/1.837, allocations: 2.703 MB / 1.08 GB, free: 7.316 MB / 0.7169 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.x[1],val.filter.x[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 (127): * Single equations (assignments): 118 * 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 {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002033/1.839, allocations: 0.5525 MB / 1.08 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01685/1.856, allocations: 7.578 MB / 1.088 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.856, allocations: 4.828 kB / 1.088 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.007194/1.864, allocations: 2.516 MB / 1.09 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01576/1.879, allocations: 2.74 MB / 1.093 GB, free: 9.973 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/1.898, allocations: 11.83 MB / 1.104 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002856/1.901, allocations: 3.213 MB / 1.107 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.006673/1.908, allocations: 1.681 MB / 1.109 GB, free: 9.191 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.909, allocations: 351.2 kB / 1.109 GB, free: 8.848 MB / 0.7481 GB Notification: Performance of SimCode: time 9.82e-07/1.909, allocations: 0 / 1.109 GB, free: 8.848 MB / 0.7481 GB Notification: Performance of Templates: time 0.1703/2.079, allocations: 108.8 MB / 1.216 GB, free: 13.1 MB / 0.8575 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) Environment - environmentSimulation: