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.00145/0.00145, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 199.9 kB / 16.64 MB, free: 6.449 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.561/1.561, allocations: 205.1 MB / 222.5 MB, free: 4.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.829/1.829, allocations: 292.3 MB / 0.549 GB, free: 12.67 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.001415/0.001415, allocations: 74.02 kB / 0.6722 GB, free: 26.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2725, allocations: 114.6 MB / 0.7841 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.0828/0.3553, allocations: 80.85 MB / 0.8631 GB, free: 11.55 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03347/0.3888, allocations: 22.28 MB / 0.8848 GB, free: 5.223 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004144/0.393, allocations: 111.3 kB / 0.8849 GB, free: 5.113 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.00371/0.3968, allocations: 1.196 MB / 0.8861 GB, free: 3.91 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.008882/0.4057, allocations: 2.762 MB / 0.8888 GB, free: 1.137 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.01148/0.4172, allocations: 3.81 MB / 0.8925 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.5187/0.9359, allocations: 15.46 MB / 0.9076 GB, free: 19.54 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01533/0.9513, allocations: 7.203 MB / 0.9147 GB, free: 18.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01613/0.9675, allocations: 5.857 MB / 0.9204 GB, free: 18.36 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01293/0.9805, allocations: 5.039 MB / 0.9253 GB, free: 17.58 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.004022/0.9845, allocations: 0.5414 MB / 0.9258 GB, free: 17.58 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01079/0.9953, allocations: 1.932 MB / 0.9277 GB, free: 17.58 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.00503/1, allocations: 1.625 MB / 0.9293 GB, free: 17.36 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.01192/1.012, allocations: 3.285 MB / 0.9325 GB, free: 16.51 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01972/1.032, allocations: 9.152 MB / 0.9414 GB, free: 15.44 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/1.032, allocations: 0 / 0.9414 GB, free: 15.44 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/1.032, allocations: 0 / 0.9414 GB, free: 15.44 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0005187/1.033, allocations: 0 / 0.9414 GB, free: 15.44 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.03087/1.064, allocations: 6.481 MB / 0.9478 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.064, allocations: 8.219 kB / 0.9478 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007207/1.071, allocations: 0.8196 MB / 0.9486 GB, free: 12.48 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0164/1.087, allocations: 5.273 MB / 0.9537 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004112/1.088, allocations: 255.9 kB / 0.954 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002613/1.09, allocations: 341.6 kB / 0.9543 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/1.109, allocations: 5.728 MB / 0.9599 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002271/1.11, allocations: 11.22 kB / 0.9599 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002182/1.112, allocations: 144.7 kB / 0.96 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-05/1.112, allocations: 84.47 kB / 0.9601 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01479/1.127, allocations: 5.51 MB / 0.9655 GB, free: 10.17 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.04951/1.176, allocations: 23.66 MB / 0.9886 GB, free: 9.664 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006875/1.183, allocations: 2.744 MB / 0.9913 GB, free: 8.215 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003585/1.187, allocations: 1.89 MB / 0.9931 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01764/1.204, allocations: 7.062 MB / 1 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004111/1.209, allocations: 1.918 MB / 1.002 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005507/1.214, allocations: 0.7238 MB / 1.003 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=154): time 1.977e-05/1.214, allocations: 0 / 1.003 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of matching and sorting (n=154): time 0.03124/1.245, allocations: 8.029 MB / 1.01 GB, free: 6.012 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.246, allocations: 145.8 kB / 1.011 GB, free: 5.84 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01308/1.259, allocations: 4.962 MB / 1.015 GB, free: 0.8906 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.26, allocations: 61.7 kB / 1.015 GB, free: 0.8242 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.003997/1.264, allocations: 2.453 MB / 1.018 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001673/1.266, allocations: 0.5537 MB / 1.018 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003035/1.269, allocations: 0.6765 MB / 1.019 GB, free: 13.18 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.269, allocations: 305.1 kB / 1.019 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/1.273, allocations: 1.735 MB / 1.021 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005047/1.278, allocations: 2.943 MB / 1.024 GB, free: 7.652 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009425/1.287, allocations: 4.702 MB / 1.029 GB, free: 2.617 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.702e-05/1.287, allocations: 12 kB / 1.029 GB, free: 2.605 MB / 0.7637 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01776/1.305, allocations: 6.331 MB / 1.035 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.305, allocations: 49.69 kB / 1.035 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.079e-05/1.305, allocations: 32 kB / 1.035 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07918/1.385, allocations: 13.55 MB / 1.048 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/1.388, allocations: 0.6491 MB / 1.049 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/1.4, allocations: 5.484 MB / 1.054 GB, free: 8.754 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00656/1.407, allocations: 210.9 kB / 1.054 GB, free: 8.551 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/1.408, allocations: 203.8 kB / 1.054 GB, free: 8.352 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008063/1.416, allocations: 2.962 MB / 1.057 GB, free: 5.383 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004976/1.421, allocations: 2.892 MB / 1.06 GB, free: 1.945 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008656/1.43, allocations: 4.567 MB / 1.065 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.884e-05/1.43, allocations: 12 kB / 1.065 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of matching and sorting (n=340) (initialization_lambda0): time 0.01768/1.448, allocations: 6.027 MB / 1.071 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/1.448, allocations: 50.66 kB / 1.071 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/1.448, allocations: 32 kB / 1.071 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07667/1.525, allocations: 13.31 MB / 1.084 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003826/1.528, allocations: 0.6375 MB / 1.084 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/1.546, allocations: 8.916 MB / 1.093 GB, free: 84 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007162/1.553, allocations: 220.8 kB / 1.093 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/1.555, allocations: 191.8 kB / 1.093 GB, free: 15.68 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (285): * Single equations (assignments): 278 * 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,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001978/1.557, allocations: 379.5 kB / 1.094 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002739/1.559, allocations: 454.5 kB / 1.094 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/1.571, allocations: 4.529 MB / 1.099 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.442e-05/1.571, allocations: 23.98 kB / 1.099 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/1.571, allocations: 3.938 kB / 1.099 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01115/1.582, allocations: 5.552 MB / 1.104 GB, free: 4.562 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02863/1.611, allocations: 9.768 MB / 1.114 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/1.611, allocations: 0 / 1.114 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/1.613, allocations: 364.2 kB / 1.114 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06969/1.683, allocations: 11.71 MB / 1.125 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007067/1.684, allocations: 47.91 kB / 1.125 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006686/1.691, allocations: 3.516 MB / 1.129 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.691, allocations: 4 kB / 1.129 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02741/1.718, allocations: 8.524 MB / 1.137 GB, free: 2.676 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004396/1.723, allocations: 0.9131 MB / 1.138 GB, free: 1.738 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002679/1.725, allocations: 35.94 kB / 1.138 GB, free: 1.703 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005235/1.73, allocations: 139.7 kB / 1.138 GB, free: 1.566 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006943/1.731, allocations: 105.8 kB / 1.138 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006242/1.732, allocations: 87.92 kB / 1.138 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.01053/1.742, allocations: 3.403 MB / 1.142 GB, free: 13.99 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.8e-07/1.742, allocations: 0 / 1.142 GB, free: 13.99 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.01756/1.76, allocations: 2.674 MB / 1.144 GB, free: 11.31 MB / 0.8887 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 (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.003514/1.764, allocations: 0.5622 MB / 1.145 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0225/1.786, allocations: 7.501 MB / 1.152 GB, free: 3.445 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.786, allocations: 0.8906 kB / 1.152 GB, free: 3.445 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.006447/1.793, allocations: 2.27 MB / 1.154 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02066/1.813, allocations: 2.739 MB / 1.157 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/1.838, allocations: 9.897 MB / 1.167 GB, free: 4.621 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005343/1.844, allocations: 3.229 MB / 1.17 GB, free: 1.363 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.008747/1.852, allocations: 1.665 MB / 1.171 GB, free: 15.69 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002589/1.855, allocations: 346.4 kB / 1.172 GB, free: 15.36 MB / 0.92 GB Notification: Performance of SimCode: time 2.514e-06/1.855, allocations: 4 kB / 1.172 GB, free: 15.36 MB / 0.92 GB Notification: Performance of Templates: time 0.1868/2.042, allocations: 112.3 MB / 1.281 GB, free: 0.625 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)