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.001356/0.001356, allocations: 102.6 kB / 16.4 MB, free: 6.461 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.001423/0.001423, allocations: 189.7 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.801/0.801, allocations: 132.2 MB / 423.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 62.91 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1722, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pump.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08642/0.2587, allocations: 80.55 MB / 0.739 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.4169/0.6756, allocations: 19.21 MB / 0.7577 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005577/0.6812, allocations: 107.4 kB / 0.7578 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004571/0.6858, allocations: 1.15 MB / 0.759 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.6966, allocations: 2.781 MB / 0.7617 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007527/0.7041, allocations: 2.412 MB / 0.764 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01965/0.7238, allocations: 15.51 MB / 0.7792 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01141/0.7352, allocations: 7.214 MB / 0.7862 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01491/0.7502, allocations: 5.98 MB / 0.7921 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01062/0.7608, allocations: 5.052 MB / 0.797 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002687/0.7636, allocations: 0.5376 MB / 0.7975 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008805/0.7724, allocations: 1.802 MB / 0.7993 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00338/0.7758, allocations: 1.622 MB / 0.8009 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.008122/0.784, allocations: 3.292 MB / 0.8041 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01452/0.7985, allocations: 9.077 MB / 0.8129 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.7986, allocations: 4 kB / 0.8129 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.244e-06/0.7986, allocations: 0 / 0.8129 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0003175/0.7989, allocations: 0 / 0.8129 GB, free: 9.645 MB / 0.5919 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.01687/0.8158, allocations: 6.48 MB / 0.8193 GB, free: 3.137 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.8158, allocations: 12.03 kB / 0.8193 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004457/0.8203, allocations: 0.8166 MB / 0.8201 GB, free: 2.301 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.8326, allocations: 5.349 MB / 0.8253 GB, free: 13 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.8329, allocations: 254.5 kB / 0.8255 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001374/0.8342, allocations: 350.8 kB / 0.8259 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/0.8456, allocations: 5.698 MB / 0.8314 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.623e-05/0.8457, allocations: 11.88 kB / 0.8315 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005428/0.8463, allocations: 151.9 kB / 0.8316 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.8464, allocations: 117.9 kB / 0.8317 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.8574, allocations: 5.522 MB / 0.8371 GB, free: 0.6602 MB / 0.6075 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.04052/0.8979, allocations: 23.67 MB / 0.8602 GB, free: 8.254 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005197/0.9032, allocations: 2.748 MB / 0.8629 GB, free: 5.504 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00303/0.9062, allocations: 1.897 MB / 0.8648 GB, free: 3.602 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01414/0.9204, allocations: 7.086 MB / 0.8717 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003454/0.9239, allocations: 1.914 MB / 0.8735 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003807/0.9278, allocations: 0.7052 MB / 0.8742 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=155): time 1.383e-05/0.9278, allocations: 0 / 0.8742 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of matching and sorting (n=155): time 0.0265/0.9543, allocations: 7.931 MB / 0.882 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.9544, allocations: 76.02 kB / 0.8821 GB, free: 1.562 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01038/0.9648, allocations: 5.009 MB / 0.8869 GB, free: 12.57 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0007861/0.9657, allocations: 69.7 kB / 0.887 GB, free: 12.5 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.002732/0.9684, allocations: 2.447 MB / 0.8894 GB, free: 10.04 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.9696, allocations: 0.5525 MB / 0.8899 GB, free: 9.488 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00123/0.9709, allocations: 0.6646 MB / 0.8906 GB, free: 8.816 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.971, allocations: 309.1 kB / 0.8909 GB, free: 8.512 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002904/0.9739, allocations: 1.722 MB / 0.8926 GB, free: 6.781 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003789/0.9777, allocations: 2.905 MB / 0.8954 GB, free: 3.324 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007025/0.9848, allocations: 4.673 MB / 0.9 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.928e-05/0.9848, allocations: 8 kB / 0.9 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01317/0.998, allocations: 6.299 MB / 0.9061 GB, free: 7.863 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 8.073e-05/0.9981, allocations: 45.7 kB / 0.9062 GB, free: 7.812 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.868e-05/0.9982, allocations: 32 kB / 0.9062 GB, free: 7.781 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07996/1.078, allocations: 13.55 MB / 0.9194 GB, free: 10.31 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/1.081, allocations: 0.6435 MB / 0.9201 GB, free: 9.668 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009851/1.091, allocations: 5.481 MB / 0.9254 GB, free: 4.105 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.096, allocations: 220.4 kB / 0.9256 GB, free: 3.891 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007091/1.097, allocations: 195.9 kB / 0.9258 GB, free: 3.699 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005269/1.102, allocations: 2.96 MB / 0.9287 GB, free: 0.7305 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003404/1.106, allocations: 2.844 MB / 0.9315 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006166/1.112, allocations: 4.549 MB / 0.9359 GB, free: 8.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.884e-05/1.112, allocations: 15.94 kB / 0.9359 GB, free: 8.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.01094/1.123, allocations: 5.994 MB / 0.9418 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.38e-05/1.123, allocations: 48.67 kB / 0.9418 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.442e-05/1.123, allocations: 32 kB / 0.9419 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07861/1.202, allocations: 13.3 MB / 0.9549 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/1.205, allocations: 0.6435 MB / 0.9555 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01431/1.219, allocations: 8.91 MB / 0.9642 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004781/1.224, allocations: 228.8 kB / 0.9644 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007828/1.225, allocations: 183.9 kB / 0.9646 GB, free: 10.7 MB / 0.7481 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.001312/1.226, allocations: 367.3 kB / 0.9649 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001961/1.228, allocations: 466.2 kB / 0.9654 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00992/1.238, allocations: 4.572 MB / 0.9698 GB, free: 5.289 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.387e-05/1.238, allocations: 16 kB / 0.9699 GB, free: 5.273 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/1.238, allocations: 7.938 kB / 0.9699 GB, free: 5.266 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01089/1.249, allocations: 5.618 MB / 0.9753 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02958/1.278, allocations: 10.74 MB / 0.9858 GB, free: 4.617 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.926e-05/1.278, allocations: 3.938 kB / 0.9858 GB, free: 4.613 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/1.281, allocations: 371.5 kB / 0.9862 GB, free: 4.25 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0724/1.353, allocations: 11.7 MB / 0.9976 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00047/1.354, allocations: 51.95 kB / 0.9977 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006152/1.36, allocations: 3.547 MB / 1.001 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.36, allocations: 3.984 kB / 1.001 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02407/1.384, allocations: 8.411 MB / 1.009 GB, free: 12.47 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003497/1.388, allocations: 0.9208 MB / 1.01 GB, free: 11.53 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001609/1.389, allocations: 35.94 kB / 1.01 GB, free: 11.49 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003838/1.393, allocations: 139.7 kB / 1.01 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005206/1.394, allocations: 109.8 kB / 1.011 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004034/1.394, allocations: 91.92 kB / 1.011 GB, free: 11.16 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.007581/1.402, allocations: 3.436 MB / 1.014 GB, free: 7.742 MB / 0.795 GB Notification: Performance of sort global known variables: time 7.41e-07/1.402, allocations: 0 / 1.014 GB, free: 7.742 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.01222/1.414, allocations: 2.635 MB / 1.017 GB, free: 5.105 MB / 0.795 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.002144/1.416, allocations: 0.5204 MB / 1.017 GB, free: 4.613 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.02066/1.437, allocations: 7.398 MB / 1.024 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.437, allocations: 384 / 1.024 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.006278/1.443, allocations: 2.302 MB / 1.027 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01561/1.459, allocations: 2.703 MB / 1.029 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0249/1.484, allocations: 10.05 MB / 1.039 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004486/1.488, allocations: 3.221 MB / 1.042 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/1.49, allocations: 367.3 kB / 1.042 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of SimCode: time 1.082e-06/1.49, allocations: 3.938 kB / 1.042 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of Templates: time 0.5514/2.042, allocations: 163.3 MB / 1.202 GB, free: 187.2 MB / 0.8262 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)