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.0009155/0.0009156, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001001/0.001001, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7505/0.7505, allocations: 132.3 MB / 423.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002924, allocations: 12 kB / 0.5034 GB, free: 4.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3457, allocations: 81.57 MB / 0.5831 GB, free: 3.953 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06795/0.4137, allocations: 74.15 MB / 0.6555 GB, free: 6.215 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02417/0.4379, allocations: 18 MB / 0.6731 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003222/0.4412, allocations: 91.38 kB / 0.6731 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.4439, allocations: 0.7763 MB / 0.6739 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006001/0.4499, allocations: 2.295 MB / 0.6761 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004629/0.4546, allocations: 1.797 MB / 0.6779 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01714/0.4717, allocations: 17.46 MB / 0.6949 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007635/0.4794, allocations: 5.286 MB / 0.7001 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008218/0.4876, allocations: 4.634 MB / 0.7046 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007937/0.4956, allocations: 4.591 MB / 0.7091 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001453/0.4971, allocations: 264 kB / 0.7094 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004722/0.5018, allocations: 1.213 MB / 0.7105 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.002135/0.504, allocations: 1.218 MB / 0.7117 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.5062, allocations: 1.112 MB / 0.7128 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007321/0.5135, allocations: 6.823 MB / 0.7195 GB, free: 4.465 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5136, allocations: 0 / 0.7195 GB, free: 4.465 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.492e-06/0.5136, allocations: 0 / 0.7195 GB, free: 4.465 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0002361/0.5138, allocations: 0 / 0.7195 GB, free: 4.465 MB / 0.545 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.01049/0.5243, allocations: 5.423 MB / 0.7248 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.5244, allocations: 12.03 kB / 0.7248 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003276/0.5276, allocations: 0.844 MB / 0.7256 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008603/0.5363, allocations: 5.086 MB / 0.7306 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.5365, allocations: 267 kB / 0.7308 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005259/0.537, allocations: 336 kB / 0.7312 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008624/0.5456, allocations: 5.705 MB / 0.7367 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.328e-05/0.5457, allocations: 15.86 kB / 0.7367 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003942/0.5461, allocations: 148 kB / 0.7369 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.969e-05/0.5462, allocations: 114 kB / 0.737 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008707/0.5549, allocations: 5.562 MB / 0.7424 GB, free: 12.55 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.02822/0.5831, allocations: 24.04 MB / 0.7659 GB, free: 3.371 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004561/0.5877, allocations: 2.804 MB / 0.7686 GB, free: 0.5703 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002784/0.5905, allocations: 1.925 MB / 0.7705 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/0.601, allocations: 7.151 MB / 0.7775 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003006/0.604, allocations: 1.949 MB / 0.7794 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003511/0.6076, allocations: 1.243 MB / 0.7806 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=156): time 5.05e-06/0.6076, allocations: 0 / 0.7806 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=156): time 0.01918/0.6268, allocations: 7.628 MB / 0.7881 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.6268, allocations: 72.7 kB / 0.7881 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006055/0.6329, allocations: 4.886 MB / 0.7929 GB, free: 7.301 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002126/0.6331, allocations: 65.7 kB / 0.793 GB, free: 7.23 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.6352, allocations: 2.463 MB / 0.7954 GB, free: 4.742 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000584/0.6358, allocations: 0.5547 MB / 0.7959 GB, free: 4.18 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.6359, allocations: 52 kB / 0.796 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.6361, allocations: 411.3 kB / 0.7964 GB, free: 3.723 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002642/0.6388, allocations: 1.652 MB / 0.798 GB, free: 2.066 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003367/0.6421, allocations: 2.855 MB / 0.8008 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/0.6453, allocations: 2.084 MB / 0.8028 GB, free: 12.56 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/0.6453, allocations: 8 kB / 0.8028 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01021/0.6556, allocations: 6.001 MB / 0.8087 GB, free: 6.523 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005969/0.6562, allocations: 1.092 MB / 0.8097 GB, free: 4.965 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.664e-05/0.6562, allocations: 32 kB / 0.8098 GB, free: 4.934 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3242/0.9804, allocations: 11.88 MB / 0.8214 GB, free: 202 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00283/0.9832, allocations: 0.6676 MB / 0.822 GB, free: 202 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006952/0.9902, allocations: 5.043 MB / 0.8269 GB, free: 200.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/0.9942, allocations: 347.8 kB / 0.8273 GB, free: 200.4 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002748/0.9945, allocations: 164.4 kB / 0.8274 GB, free: 200.4 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.9946, allocations: 4 kB / 0.8274 GB, free: 200.4 MB / 0.6387 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007906/1.002, allocations: 5.339 MB / 0.8326 GB, free: 198.6 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.483e-05/1.003, allocations: 33.75 kB / 0.8327 GB, free: 198.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06152/1.064, allocations: 11.69 MB / 0.8441 GB, free: 194.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002506/1.067, allocations: 0.6567 MB / 0.8447 GB, free: 194.6 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008747/1.075, allocations: 8.085 MB / 0.8526 GB, free: 187 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/1.079, allocations: 324 kB / 0.8529 GB, free: 186.7 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002251/1.079, allocations: 159.9 kB / 0.8531 GB, free: 186.5 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002067/1.081, allocations: 1.546 MB / 0.8546 GB, free: 185 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005705/1.082, allocations: 474.3 kB / 0.8551 GB, free: 184.8 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006554/1.088, allocations: 4.869 MB / 0.8598 GB, free: 179.9 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/1.088, allocations: 16 kB / 0.8598 GB, free: 179.9 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/1.088, allocations: 3.984 kB / 0.8598 GB, free: 179.9 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01623/1.105, allocations: 7.078 MB / 0.8667 GB, free: 172.6 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.0241/1.129, allocations: 13.24 MB / 0.8797 GB, free: 159.3 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/1.129, allocations: 3.938 kB / 0.8797 GB, free: 159.3 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/1.131, allocations: 375.6 kB / 0.88 GB, free: 158.9 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05797/1.189, allocations: 11.9 MB / 0.8916 GB, free: 147.1 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004013/1.189, allocations: 47.02 kB / 0.8917 GB, free: 147.1 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005123/1.194, allocations: 4.378 MB / 0.896 GB, free: 142.6 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.194, allocations: 0 / 0.896 GB, free: 142.6 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02027/1.215, allocations: 9.736 MB / 0.9055 GB, free: 132.9 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/1.217, allocations: 1.088 MB / 0.9065 GB, free: 131.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005809/1.217, allocations: 32 kB / 0.9066 GB, free: 131.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002608/1.22, allocations: 276.3 kB / 0.9068 GB, free: 131.5 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/1.22, allocations: 101.2 kB / 0.9069 GB, free: 131.4 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000197/1.22, allocations: 87.92 kB / 0.907 GB, free: 131.3 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.003703/1.224, allocations: 3.346 MB / 0.9103 GB, free: 128 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.8e-07/1.224, allocations: 0 / 0.9103 GB, free: 128 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.005635/1.23, allocations: 2.679 MB / 0.9129 GB, free: 125.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009576/1.231, allocations: 0.4941 MB / 0.9134 GB, free: 125 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01298/1.244, allocations: 7.468 MB / 0.9207 GB, free: 117.5 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/1.244, allocations: 384 / 0.9207 GB, free: 117.5 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.004723/1.248, allocations: 2.526 MB / 0.9231 GB, free: 115 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01104/1.26, allocations: 2.755 MB / 0.9258 GB, free: 112.3 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/1.273, allocations: 11.51 MB / 0.9371 GB, free: 100.8 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/1.275, allocations: 3.221 MB / 0.9402 GB, free: 97.53 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005251/1.28, allocations: 1.662 MB / 0.9418 GB, free: 95.88 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009418/1.281, allocations: 351.3 kB / 0.9422 GB, free: 95.54 MB / 0.6387 GB Notification: Performance of SimCode: time 6.61e-07/1.281, allocations: 0 / 0.9422 GB, free: 95.54 MB / 0.6387 GB Notification: Performance of Templates: time 0.1241/1.405, allocations: 105.9 MB / 1.046 GB, free: 6.574 MB / 0.6544 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)