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.00111/0.00111, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001263/0.001263, allocations: 189.5 kB / 16.25 MB, free: 6.641 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.617/1.617, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.809/1.809, allocations: 292.2 MB / 0.5485 GB, free: 13.62 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.001384/0.001384, allocations: 71.83 kB / 0.671 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2626, allocations: 114.5 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07761/0.3403, allocations: 80.12 MB / 0.8611 GB, free: 13.53 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03523/0.3756, allocations: 22.23 MB / 0.8828 GB, free: 7.254 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006588/0.3822, allocations: 95.31 kB / 0.8829 GB, free: 7.16 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.004874/0.3871, allocations: 1.049 MB / 0.8839 GB, free: 6.105 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.009493/0.3967, allocations: 2.57 MB / 0.8864 GB, free: 3.527 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.009954/0.4067, allocations: 3.468 MB / 0.8898 GB, free: 84 kB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.01703/0.4237, allocations: 15.56 MB / 0.905 GB, free: 484 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01004/0.4338, allocations: 7.147 MB / 0.912 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01624/0.4501, allocations: 5.914 MB / 0.9178 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.5946/1.045, allocations: 5.192 MB / 0.9228 GB, free: 29.09 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.003783/1.049, allocations: 0.5358 MB / 0.9233 GB, free: 29.09 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01051/1.059, allocations: 1.934 MB / 0.9252 GB, free: 29.09 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.004965/1.064, allocations: 1.623 MB / 0.9268 GB, free: 29.09 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.01115/1.075, allocations: 3.281 MB / 0.93 GB, free: 29.09 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.02073/1.096, allocations: 9.062 MB / 0.9389 GB, free: 28.26 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/1.096, allocations: 1.5 kB / 0.9389 GB, free: 28.26 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/1.096, allocations: 0.5625 kB / 0.9389 GB, free: 28.26 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0004034/1.096, allocations: 0 / 0.9389 GB, free: 28.26 MB / 0.7325 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.02768/1.124, allocations: 6.476 MB / 0.9452 GB, free: 25.64 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/1.124, allocations: 10.28 kB / 0.9452 GB, free: 25.64 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007084/1.131, allocations: 0.822 MB / 0.946 GB, free: 25.33 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01585/1.147, allocations: 5.198 MB / 0.9511 GB, free: 24.38 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000404/1.148, allocations: 263.3 kB / 0.9513 GB, free: 24.37 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002802/1.15, allocations: 347.5 kB / 0.9517 GB, free: 24.37 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01933/1.17, allocations: 5.723 MB / 0.9573 GB, free: 23.67 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/1.17, allocations: 10.22 kB / 0.9573 GB, free: 23.67 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001148/1.171, allocations: 146 kB / 0.9574 GB, free: 23.67 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.697e-05/1.171, allocations: 82.03 kB / 0.9575 GB, free: 23.67 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01463/1.186, allocations: 5.519 MB / 0.9629 GB, free: 23.64 MB / 0.7325 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.05229/1.238, allocations: 23.75 MB / 0.9861 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005644/1.244, allocations: 2.734 MB / 0.9887 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003295/1.247, allocations: 1.89 MB / 0.9906 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01708/1.264, allocations: 7.034 MB / 0.9975 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004066/1.268, allocations: 1.922 MB / 0.9993 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006396/1.275, allocations: 1.037 MB / 1 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=155): time 1.958e-05/1.275, allocations: 4 kB / 1 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of matching and sorting (n=155): time 0.02822/1.303, allocations: 8.07 MB / 1.008 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/1.303, allocations: 144.9 kB / 1.008 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01235/1.316, allocations: 4.847 MB / 1.013 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.001266/1.317, allocations: 73.42 kB / 1.013 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.003678/1.321, allocations: 2.442 MB / 1.016 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001837/1.323, allocations: 0.5478 MB / 1.016 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003316/1.326, allocations: 0.6774 MB / 1.017 GB, free: 9.723 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001058/1.326, allocations: 301.1 kB / 1.017 GB, free: 9.426 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00366/1.33, allocations: 1.741 MB / 1.019 GB, free: 8.5 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004642/1.334, allocations: 2.946 MB / 1.022 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007989/1.342, allocations: 4.712 MB / 1.026 GB, free: 2.238 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-05/1.342, allocations: 16 kB / 1.026 GB, free: 2.223 MB / 0.7481 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01765/1.36, allocations: 6.49 MB / 1.033 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/1.36, allocations: 45.7 kB / 1.033 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-05/1.36, allocations: 39.98 kB / 1.033 GB, free: 11.84 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07944/1.44, allocations: 13.66 MB / 1.046 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003442/1.443, allocations: 0.6417 MB / 1.047 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/1.454, allocations: 5.536 MB / 1.052 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007309/1.462, allocations: 327.7 kB / 1.052 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/1.463, allocations: 195.8 kB / 1.053 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007762/1.47, allocations: 2.979 MB / 1.055 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004885/1.475, allocations: 2.882 MB / 1.058 GB, free: 1.152 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007936/1.483, allocations: 4.576 MB / 1.063 GB, free: 12.25 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.537e-05/1.483, allocations: 12 kB / 1.063 GB, free: 12.23 MB / 0.795 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01815/1.502, allocations: 6.695 MB / 1.069 GB, free: 5.719 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-05/1.502, allocations: 49.7 kB / 1.069 GB, free: 5.664 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/1.502, allocations: 35.98 kB / 1.069 GB, free: 5.629 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07876/1.581, allocations: 13.42 MB / 1.082 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003451/1.584, allocations: 0.6442 MB / 1.083 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/1.599, allocations: 8.974 MB / 1.092 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0071/1.606, allocations: 332.4 kB / 1.092 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008274/1.607, allocations: 191.8 kB / 1.092 GB, free: 13.93 MB / 0.8262 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 (284): * Single equations (assignments): 277 * 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 {(12,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001218/1.608, allocations: 360.8 kB / 1.093 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002064/1.61, allocations: 466.3 kB / 1.093 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/1.622, allocations: 5.028 MB / 1.098 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-05/1.622, allocations: 28.03 kB / 1.098 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/1.622, allocations: 5.125 kB / 1.098 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007883/1.63, allocations: 5.218 MB / 1.103 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0315/1.661, allocations: 11.02 MB / 1.114 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/1.661, allocations: 4 kB / 1.114 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00265/1.664, allocations: 371.9 kB / 1.114 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06631/1.73, allocations: 11.77 MB / 1.126 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009535/1.731, allocations: 47.97 kB / 1.126 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006392/1.737, allocations: 3.561 MB / 1.129 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.738, allocations: 0 / 1.129 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/1.751, allocations: 7.351 MB / 1.136 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004144/1.755, allocations: 0.913 MB / 1.137 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002116/1.757, allocations: 32 kB / 1.137 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005251/1.763, allocations: 247.2 kB / 1.138 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005876/1.763, allocations: 109.8 kB / 1.138 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003965/1.764, allocations: 95.86 kB / 1.138 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.007583/1.771, allocations: 3.317 MB / 1.141 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.954e-06/1.771, allocations: 0 / 1.141 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.01565/1.787, allocations: 2.698 MB / 1.144 GB, free: 9.172 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 (136): * Single equations (assignments): 127 * 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 {(12,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002815/1.79, allocations: 0.5518 MB / 1.144 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.02276/1.813, allocations: 8.599 MB / 1.153 GB, free: 236 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/1.813, allocations: 0.6562 kB / 1.153 GB, free: 232 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.005949/1.819, allocations: 2.299 MB / 1.155 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0174/1.836, allocations: 2.742 MB / 1.158 GB, free: 11.29 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02263/1.859, allocations: 11.75 MB / 1.169 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003053/1.862, allocations: 3.229 MB / 1.172 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.007175/1.869, allocations: 1.653 MB / 1.174 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/1.871, allocations: 347.3 kB / 1.174 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of SimCode: time 1.974e-06/1.871, allocations: 0 / 1.174 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of Templates: time 0.1915/2.062, allocations: 115.5 MB / 1.287 GB, free: 8.488 MB / 1.014 GB make -j1 -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (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)