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.000977/0.0009776, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.007432/0.007432, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.491/1.491, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.816/0.816, allocations: 132.4 MB / 423.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003196, allocations: 8 kB / 0.504 GB, free: 3.898 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.439/0.4393, allocations: 81.58 MB / 0.5837 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08543/0.5248, allocations: 78.53 MB / 0.6603 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0284/0.5532, allocations: 19.09 MB / 0.679 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00399/0.5573, allocations: 91.38 kB / 0.6791 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003386/0.5607, allocations: 0.9793 MB / 0.68 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.008046/0.5687, allocations: 2.585 MB / 0.6826 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005759/0.5745, allocations: 2.167 MB / 0.6847 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.02285/0.5974, allocations: 20.74 MB / 0.7049 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01117/0.6086, allocations: 6.023 MB / 0.7108 GB, free: 13.83 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01267/0.6213, allocations: 4.672 MB / 0.7154 GB, free: 9.137 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009627/0.631, allocations: 4.835 MB / 0.7201 GB, free: 4.281 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001907/0.633, allocations: 260 kB / 0.7203 GB, free: 4.027 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006645/0.6396, allocations: 1.498 MB / 0.7218 GB, free: 2.527 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003507/0.6432, allocations: 1.268 MB / 0.723 GB, free: 1.254 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00912/0.6523, allocations: 2.897 MB / 0.7259 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01686/0.6692, allocations: 8.566 MB / 0.7342 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.6693, allocations: 0 / 0.7342 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.725e-06/0.6693, allocations: 0 / 0.7342 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0003712/0.6696, allocations: 0 / 0.7342 GB, free: 5.742 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.01596/0.6856, allocations: 5.349 MB / 0.7395 GB, free: 308 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.6857, allocations: 12.02 kB / 0.7395 GB, free: 296 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005153/0.6909, allocations: 0.8403 MB / 0.7403 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0125/0.7034, allocations: 5.266 MB / 0.7454 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.7037, allocations: 267 kB / 0.7457 GB, free: 9.832 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.7047, allocations: 340 kB / 0.746 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/0.7154, allocations: 5.709 MB / 0.7516 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.034e-05/0.7155, allocations: 11.88 kB / 0.7516 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000536/0.716, allocations: 147.9 kB / 0.7517 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/0.7162, allocations: 118 kB / 0.7518 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/0.7268, allocations: 5.55 MB / 0.7573 GB, free: 13.72 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.03998/0.7668, allocations: 23.95 MB / 0.7807 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005104/0.772, allocations: 2.773 MB / 0.7834 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003087/0.7751, allocations: 1.905 MB / 0.7852 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.788, allocations: 7.085 MB / 0.7921 GB, free: 8.547 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003112/0.7911, allocations: 1.929 MB / 0.794 GB, free: 6.602 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005007/0.7962, allocations: 1.258 MB / 0.7953 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=156): time 1.12e-05/0.7962, allocations: 0 / 0.7953 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of matching and sorting (n=156): time 0.02244/0.8186, allocations: 7.605 MB / 0.8027 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.8187, allocations: 68.72 kB / 0.8027 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008313/0.8271, allocations: 4.898 MB / 0.8075 GB, free: 8.695 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0007334/0.8278, allocations: 69.7 kB / 0.8076 GB, free: 8.621 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.002411/0.8303, allocations: 2.455 MB / 0.81 GB, free: 6.141 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001132/0.8314, allocations: 0.5471 MB / 0.8105 GB, free: 5.586 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003802/0.8318, allocations: 227 kB / 0.8107 GB, free: 5.359 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.8319, allocations: 301.1 kB / 0.811 GB, free: 5.062 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002961/0.8349, allocations: 1.672 MB / 0.8127 GB, free: 3.387 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3593/1.194, allocations: 2.875 MB / 0.8155 GB, free: 204.1 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008991/1.203, allocations: 4.587 MB / 0.82 GB, free: 202.4 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.367e-05/1.203, allocations: 12.31 kB / 0.82 GB, free: 202.4 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01446/1.218, allocations: 6.077 MB / 0.8259 GB, free: 200.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006311/1.219, allocations: 1.107 MB / 0.827 GB, free: 199 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.474e-05/1.219, allocations: 36.64 kB / 0.827 GB, free: 199 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07484/1.293, allocations: 11.9 MB / 0.8386 GB, free: 197.2 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/1.296, allocations: 0.6626 MB / 0.8393 GB, free: 197 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007468/1.304, allocations: 5.042 MB / 0.8442 GB, free: 193.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004865/1.309, allocations: 338 kB / 0.8445 GB, free: 193.5 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005226/1.309, allocations: 158.8 kB / 0.8447 GB, free: 193.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.309, allocations: 7.812 kB / 0.8447 GB, free: 193.5 MB / 0.6387 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007776/1.317, allocations: 5.345 MB / 0.8499 GB, free: 190.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.058e-05/1.317, allocations: 32.94 kB / 0.8499 GB, free: 190.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06792/1.385, allocations: 11.66 MB / 0.8613 GB, free: 179.5 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002759/1.388, allocations: 0.6603 MB / 0.862 GB, free: 178.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00986/1.398, allocations: 8.035 MB / 0.8698 GB, free: 170.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004975/1.403, allocations: 318.8 kB / 0.8701 GB, free: 170.3 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000485/1.403, allocations: 156.9 kB / 0.8703 GB, free: 170.1 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (285): * Single equations (assignments): 280 * 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,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.002881/1.406, allocations: 1.561 MB / 0.8718 GB, free: 168.6 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/1.407, allocations: 467.4 kB / 0.8722 GB, free: 168.3 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007185/1.415, allocations: 4.851 MB / 0.877 GB, free: 163.5 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/1.415, allocations: 19.94 kB / 0.877 GB, free: 163.5 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.415, allocations: 3.938 kB / 0.877 GB, free: 163.5 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01826/1.433, allocations: 7.039 MB / 0.8839 GB, free: 156.2 MB / 0.6387 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 postOpt removeSimpleEquations (simulation): time 0.03062/1.464, allocations: 13.18 MB / 0.8967 GB, free: 143 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-05/1.464, allocations: 4 kB / 0.8968 GB, free: 143 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/1.466, allocations: 367.6 kB / 0.8971 GB, free: 142.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06778/1.534, allocations: 11.9 MB / 0.9087 GB, free: 130.8 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006167/1.534, allocations: 51.95 kB / 0.9088 GB, free: 130.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006044/1.541, allocations: 4.36 MB / 0.913 GB, free: 126.3 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/1.541, allocations: 3.984 kB / 0.913 GB, free: 126.3 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02378/1.564, allocations: 9.709 MB / 0.9225 GB, free: 116.6 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002863/1.567, allocations: 1.067 MB / 0.9236 GB, free: 115.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009075/1.568, allocations: 32 kB / 0.9236 GB, free: 115.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003498/1.572, allocations: 271.1 kB / 0.9238 GB, free: 115.2 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003671/1.572, allocations: 112 kB / 0.924 GB, free: 115.1 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/1.572, allocations: 75.94 kB / 0.924 GB, free: 115 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.005166/1.577, allocations: 3.35 MB / 0.9273 GB, free: 111.7 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.81e-07/1.577, allocations: 4 kB / 0.9273 GB, free: 111.7 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.008274/1.586, allocations: 2.658 MB / 0.9299 GB, free: 109.2 MB / 0.6387 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 (128): * Single equations (assignments): 119 * 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 {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00127/1.587, allocations: 0.5072 MB / 0.9304 GB, free: 108.7 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01488/1.602, allocations: 7.496 MB / 0.9377 GB, free: 101.2 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.602, allocations: 4.438 kB / 0.9377 GB, free: 101.2 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.005167/1.607, allocations: 2.499 MB / 0.9402 GB, free: 98.7 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01249/1.62, allocations: 2.739 MB / 0.9428 GB, free: 96.03 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/1.633, allocations: 11.88 MB / 0.9544 GB, free: 84.13 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/1.635, allocations: 3.229 MB / 0.9576 GB, free: 80.88 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005204/1.64, allocations: 1.718 MB / 0.9593 GB, free: 79.17 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.641, allocations: 343.2 kB / 0.9596 GB, free: 78.84 MB / 0.6387 GB Notification: Performance of SimCode: time 7.81e-07/1.641, allocations: 0 / 0.9596 GB, free: 78.84 MB / 0.6387 GB Notification: Performance of Templates: time 0.1477/1.789, allocations: 107.5 MB / 1.065 GB, free: 4.297 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 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)