Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 115.1 kB / 16.42 MB, free: 6.473 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.001121/0.001122, allocations: 186.6 kB / 17.35 MB, free: 5.75 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.296/1.296, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002164/0.002164, allocations: 292.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9279/0.9279, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 95.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3785, allocations: 86.98 MB / 0.767 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07556/0.4541, allocations: 80.97 MB / 0.8461 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02901/0.4831, allocations: 21.07 MB / 0.8667 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003244/0.4864, allocations: 107.4 kB / 0.8668 GB, free: 13.42 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.005219/0.4917, allocations: 1.959 MB / 0.8687 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.007209/0.4989, allocations: 3.032 MB / 0.8716 GB, free: 8.406 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005677/0.5046, allocations: 2.506 MB / 0.8741 GB, free: 5.914 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01943/0.524, allocations: 18.46 MB / 0.8921 GB, free: 3.406 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008144/0.5322, allocations: 7.229 MB / 0.8992 GB, free: 12.08 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.5425, allocations: 5.966 MB / 0.905 GB, free: 6.125 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007841/0.5504, allocations: 5.117 MB / 0.91 GB, free: 0.9883 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.002068/0.5525, allocations: 0.5469 MB / 0.9105 GB, free: 452 kB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005863/0.5584, allocations: 1.982 MB / 0.9125 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.003206/0.5616, allocations: 1.768 MB / 0.9142 GB, free: 12.68 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.005953/0.5676, allocations: 3.476 MB / 0.9176 GB, free: 9.191 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01102/0.5786, allocations: 9.682 MB / 0.9271 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.5787, allocations: 0 / 0.9271 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5787, allocations: 0 / 0.9271 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001408/0.5788, allocations: 0 / 0.9271 GB, free: 15.48 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: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01316/0.592, allocations: 6.92 MB / 0.9338 GB, free: 8.457 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.592, allocations: 8.031 kB / 0.9338 GB, free: 8.449 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004239/0.5963, allocations: 0.9411 MB / 0.9347 GB, free: 7.5 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/0.6079, allocations: 6.412 MB / 0.941 GB, free: 1.012 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.6081, allocations: 262.5 kB / 0.9412 GB, free: 0.7539 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006372/0.6087, allocations: 343.8 kB / 0.9416 GB, free: 428 kB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009305/0.618, allocations: 5.735 MB / 0.9472 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.317e-05/0.6181, allocations: 19.88 kB / 0.9472 GB, free: 10.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004548/0.6186, allocations: 140 kB / 0.9473 GB, free: 10.28 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.681e-05/0.6187, allocations: 114 kB / 0.9474 GB, free: 10.16 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009205/0.6279, allocations: 5.565 MB / 0.9529 GB, free: 4.586 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.3369/0.9648, allocations: 24.08 MB / 0.9764 GB, free: 163.1 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004022/0.9688, allocations: 2.755 MB / 0.9791 GB, free: 162.1 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002358/0.9712, allocations: 1.907 MB / 0.9809 GB, free: 161 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.9814, allocations: 7.175 MB / 0.988 GB, free: 155.8 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002712/0.9841, allocations: 1.917 MB / 0.9898 GB, free: 154.6 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002837/0.987, allocations: 0.7114 MB / 0.9905 GB, free: 154.4 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=154): time 4.659e-06/0.987, allocations: 0 / 0.9905 GB, free: 154.4 MB / 0.7169 GB Notification: Performance of matching and sorting (n=154): time 0.02206/1.009, allocations: 8.024 MB / 0.9984 GB, free: 147.9 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/1.009, allocations: 76.52 kB / 0.9984 GB, free: 147.8 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006027/1.015, allocations: 5.599 MB / 1.004 GB, free: 142.2 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0004378/1.016, allocations: 65.69 kB / 1.004 GB, free: 142.2 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001582/1.017, allocations: 2.599 MB / 1.006 GB, free: 139.6 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000567/1.018, allocations: 0.5544 MB / 1.007 GB, free: 139 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009161/1.019, allocations: 0.7635 MB / 1.008 GB, free: 138.3 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.345e-05/1.019, allocations: 305.1 kB / 1.008 GB, free: 138 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/1.021, allocations: 1.909 MB / 1.01 GB, free: 136.1 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002927/1.024, allocations: 3.163 MB / 1.013 GB, free: 132.4 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00541/1.03, allocations: 5.026 MB / 1.018 GB, free: 126.9 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/1.03, allocations: 12 kB / 1.018 GB, free: 126.9 MB / 0.7169 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01037/1.04, allocations: 6.796 MB / 1.025 GB, free: 120.1 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/1.04, allocations: 45.92 kB / 1.025 GB, free: 120 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.319e-05/1.04, allocations: 40 kB / 1.025 GB, free: 120 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07776/1.118, allocations: 13.54 MB / 1.038 GB, free: 106.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/1.121, allocations: 0.7059 MB / 1.039 GB, free: 105.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008413/1.129, allocations: 5.489 MB / 1.044 GB, free: 100.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004398/1.134, allocations: 247.7 kB / 1.044 GB, free: 99.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003941/1.134, allocations: 195.8 kB / 1.044 GB, free: 99.78 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004205/1.138, allocations: 3.273 MB / 1.048 GB, free: 96.5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002877/1.141, allocations: 3.102 MB / 1.051 GB, free: 92.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0052/1.146, allocations: 4.928 MB / 1.055 GB, free: 87.43 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.339e-05/1.146, allocations: 12 kB / 1.055 GB, free: 87.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.009327/1.156, allocations: 6.508 MB / 1.062 GB, free: 80.88 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/1.156, allocations: 45.7 kB / 1.062 GB, free: 80.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.989e-05/1.156, allocations: 39.94 kB / 1.062 GB, free: 80.79 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07686/1.233, allocations: 13.3 MB / 1.075 GB, free: 67.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/1.235, allocations: 0.6981 MB / 1.076 GB, free: 66.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/1.247, allocations: 8.908 MB / 1.084 GB, free: 57.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004346/1.251, allocations: 248.3 kB / 1.084 GB, free: 57.38 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003294/1.251, allocations: 196 kB / 1.085 GB, free: 57.19 MB / 0.7169 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.0007389/1.252, allocations: 385.5 kB / 1.085 GB, free: 56.8 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008858/1.253, allocations: 0.4977 MB / 1.085 GB, free: 56.3 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007053/1.26, allocations: 4.581 MB / 1.09 GB, free: 51.71 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009709/1.27, allocations: 5.667 MB / 1.095 GB, free: 45.79 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/1.27, allocations: 3.938 kB / 1.096 GB, free: 45.79 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002301/1.272, allocations: 0.9827 MB / 1.096 GB, free: 44.78 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008099/1.273, allocations: 32 kB / 1.096 GB, free: 44.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/1.276, allocations: 143.8 kB / 1.097 GB, free: 44.61 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/1.276, allocations: 137.8 kB / 1.097 GB, free: 44.47 MB / 0.7169 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01017/1.286, allocations: 4.78 MB / 1.101 GB, free: 39.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007912/1.294, allocations: 5.997 MB / 1.107 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002209/1.296, allocations: 1.874 MB / 1.109 GB, free: 31.8 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.004544/1.301, allocations: 3.827 MB / 1.113 GB, free: 28 MB / 0.7169 GB Notification: Performance of Backend: time 7.11e-07/1.301, allocations: 7.938 kB / 1.113 GB, free: 27.99 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01802/1.319, allocations: 6.978 MB / 1.12 GB, free: 21.06 MB / 0.7169 GB Notification: Performance of SimCode: time 0.01923/1.338, allocations: 12.5 MB / 1.132 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of Templates: time 0.1822/1.521, allocations: 125.7 MB / 1.255 GB, free: 11.99 MB / 0.8419 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)