Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 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="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_latest_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.001148/0.001148, allocations: 113.1 kB / 16.38 MB, free: 6.355 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.001203/0.001203, allocations: 189.5 kB / 17.31 MB, free: 5.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.459/2.459, allocations: 442.7 MB / 0.7166 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 1.027 GB, free: 1.512 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6729/0.6741, allocations: 153 MB / 1.177 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07888/0.7531, allocations: 81.03 MB / 1.256 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02945/0.7825, allocations: 21.05 MB / 1.276 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003127/0.7857, allocations: 107.4 kB / 1.276 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005108/0.7908, allocations: 1.951 MB / 1.278 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007413/0.7982, allocations: 2.949 MB / 1.281 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005836/0.8041, allocations: 2.501 MB / 1.284 GB, free: 12.93 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.02129/0.8254, allocations: 18.42 MB / 1.302 GB, free: 10.46 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009403/0.8348, allocations: 7.245 MB / 1.309 GB, free: 3.121 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01071/0.8455, allocations: 5.829 MB / 1.314 GB, free: 13.3 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007595/0.8532, allocations: 5.118 MB / 1.319 GB, free: 8.168 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.001752/0.8549, allocations: 0.5508 MB / 1.32 GB, free: 7.617 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00557/0.8605, allocations: 1.978 MB / 1.322 GB, free: 5.637 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.002645/0.8632, allocations: 1.76 MB / 1.324 GB, free: 3.871 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.005854/0.869, allocations: 3.484 MB / 1.327 GB, free: 380 kB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.8809, allocations: 9.667 MB / 1.337 GB, free: 6.676 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.8809, allocations: 0 / 1.337 GB, free: 6.676 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8809, allocations: 0 / 1.337 GB, free: 6.676 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001895/0.8811, allocations: 0 / 1.337 GB, free: 6.676 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01324/0.8944, allocations: 6.909 MB / 1.343 GB, free: 15.66 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.8944, allocations: 8.031 kB / 1.343 GB, free: 15.66 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004363/0.8988, allocations: 0.945 MB / 1.344 GB, free: 14.7 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.91, allocations: 6.412 MB / 1.35 GB, free: 8.219 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.9102, allocations: 262.6 kB / 1.351 GB, free: 7.961 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006621/0.9109, allocations: 343.9 kB / 1.351 GB, free: 7.625 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009411/0.9203, allocations: 5.743 MB / 1.357 GB, free: 1.637 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.119e-05/0.9204, allocations: 15.88 kB / 1.357 GB, free: 1.621 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000441/0.9208, allocations: 140 kB / 1.357 GB, free: 1.484 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.255e-05/0.9209, allocations: 114 kB / 1.357 GB, free: 1.371 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009406/0.9303, allocations: 5.569 MB / 1.362 GB, free: 11.79 MB / 1.092 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.03362/0.964, allocations: 24.09 MB / 1.386 GB, free: 2.621 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004905/0.9689, allocations: 2.749 MB / 1.389 GB, free: 15.88 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002924/0.9719, allocations: 1.903 MB / 1.39 GB, free: 13.98 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.9832, allocations: 7.166 MB / 1.397 GB, free: 6.484 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003155/0.9864, allocations: 1.914 MB / 1.399 GB, free: 4.559 MB / 1.123 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003462/0.9898, allocations: 0.7195 MB / 1.4 GB, free: 3.836 MB / 1.123 GB Notification: Performance of pre-optimization done (n=154): time 8.426e-06/0.9899, allocations: 4 kB / 1.4 GB, free: 3.832 MB / 1.123 GB Notification: Performance of matching and sorting (n=154): time 0.02475/1.015, allocations: 8.021 MB / 1.408 GB, free: 11.73 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/1.015, allocations: 68.72 kB / 1.408 GB, free: 11.65 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009019/1.024, allocations: 5.606 MB / 1.413 GB, free: 6.07 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.0004285/1.024, allocations: 61.7 kB / 1.413 GB, free: 6.004 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.002479/1.027, allocations: 2.601 MB / 1.416 GB, free: 3.379 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008172/1.027, allocations: 0.5587 MB / 1.416 GB, free: 2.812 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/1.029, allocations: 0.7635 MB / 1.417 GB, free: 2.039 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 8.944e-05/1.029, allocations: 301.1 kB / 1.418 GB, free: 1.742 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003221/1.032, allocations: 1.9 MB / 1.419 GB, free: 15.83 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004056/1.036, allocations: 3.163 MB / 1.422 GB, free: 12.1 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007196/1.043, allocations: 5.027 MB / 1.427 GB, free: 6.594 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/1.043, allocations: 8 kB / 1.427 GB, free: 6.586 MB / 1.154 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01255/1.056, allocations: 6.8 MB / 1.434 GB, free: 15.76 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/1.056, allocations: 45.7 kB / 1.434 GB, free: 15.71 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.501e-05/1.056, allocations: 40.16 kB / 1.434 GB, free: 15.67 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08173/1.138, allocations: 13.55 MB / 1.447 GB, free: 2.094 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00325/1.141, allocations: 0.7098 MB / 1.448 GB, free: 1.383 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.151, allocations: 5.467 MB / 1.453 GB, free: 11.83 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004599/1.156, allocations: 235.8 kB / 1.454 GB, free: 11.6 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006535/1.157, allocations: 203.8 kB / 1.454 GB, free: 11.4 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006019/1.163, allocations: 3.269 MB / 1.457 GB, free: 8.125 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0041/1.167, allocations: 3.105 MB / 1.46 GB, free: 4.453 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00693/1.174, allocations: 4.928 MB / 1.465 GB, free: 15.04 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.951e-05/1.174, allocations: 8 kB / 1.465 GB, free: 15.03 MB / 1.201 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.0117/1.186, allocations: 6.524 MB / 1.471 GB, free: 8.48 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 5.587e-05/1.186, allocations: 45.7 kB / 1.471 GB, free: 8.43 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.345e-05/1.186, allocations: 36 kB / 1.471 GB, free: 8.395 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07999/1.266, allocations: 13.31 MB / 1.484 GB, free: 11.06 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003119/1.269, allocations: 0.698 MB / 1.485 GB, free: 10.36 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01439/1.283, allocations: 8.903 MB / 1.494 GB, free: 1.141 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004875/1.288, allocations: 248.4 kB / 1.494 GB, free: 0.8984 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006818/1.289, allocations: 199.8 kB / 1.494 GB, free: 0.7031 MB / 1.217 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * 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 (317): * Single equations (assignments): 311 * Array equations: 1 * 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.001096/1.29, allocations: 380.6 kB / 1.494 GB, free: 332 kB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001856/1.292, allocations: 0.4941 MB / 1.495 GB, free: 15.82 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009389/1.301, allocations: 4.575 MB / 1.499 GB, free: 11.22 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01159/1.313, allocations: 5.66 MB / 1.505 GB, free: 5.297 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/1.313, allocations: 4 kB / 1.505 GB, free: 5.293 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002511/1.315, allocations: 0.9751 MB / 1.506 GB, free: 4.293 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/1.317, allocations: 31.94 kB / 1.506 GB, free: 4.262 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003264/1.32, allocations: 151.7 kB / 1.506 GB, free: 4.113 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003846/1.32, allocations: 137.9 kB / 1.506 GB, free: 3.977 MB / 1.232 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01176/1.332, allocations: 4.787 MB / 1.511 GB, free: 15.14 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009821/1.342, allocations: 5.997 MB / 1.517 GB, free: 9.113 MB / 1.248 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00277/1.345, allocations: 1.873 MB / 1.519 GB, free: 7.242 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.006958/1.352, allocations: 3.828 MB / 1.522 GB, free: 3.445 MB / 1.248 GB Notification: Performance of Backend: time 6.41e-07/1.352, allocations: 0 / 1.522 GB, free: 3.445 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.02198/1.374, allocations: 6.972 MB / 1.529 GB, free: 12.44 MB / 1.264 GB Notification: Performance of SimCode: time 0.02618/1.4, allocations: 12.5 MB / 1.541 GB, free: 15.95 MB / 1.279 GB Notification: Performance of Templates: time 0.6414/2.041, allocations: 124.5 MB / 1.663 GB, free: 272.7 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)