Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001129/0.001129, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8155/0.8155, allocations: 132.2 MB / 423.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 59.89 kB / 0.5032 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4025, allocations: 80.19 MB / 0.5815 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06877/0.4713, allocations: 80.56 MB / 0.6601 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02702/0.4983, allocations: 19.22 MB / 0.6789 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003778/0.5021, allocations: 103.4 kB / 0.679 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003609/0.5058, allocations: 1.155 MB / 0.6801 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.007898/0.5138, allocations: 2.778 MB / 0.6828 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005872/0.5196, allocations: 2.408 MB / 0.6852 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01614/0.5358, allocations: 15.5 MB / 0.7003 GB, free: 4.383 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009357/0.5452, allocations: 7.233 MB / 0.7074 GB, free: 13.05 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01207/0.5573, allocations: 5.865 MB / 0.7131 GB, free: 7.203 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008907/0.5662, allocations: 5.054 MB / 0.7181 GB, free: 2.129 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002257/0.5685, allocations: 0.5429 MB / 0.7186 GB, free: 1.586 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005873/0.5744, allocations: 1.795 MB / 0.7203 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002751/0.5772, allocations: 1.616 MB / 0.7219 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.006252/0.5834, allocations: 3.293 MB / 0.7251 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01227/0.5957, allocations: 9.063 MB / 0.734 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.5958, allocations: 4 kB / 0.734 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5958, allocations: 0 / 0.734 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0003263/0.5961, allocations: 0 / 0.734 GB, free: 1.766 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01859/0.6147, allocations: 6.488 MB / 0.7403 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.6148, allocations: 8.031 kB / 0.7403 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004105/0.6189, allocations: 0.8246 MB / 0.7411 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.6304, allocations: 5.344 MB / 0.7464 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002287/0.6307, allocations: 258.5 kB / 0.7466 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008062/0.6315, allocations: 336 kB / 0.7469 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3388/0.9703, allocations: 5.699 MB / 0.7525 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.948e-05/0.9705, allocations: 15.98 kB / 0.7525 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005714/0.971, allocations: 146.5 kB / 0.7526 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001999/0.9712, allocations: 118.3 kB / 0.7528 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.9827, allocations: 5.517 MB / 0.7581 GB, free: 150.9 MB / 0.5762 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.03297/1.016, allocations: 23.68 MB / 0.7813 GB, free: 132.6 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003992/1.02, allocations: 2.74 MB / 0.7839 GB, free: 131.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/1.022, allocations: 1.892 MB / 0.7858 GB, free: 130.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01035/1.032, allocations: 7.087 MB / 0.7927 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002536/1.035, allocations: 1.918 MB / 0.7946 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003265/1.038, allocations: 0.6985 MB / 0.7953 GB, free: 121.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=155): time 1.052e-05/1.038, allocations: 3.938 kB / 0.7953 GB, free: 121.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=155): time 0.02202/1.06, allocations: 7.932 MB / 0.803 GB, free: 113.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/1.06, allocations: 68.72 kB / 0.8031 GB, free: 113.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007391/1.068, allocations: 5.015 MB / 0.808 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008083/1.069, allocations: 61.7 kB / 0.808 GB, free: 108 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002026/1.071, allocations: 2.461 MB / 0.8104 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001048/1.072, allocations: 0.5465 MB / 0.811 GB, free: 105 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009674/1.073, allocations: 0.6646 MB / 0.8116 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.089e-05/1.073, allocations: 301.1 kB / 0.8119 GB, free: 104 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002543/1.075, allocations: 1.718 MB / 0.8136 GB, free: 102.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/1.079, allocations: 2.915 MB / 0.8164 GB, free: 98.88 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005263/1.084, allocations: 4.671 MB / 0.821 GB, free: 93.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.263e-05/1.084, allocations: 12 kB / 0.821 GB, free: 93.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01051/1.094, allocations: 6.302 MB / 0.8272 GB, free: 87.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.364e-05/1.095, allocations: 49.69 kB / 0.8272 GB, free: 87.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-05/1.095, allocations: 32 kB / 0.8272 GB, free: 87.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07039/1.165, allocations: 13.55 MB / 0.8405 GB, free: 73.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002743/1.168, allocations: 0.655 MB / 0.8411 GB, free: 73.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008158/1.176, allocations: 5.475 MB / 0.8465 GB, free: 67.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005086/1.181, allocations: 220.4 kB / 0.8467 GB, free: 67.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006318/1.182, allocations: 191.8 kB / 0.8469 GB, free: 67.27 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004872/1.187, allocations: 2.964 MB / 0.8497 GB, free: 64.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002933/1.19, allocations: 2.84 MB / 0.8525 GB, free: 60.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00527/1.195, allocations: 4.545 MB / 0.857 GB, free: 55.89 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.273e-05/1.195, allocations: 8 kB / 0.857 GB, free: 55.88 MB / 0.5762 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.01006/1.205, allocations: 5.992 MB / 0.8628 GB, free: 49.86 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.631e-05/1.205, allocations: 53.69 kB / 0.8629 GB, free: 49.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-05/1.205, allocations: 39.94 kB / 0.8629 GB, free: 49.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07031/1.276, allocations: 13.3 MB / 0.8759 GB, free: 36.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/1.278, allocations: 0.6435 MB / 0.8765 GB, free: 35.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/1.289, allocations: 8.899 MB / 0.8852 GB, free: 26.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006721/1.296, allocations: 224.9 kB / 0.8854 GB, free: 26.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000947/1.297, allocations: 195.8 kB / 0.8856 GB, free: 26.23 MB / 0.5762 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 (283): * Single equations (assignments): 278 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.001002/1.298, allocations: 363.3 kB / 0.886 GB, free: 25.87 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001738/1.3, allocations: 462.3 kB / 0.8864 GB, free: 25.41 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007505/1.307, allocations: 4.58 MB / 0.8909 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/1.307, allocations: 16 kB / 0.8909 GB, free: 20.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/1.308, allocations: 4 kB / 0.8909 GB, free: 20.81 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008782/1.316, allocations: 5.62 MB / 0.8964 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/1.341, allocations: 10.72 MB / 0.9069 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/1.341, allocations: 0 / 0.9069 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002264/1.343, allocations: 367.6 kB / 0.9072 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06706/1.41, allocations: 11.7 MB / 0.9186 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005608/1.411, allocations: 47.97 kB / 0.9187 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00589/1.417, allocations: 3.55 MB / 0.9222 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.417, allocations: 0 / 0.9222 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02278/1.44, allocations: 8.418 MB / 0.9304 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003622/1.443, allocations: 0.9247 MB / 0.9313 GB, free: 11 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001263/1.445, allocations: 32 kB / 0.9313 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003051/1.448, allocations: 135.7 kB / 0.9314 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/1.448, allocations: 110 kB / 0.9315 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.448, allocations: 83.92 kB / 0.9316 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.005756/1.454, allocations: 3.448 MB / 0.935 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.51e-07/1.454, allocations: 0 / 0.935 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009252/1.463, allocations: 2.632 MB / 0.9376 GB, free: 4.605 MB / 0.6075 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 (135): * Single equations (assignments): 126 * 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.001585/1.465, allocations: 0.5226 MB / 0.9381 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01832/1.483, allocations: 7.417 MB / 0.9453 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.483, allocations: 0 / 0.9453 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005558/1.489, allocations: 2.3 MB / 0.9476 GB, free: 10.38 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01217/1.501, allocations: 2.714 MB / 0.9502 GB, free: 7.801 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01879/1.52, allocations: 9.953 MB / 0.9599 GB, free: 13.82 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003972/1.524, allocations: 3.241 MB / 0.9631 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005932/1.53, allocations: 1.648 MB / 0.9647 GB, free: 8.918 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/1.531, allocations: 351.2 kB / 0.965 GB, free: 8.578 MB / 0.6387 GB Notification: Performance of SimCode: time 7.71e-07/1.531, allocations: 0 / 0.965 GB, free: 8.578 MB / 0.6387 GB Notification: Performance of Templates: time 0.4362/1.968, allocations: 110.7 MB / 1.073 GB, free: 184.5 MB / 0.67 GB make -j1 -f IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)