Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0008768/0.0008765, allocations: 90.83 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.007717/0.007717, allocations: 172.3 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.625/1.625, 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 8.1.4-maint.8.1.x/package.mo): time 1.781/1.781, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.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.000555/0.0005549, allocations: 19.47 kB / 0.6743 GB, free: 25.79 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2899, allocations: 116.3 MB / 0.7879 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08054/0.3705, allocations: 78.83 MB / 0.8648 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0353/0.4059, allocations: 22.49 MB / 0.8868 GB, free: 5.953 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004327/0.4102, allocations: 95.31 kB / 0.8869 GB, free: 5.859 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.004051/0.4143, allocations: 1.022 MB / 0.8879 GB, free: 4.832 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.009441/0.4238, allocations: 2.566 MB / 0.8904 GB, free: 2.258 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.4365, allocations: 3.224 MB / 0.8936 GB, free: 15.06 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.5176/0.9541, allocations: 20.7 MB / 0.9138 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009487/0.9636, allocations: 5.999 MB / 0.9196 GB, free: 17.56 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01455/0.9782, allocations: 4.663 MB / 0.9242 GB, free: 17.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01366/0.9919, allocations: 4.825 MB / 0.9289 GB, free: 16.71 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.002935/0.9949, allocations: 258 kB / 0.9291 GB, free: 16.71 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008556/1.003, allocations: 1.625 MB / 0.9307 GB, free: 16.71 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.004157/1.008, allocations: 1.26 MB / 0.932 GB, free: 16.49 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.009591/1.017, allocations: 2.892 MB / 0.9348 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01657/1.034, allocations: 8.65 MB / 0.9432 GB, free: 14.58 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/1.034, allocations: 7.812 kB / 0.9432 GB, free: 14.58 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/1.034, allocations: 0 / 0.9432 GB, free: 14.58 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0003718/1.034, allocations: 4 kB / 0.9432 GB, free: 14.57 MB / 0.7169 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.02057/1.055, allocations: 5.338 MB / 0.9484 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.187e-05/1.055, allocations: 9.219 kB / 0.9485 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007038/1.062, allocations: 0.8437 MB / 0.9493 GB, free: 11.79 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/1.075, allocations: 5.202 MB / 0.9544 GB, free: 10.82 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002742/1.075, allocations: 273 kB / 0.9546 GB, free: 10.81 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001683/1.077, allocations: 337.3 kB / 0.9549 GB, free: 10.81 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009909/1.087, allocations: 5.74 MB / 0.9605 GB, free: 9.781 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.259e-05/1.087, allocations: 12.72 kB / 0.9606 GB, free: 9.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005382/1.087, allocations: 143.8 kB / 0.9607 GB, free: 9.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.737e-05/1.087, allocations: 82.75 kB / 0.9608 GB, free: 9.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008324/1.096, allocations: 5.544 MB / 0.9662 GB, free: 8.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.04538/1.141, allocations: 23.92 MB / 0.9895 GB, free: 9.941 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006424/1.148, allocations: 2.779 MB / 0.9923 GB, free: 9.422 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003156/1.151, allocations: 1.908 MB / 0.9941 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01382/1.165, allocations: 7.071 MB / 1.001 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003095/1.168, allocations: 1.926 MB / 1.003 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005235/1.173, allocations: 1.252 MB / 1.004 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=155): time 6.933e-06/1.173, allocations: 0 / 1.004 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=155): time 0.02316/1.196, allocations: 7.613 MB / 1.012 GB, free: 9.492 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.196, allocations: 149.8 kB / 1.012 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01006/1.206, allocations: 4.852 MB / 1.016 GB, free: 4.473 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.001143/1.208, allocations: 65.7 kB / 1.017 GB, free: 4.402 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.002865/1.211, allocations: 2.44 MB / 1.019 GB, free: 1.949 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001126/1.212, allocations: 0.5484 MB / 1.019 GB, free: 1.406 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003808/1.212, allocations: 223.1 kB / 1.02 GB, free: 1.184 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001193/1.212, allocations: 309.1 kB / 1.02 GB, free: 0.8789 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00299/1.215, allocations: 1.69 MB / 1.022 GB, free: 15.19 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003549/1.219, allocations: 2.913 MB / 1.024 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00619/1.225, allocations: 4.609 MB / 1.029 GB, free: 6.801 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-05/1.225, allocations: 8 kB / 1.029 GB, free: 6.793 MB / 0.7637 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01158/1.237, allocations: 6.133 MB / 1.035 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.000813/1.237, allocations: 1.103 MB / 1.036 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.003e-05/1.237, allocations: 39.98 kB / 1.036 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07281/1.31, allocations: 11.9 MB / 1.048 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003187/1.314, allocations: 0.6638 MB / 1.048 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008682/1.322, allocations: 5.035 MB / 1.053 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006852/1.329, allocations: 331.7 kB / 1.054 GB, free: 13.36 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.33, allocations: 168 kB / 1.054 GB, free: 13.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/1.33, allocations: 7.938 kB / 1.054 GB, free: 13.19 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01018/1.34, allocations: 5.386 MB / 1.059 GB, free: 8.004 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/1.341, allocations: 32 kB / 1.059 GB, free: 7.973 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07132/1.412, allocations: 11.67 MB / 1.07 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003183/1.415, allocations: 0.65 MB / 1.071 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/1.427, allocations: 8.052 MB / 1.079 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/1.432, allocations: 319.8 kB / 1.079 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004611/1.433, allocations: 155.9 kB / 1.079 GB, free: 2.949 MB / 0.8106 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.003445/1.436, allocations: 1.552 MB / 1.081 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/1.437, allocations: 458.3 kB / 1.081 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008573/1.446, allocations: 4.842 MB / 1.086 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.589e-05/1.446, allocations: 16 kB / 1.086 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.446, allocations: 0 / 1.086 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01916/1.465, allocations: 6.988 MB / 1.093 GB, free: 4.934 MB / 0.8262 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.03318/1.498, allocations: 13.15 MB / 1.106 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/1.498, allocations: 0 / 1.106 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/1.501, allocations: 366.7 kB / 1.106 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06839/1.569, allocations: 11.91 MB / 1.118 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007641/1.57, allocations: 43.97 kB / 1.118 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007339/1.577, allocations: 4.374 MB / 1.122 GB, free: 7.055 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/1.578, allocations: 4.359 kB / 1.122 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02774/1.605, allocations: 9.699 MB / 1.131 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004304/1.61, allocations: 1.069 MB / 1.133 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001369/1.611, allocations: 28 kB / 1.133 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004012/1.615, allocations: 275.2 kB / 1.133 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004026/1.615, allocations: 99.8 kB / 1.133 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002791/1.616, allocations: 83.86 kB / 1.133 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.006022/1.622, allocations: 3.313 MB / 1.136 GB, free: 8.492 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.71e-07/1.622, allocations: 0 / 1.136 GB, free: 8.492 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.01106/1.633, allocations: 2.694 MB / 1.139 GB, free: 5.793 MB / 0.8731 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.001746/1.635, allocations: 0.5383 MB / 1.139 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01774/1.652, allocations: 7.597 MB / 1.147 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.652, allocations: 4.891 kB / 1.147 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.006012/1.659, allocations: 2.521 MB / 1.149 GB, free: 11.34 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01759/1.676, allocations: 2.744 MB / 1.152 GB, free: 8.637 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02852/1.705, allocations: 11.81 MB / 1.163 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00374/1.709, allocations: 3.213 MB / 1.167 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0072/1.716, allocations: 1.684 MB / 1.168 GB, free: 7.863 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/1.717, allocations: 343.3 kB / 1.169 GB, free: 7.527 MB / 0.9044 GB Notification: Performance of SimCode: time 1.323e-06/1.717, allocations: 0 / 1.169 GB, free: 7.527 MB / 0.9044 GB Notification: Performance of Templates: time 0.7063/2.423, allocations: 108.8 MB / 1.275 GB, free: 379.5 MB / 0.9981 GB make -j1 -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) Environment - environmentSimulation: