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: "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007619/0.007619, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.278/1.278, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7239/0.7239, allocations: 132.3 MB / 423.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002664/0.0002664, allocations: 13.8 kB / 0.5041 GB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3201, allocations: 81.57 MB / 0.5837 GB, free: 4.023 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06766/0.3878, allocations: 78.53 MB / 0.6604 GB, free: 1.629 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02236/0.4102, allocations: 19.1 MB / 0.6791 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.4123, allocations: 95.38 kB / 0.6792 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002161/0.4145, allocations: 0.9676 MB / 0.6801 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00497/0.4195, allocations: 2.585 MB / 0.6826 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004227/0.4237, allocations: 2.171 MB / 0.6847 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01667/0.4404, allocations: 20.74 MB / 0.705 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006365/0.4468, allocations: 6.019 MB / 0.7109 GB, free: 13.78 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006436/0.4532, allocations: 4.672 MB / 0.7154 GB, free: 9.09 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005139/0.4584, allocations: 4.839 MB / 0.7202 GB, free: 4.23 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004957/0.4589, allocations: 256 kB / 0.7204 GB, free: 3.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002948/0.4618, allocations: 1.494 MB / 0.7219 GB, free: 2.484 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001043/0.4629, allocations: 1.268 MB / 0.7231 GB, free: 1.211 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002659/0.4656, allocations: 2.897 MB / 0.7259 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006781/0.4723, allocations: 8.562 MB / 0.7343 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4724, allocations: 4 kB / 0.7343 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4724, allocations: 0 / 0.7343 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.308e-05/0.4724, allocations: 0 / 0.7343 GB, free: 5.699 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.008521/0.481, allocations: 5.347 MB / 0.7395 GB, free: 268 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.481, allocations: 12.03 kB / 0.7395 GB, free: 256 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005892/0.4816, allocations: 467.6 kB / 0.74 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002746/0.4844, allocations: 0.8517 MB / 0.7408 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007456/0.4918, allocations: 5.262 MB / 0.746 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.492, allocations: 263.1 kB / 0.7462 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005195/0.4925, allocations: 339.9 kB / 0.7465 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007413/0.5, allocations: 5.713 MB / 0.7521 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/0.5, allocations: 15.81 kB / 0.7521 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.5004, allocations: 144 kB / 0.7523 GB, free: 2.883 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.198e-05/0.5005, allocations: 122 kB / 0.7524 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007483/0.508, allocations: 5.542 MB / 0.7578 GB, free: 13.21 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.02522/0.5332, allocations: 23.95 MB / 0.7812 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004011/0.5372, allocations: 2.774 MB / 0.7839 GB, free: 1.348 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00246/0.5397, allocations: 1.905 MB / 0.7857 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009129/0.5488, allocations: 7.089 MB / 0.7927 GB, free: 8.031 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002605/0.5515, allocations: 1.937 MB / 0.7946 GB, free: 6.078 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00314/0.5546, allocations: 1.247 MB / 0.7958 GB, free: 4.828 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=156): time 3.256e-06/0.5546, allocations: 0 / 0.7958 GB, free: 4.828 MB / 0.6231 GB Notification: Performance of matching and sorting (n=156): time 0.01789/0.5725, allocations: 7.613 MB / 0.8032 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.5726, allocations: 68.72 kB / 0.8033 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005198/0.5778, allocations: 4.894 MB / 0.8081 GB, free: 8.18 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001886/0.578, allocations: 69.7 kB / 0.8081 GB, free: 8.105 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001764/0.5798, allocations: 2.447 MB / 0.8105 GB, free: 5.633 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000496/0.5803, allocations: 0.5471 MB / 0.811 GB, free: 5.078 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002993/0.5806, allocations: 227 kB / 0.8113 GB, free: 4.852 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.5806, allocations: 305.1 kB / 0.8116 GB, free: 4.551 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002357/0.583, allocations: 1.676 MB / 0.8132 GB, free: 2.871 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2339/0.8169, allocations: 2.869 MB / 0.816 GB, free: 204.1 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00598/0.8229, allocations: 4.589 MB / 0.8205 GB, free: 202.5 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/0.8229, allocations: 12.47 kB / 0.8205 GB, free: 202.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.009718/0.8326, allocations: 6.082 MB / 0.8264 GB, free: 200.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003353/0.833, allocations: 1.106 MB / 0.8275 GB, free: 199.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.678e-05/0.833, allocations: 33.73 kB / 0.8275 GB, free: 199.1 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06653/0.8996, allocations: 11.9 MB / 0.8392 GB, free: 197.3 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002231/0.9018, allocations: 0.672 MB / 0.8398 GB, free: 197.1 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006066/0.9079, allocations: 5.036 MB / 0.8447 GB, free: 193.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003266/0.9112, allocations: 343.7 kB / 0.8451 GB, free: 193.6 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002073/0.9114, allocations: 162.1 kB / 0.8452 GB, free: 193.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 8.305e-06/0.9114, allocations: 4.438 kB / 0.8452 GB, free: 193.5 MB / 0.6387 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00616/0.9176, allocations: 5.335 MB / 0.8504 GB, free: 190.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-05/0.9176, allocations: 36.44 kB / 0.8505 GB, free: 190.7 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06385/0.9815, allocations: 11.66 MB / 0.8618 GB, free: 179.5 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/0.9837, allocations: 0.6603 MB / 0.8625 GB, free: 178.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008459/0.9921, allocations: 8.036 MB / 0.8703 GB, free: 170.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003832/0.996, allocations: 317.6 kB / 0.8706 GB, free: 170.2 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003417/0.9963, allocations: 159.9 kB / 0.8708 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.003251/0.9996, allocations: 1.557 MB / 0.8723 GB, free: 168.5 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007866/1, allocations: 463.7 kB / 0.8728 GB, free: 168.3 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/1.011, allocations: 4.854 MB / 0.8775 GB, free: 163.5 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/1.011, allocations: 16 kB / 0.8775 GB, free: 163.5 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.011, allocations: 3.938 kB / 0.8775 GB, free: 163.5 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0211/1.032, allocations: 7.047 MB / 0.8844 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.02635/1.058, allocations: 13.18 MB / 0.8973 GB, free: 143 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/1.058, allocations: 4 kB / 0.8973 GB, free: 143 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/1.061, allocations: 373 kB / 0.8976 GB, free: 142.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06563/1.127, allocations: 11.91 MB / 0.9093 GB, free: 130.7 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/1.127, allocations: 47.97 kB / 0.9093 GB, free: 130.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005026/1.132, allocations: 4.367 MB / 0.9136 GB, free: 126.3 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.132, allocations: 0 / 0.9136 GB, free: 126.3 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02021/1.152, allocations: 9.693 MB / 0.923 GB, free: 116.5 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001792/1.154, allocations: 1.07 MB / 0.9241 GB, free: 115.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004775/1.155, allocations: 32 kB / 0.9241 GB, free: 115.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002554/1.157, allocations: 268.5 kB / 0.9244 GB, free: 115.2 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/1.157, allocations: 113 kB / 0.9245 GB, free: 115.1 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/1.158, allocations: 83.94 kB / 0.9246 GB, free: 115 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.003253/1.161, allocations: 3.35 MB / 0.9278 GB, free: 111.6 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.61e-07/1.161, allocations: 0 / 0.9278 GB, free: 111.6 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.005047/1.166, allocations: 2.661 MB / 0.9304 GB, free: 109.1 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.02078/1.187, allocations: 10.55 MB / 0.9407 GB, free: 98.62 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01249/1.199, allocations: 7.499 MB / 0.948 GB, free: 91.09 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.199, allocations: 0 / 0.948 GB, free: 91.09 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.00454/1.204, allocations: 2.507 MB / 0.9505 GB, free: 88.58 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01024/1.214, allocations: 2.725 MB / 0.9532 GB, free: 85.93 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07266/1.287, allocations: 51.37 MB / 1.003 GB, free: 30.85 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/1.289, allocations: 3.232 MB / 1.006 GB, free: 27.59 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004468/1.293, allocations: 1.708 MB / 1.008 GB, free: 25.89 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001864/1.295, allocations: 1.995 MB / 1.01 GB, free: 23.89 MB / 0.6387 GB Notification: Performance of SimCode: time 5.61e-07/1.295, allocations: 0 / 1.01 GB, free: 23.89 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7723/2.067, allocations: 142.6 MB / 1.149 GB, free: 163.3 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/2.067, allocations: 269.4 kB / 1.15 GB, free: 162.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.255/7.322, allocations: 0 / 1.15 GB, free: 162.9 MB / 0.67 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)