Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 90] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 114.2 kB / 17.33 MB, free: 5.008 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.001724/0.001724, allocations: 198.6 kB / 18.33 MB, free: 4.016 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.483/1.483, allocations: 225.6 MB / 244.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8441/0.8441, allocations: 128.4 MB / 426.1 MB, free: 7.184 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 64.22 kB / 0.5911 GB, free: 21.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1976, allocations: 83.27 MB / 0.6724 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.09628/0.2938, allocations: 81.59 MB / 0.7521 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3995/0.6933, allocations: 21.04 MB / 0.7727 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005633/0.699, allocations: 108.4 kB / 0.7728 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.007347/0.7063, allocations: 1.98 MB / 0.7747 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.7171, allocations: 3.026 MB / 0.7777 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.008839/0.7259, allocations: 2.525 MB / 0.7801 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.02721/0.7531, allocations: 18.24 MB / 0.7979 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009719/0.7629, allocations: 6.208 MB / 0.804 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01969/0.7825, allocations: 6.139 MB / 0.81 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01599/0.7985, allocations: 5.317 MB / 0.8152 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.003046/0.8016, allocations: 0.55 MB / 0.8157 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01203/0.8136, allocations: 2.024 MB / 0.8177 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.005796/0.8194, allocations: 1.813 MB / 0.8195 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.01528/0.8347, allocations: 3.492 MB / 0.8229 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03099/0.8657, allocations: 9.712 MB / 0.8324 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.8657, allocations: 4 kB / 0.8324 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.435e-06/0.8657, allocations: 0 / 0.8324 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0003523/0.866, allocations: 0 / 0.8324 GB, free: 13.81 MB / 0.6075 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.03289/0.8989, allocations: 6.99 MB / 0.8392 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.842e-05/0.899, allocations: 8.031 kB / 0.8392 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01092/0.9099, allocations: 0.972 MB / 0.8401 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02842/0.9384, allocations: 6.459 MB / 0.8465 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005338/0.9389, allocations: 262.5 kB / 0.8467 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00222/0.9411, allocations: 342.8 kB / 0.847 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02379/0.9649, allocations: 5.763 MB / 0.8527 GB, free: 8.836 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001302/0.965, allocations: 11.88 kB / 0.8527 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009436/0.966, allocations: 144 kB / 0.8528 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.122e-05/0.9661, allocations: 84 kB / 0.8529 GB, free: 8.602 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01195/0.978, allocations: 5.62 MB / 0.8584 GB, free: 2.969 MB / 0.6231 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.04438/1.022, allocations: 24.7 MB / 0.8825 GB, free: 9.379 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005532/1.028, allocations: 2.561 MB / 0.885 GB, free: 6.812 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003364/1.031, allocations: 1.716 MB / 0.8867 GB, free: 5.098 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/1.046, allocations: 7.249 MB / 0.8938 GB, free: 13.58 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003581/1.05, allocations: 1.945 MB / 0.8957 GB, free: 11.62 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005146/1.055, allocations: 1.09 MB / 0.8967 GB, free: 10.56 MB / 0.67 GB Notification: Performance of pre-optimization done (n=152): time 1.091e-05/1.055, allocations: 0 / 0.8967 GB, free: 10.56 MB / 0.67 GB Notification: Performance of matching and sorting (n=152): time 0.03498/1.09, allocations: 9.195 MB / 0.9057 GB, free: 1.293 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/1.09, allocations: 68.72 kB / 0.9058 GB, free: 1.215 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01114/1.101, allocations: 5.561 MB / 0.9112 GB, free: 11.68 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0008163/1.102, allocations: 72.12 kB / 0.9113 GB, free: 11.61 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.003164/1.105, allocations: 2.632 MB / 0.9138 GB, free: 8.973 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001479/1.107, allocations: 0.5717 MB / 0.9144 GB, free: 8.406 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00145/1.108, allocations: 0.7794 MB / 0.9152 GB, free: 7.617 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001893/1.108, allocations: 301.1 kB / 0.9154 GB, free: 7.32 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003666/1.112, allocations: 1.9 MB / 0.9173 GB, free: 5.41 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004899/1.117, allocations: 3.153 MB / 0.9204 GB, free: 1.695 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008437/1.125, allocations: 5.017 MB / 0.9253 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-05/1.126, allocations: 11.94 kB / 0.9253 GB, free: 12.19 MB / 0.7012 GB Notification: Performance of matching and sorting (n=399) (initialization): time 0.01468/1.14, allocations: 6.744 MB / 0.9319 GB, free: 5.43 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 9.078e-05/1.14, allocations: 46.7 kB / 0.9319 GB, free: 5.379 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.544e-05/1.14, allocations: 32 kB / 0.9319 GB, free: 5.348 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07824/1.219, allocations: 13.56 MB / 0.9452 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003311/1.222, allocations: 0.6942 MB / 0.9459 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/1.233, allocations: 5.485 MB / 0.9512 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/1.238, allocations: 239.9 kB / 0.9515 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007105/1.238, allocations: 203.8 kB / 0.9516 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00622/1.245, allocations: 3.265 MB / 0.9548 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004672/1.249, allocations: 3.101 MB / 0.9579 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007756/1.257, allocations: 4.93 MB / 0.9627 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.173e-05/1.257, allocations: 8 kB / 0.9627 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=399) (initialization_lambda0): time 0.01337/1.271, allocations: 6.464 MB / 0.969 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.491e-05/1.271, allocations: 47.58 kB / 0.969 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.278e-05/1.271, allocations: 36 kB / 0.9691 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07799/1.349, allocations: 13.29 MB / 0.9821 GB, free: 0.9336 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003229/1.352, allocations: 0.6864 MB / 0.9827 GB, free: 252 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/1.367, allocations: 8.913 MB / 0.9914 GB, free: 7.027 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004929/1.372, allocations: 260.1 kB / 0.9917 GB, free: 6.773 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005867/1.372, allocations: 199.8 kB / 0.9919 GB, free: 6.578 MB / 0.7637 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 (314): * Single equations (assignments): 308 * 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.001003/1.373, allocations: 383.2 kB / 0.9922 GB, free: 6.195 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/1.375, allocations: 0.5084 MB / 0.9927 GB, free: 5.684 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/1.387, allocations: 4.923 MB / 0.9975 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/1.387, allocations: 16 kB / 0.9976 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/1.387, allocations: 4 kB / 0.9976 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01088/1.397, allocations: 5.495 MB / 1.003 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02945/1.427, allocations: 10.74 MB / 1.013 GB, free: 196 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/1.427, allocations: 3.938 kB / 1.013 GB, free: 192 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002485/1.429, allocations: 375.6 kB / 1.014 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07144/1.501, allocations: 11.69 MB / 1.025 GB, free: 4.168 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005664/1.501, allocations: 47.95 kB / 1.025 GB, free: 4.121 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006372/1.508, allocations: 3.535 MB / 1.029 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.508, allocations: 0 / 1.029 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02632/1.534, allocations: 8.556 MB / 1.037 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00311/1.537, allocations: 0.9895 MB / 1.038 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.538, allocations: 35.94 kB / 1.038 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003015/1.541, allocations: 151.8 kB / 1.038 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/1.542, allocations: 113.8 kB / 1.038 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002554/1.542, allocations: 87.92 kB / 1.038 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.007173/1.549, allocations: 3.791 MB / 1.042 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/1.549, allocations: 0 / 1.042 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.01114/1.56, allocations: 2.816 MB / 1.045 GB, free: 15.95 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (pump.vol.dynBal.U,hea.outCon.T,val.actPos.y) * 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 (132): * Single equations (assignments): 123 * 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.002014/1.562, allocations: 0.6605 MB / 1.045 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01987/1.582, allocations: 7.454 MB / 1.053 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.582, allocations: 4 kB / 1.053 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.005483/1.588, allocations: 1.971 MB / 1.055 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0129/1.601, allocations: 2.918 MB / 1.058 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.391/1.992, allocations: 10.85 MB / 1.068 GB, free: 306.4 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004914/1.996, allocations: 3.404 MB / 1.071 GB, free: 305.6 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.006946/2.003, allocations: 1.798 MB / 1.073 GB, free: 305.6 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/2.005, allocations: 385.6 kB / 1.074 GB, free: 305.6 MB / 0.8262 GB Notification: Performance of SimCode: time 1.323e-06/2.005, allocations: 0.5 kB / 1.074 GB, free: 305.6 MB / 0.8262 GB Notification: Performance of Templates: time 0.1603/2.165, allocations: 121.5 MB / 1.192 GB, free: 206 MB / 0.8262 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.makefile [Timeout 660] (rm -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) [Timeout 480]