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) 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/IBPSA 4.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 105.1 kB / 16.4 MB, free: 6.449 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.001371/0.001371, allocations: 196 kB / 17.34 MB, free: 5.719 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.294/1.294, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6884/0.6884, allocations: 115.3 MB / 406.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 65.45 kB / 0.5577 GB, free: 32.26 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1515, allocations: 76.18 MB / 0.632 GB, free: 4.414 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07393/0.2254, allocations: 80.97 MB / 0.7111 GB, free: 3.16 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03/0.2555, allocations: 21.04 MB / 0.7317 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004483/0.26, allocations: 107.4 kB / 0.7318 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.006558/0.2666, allocations: 1.951 MB / 0.7337 GB, free: 12 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008875/0.2755, allocations: 2.955 MB / 0.7366 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00644/0.282, allocations: 2.498 MB / 0.739 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.3549/0.6369, allocations: 18.41 MB / 0.757 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01011/0.6471, allocations: 7.238 MB / 0.7641 GB, free: 16.45 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01373/0.6608, allocations: 5.96 MB / 0.7699 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01205/0.6729, allocations: 5.122 MB / 0.7749 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002812/0.6758, allocations: 0.5486 MB / 0.7754 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006667/0.6825, allocations: 1.975 MB / 0.7773 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.002523/0.685, allocations: 1.762 MB / 0.7791 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.006705/0.6917, allocations: 3.481 MB / 0.7825 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.7019, allocations: 9.68 MB / 0.7919 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.7019, allocations: 0 / 0.7919 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7019, allocations: 6.656 kB / 0.7919 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0002011/0.7021, allocations: 0 / 0.7919 GB, free: 12.84 MB / 0.5762 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.01191/0.7141, allocations: 6.907 MB / 0.7987 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.7141, allocations: 7.844 kB / 0.7987 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003882/0.718, allocations: 0.9518 MB / 0.7996 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.7283, allocations: 6.413 MB / 0.8059 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.7284, allocations: 268 kB / 0.8061 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006096/0.7291, allocations: 340.4 kB / 0.8064 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007903/0.737, allocations: 5.736 MB / 0.812 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.692e-05/0.737, allocations: 11.41 kB / 0.8121 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000417/0.7375, allocations: 155.9 kB / 0.8122 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.022e-05/0.7376, allocations: 114 kB / 0.8123 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008478/0.7461, allocations: 5.566 MB / 0.8178 GB, free: 9.168 MB / 0.5919 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.0332/0.7793, allocations: 24.08 MB / 0.8413 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004902/0.7842, allocations: 2.756 MB / 0.844 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002945/0.7872, allocations: 1.91 MB / 0.8458 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0169/0.8041, allocations: 7.175 MB / 0.8528 GB, free: 4.477 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003469/0.8076, allocations: 1.91 MB / 0.8547 GB, free: 2.555 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005007/0.8126, allocations: 0.7204 MB / 0.8554 GB, free: 1.855 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=154): time 1.627e-05/0.8127, allocations: 0 / 0.8554 GB, free: 1.855 MB / 0.6231 GB Notification: Performance of matching and sorting (n=154): time 0.02571/0.8384, allocations: 8.019 MB / 0.8632 GB, free: 9.789 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.8385, allocations: 68.72 kB / 0.8633 GB, free: 9.711 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0114/0.8499, allocations: 5.602 MB / 0.8688 GB, free: 4.137 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0007843/0.8507, allocations: 61.7 kB / 0.8688 GB, free: 4.07 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003119/0.8539, allocations: 2.601 MB / 0.8714 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.8551, allocations: 0.5587 MB / 0.8719 GB, free: 0.9102 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002281/0.8574, allocations: 0.7673 MB / 0.8727 GB, free: 136 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.8575, allocations: 305.1 kB / 0.8729 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.861, allocations: 1.904 MB / 0.8748 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004153/0.8651, allocations: 3.155 MB / 0.8779 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007166/0.8723, allocations: 5.024 MB / 0.8828 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-05/0.8724, allocations: 12 kB / 0.8828 GB, free: 4.848 MB / 0.6544 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01296/0.8853, allocations: 6.796 MB / 0.8894 GB, free: 14.25 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.1e-05/0.8854, allocations: 53.7 kB / 0.8895 GB, free: 14.19 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.106e-05/0.8855, allocations: 32.05 kB / 0.8895 GB, free: 14.16 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07744/0.963, allocations: 13.54 MB / 0.9027 GB, free: 0.7031 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/0.9666, allocations: 0.7092 MB / 0.9034 GB, free: 36 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.9769, allocations: 5.478 MB / 0.9088 GB, free: 10.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005201/0.9822, allocations: 235.8 kB / 0.909 GB, free: 10.27 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007742/0.983, allocations: 199.8 kB / 0.9092 GB, free: 10.07 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006478/0.9895, allocations: 3.277 MB / 0.9124 GB, free: 6.785 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004322/0.9938, allocations: 3.101 MB / 0.9154 GB, free: 3.141 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007284/1.001, allocations: 4.935 MB / 0.9203 GB, free: 13.87 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.702e-05/1.001, allocations: 8 kB / 0.9203 GB, free: 13.86 MB / 0.7012 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01382/1.015, allocations: 6.517 MB / 0.9266 GB, free: 7.535 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 6.873e-05/1.015, allocations: 49.7 kB / 0.9267 GB, free: 7.48 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.153e-05/1.015, allocations: 44.09 kB / 0.9267 GB, free: 7.438 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07813/1.093, allocations: 13.3 MB / 0.9397 GB, free: 10.21 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003346/1.097, allocations: 0.6946 MB / 0.9404 GB, free: 9.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/1.111, allocations: 8.895 MB / 0.9491 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005789/1.117, allocations: 256.2 kB / 0.9493 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009316/1.118, allocations: 200.2 kB / 0.9495 GB, free: 15.94 MB / 0.7325 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.001649/1.12, allocations: 380.6 kB / 0.9499 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002492/1.122, allocations: 0.4939 MB / 0.9504 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/1.132, allocations: 4.577 MB / 0.9548 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.496e-05/1.132, allocations: 16 kB / 0.9548 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/1.132, allocations: 3.938 kB / 0.9548 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01128/1.144, allocations: 5.66 MB / 0.9604 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02997/1.174, allocations: 10.93 MB / 0.971 GB, free: 9.707 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/1.174, allocations: 0 / 0.971 GB, free: 9.707 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002294/1.176, allocations: 370.2 kB / 0.9714 GB, free: 9.355 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06972/1.246, allocations: 11.7 MB / 0.9828 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007644/1.246, allocations: 47.95 kB / 0.9829 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006857/1.253, allocations: 3.57 MB / 0.9864 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/1.253, allocations: 3.938 kB / 0.9864 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02237/1.276, allocations: 8.1 MB / 0.9943 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002948/1.279, allocations: 0.9855 MB / 0.9952 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00152/1.28, allocations: 32.11 kB / 0.9953 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004386/1.285, allocations: 155.8 kB / 0.9954 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000426/1.285, allocations: 105.8 kB / 0.9955 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004264/1.286, allocations: 83.92 kB / 0.9956 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.007975/1.294, allocations: 3.824 MB / 0.9993 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.2e-07/1.294, allocations: 0 / 0.9993 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.009702/1.303, allocations: 2.799 MB / 1.002 GB, free: 9.984 MB / 0.7794 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.s[1],val.filter.s[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.001837/1.305, allocations: 0.6563 MB / 1.003 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.01972/1.325, allocations: 7.949 MB / 1.01 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.325, allocations: 384 / 1.01 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.006495/1.331, allocations: 2.302 MB / 1.013 GB, free: 15.32 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01565/1.347, allocations: 2.924 MB / 1.016 GB, free: 12.47 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02417/1.371, allocations: 10.75 MB / 1.026 GB, free: 1.695 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003751/1.375, allocations: 3.413 MB / 1.029 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.005902/1.381, allocations: 1.742 MB / 1.031 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/1.382, allocations: 385.2 kB / 1.031 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of SimCode: time 7.82e-07/1.382, allocations: 0 / 1.031 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of Templates: time 0.42/1.802, allocations: 119.3 MB / 1.148 GB, free: 241.8 MB / 0.8106 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (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)