Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.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.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, 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.007444/0.007444, allocations: 171.5 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.409/1.409, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7461/0.7461, allocations: 132.3 MB / 423.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005697/0.0005698, allocations: 12 kB / 0.504 GB, free: 3.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5104/0.511, allocations: 81.58 MB / 0.5837 GB, free: 4.066 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.05727/0.5683, allocations: 52.76 MB / 0.6352 GB, free: 11.57 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02336/0.5917, allocations: 13.75 MB / 0.6486 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004163/0.5959, allocations: 63.56 kB / 0.6487 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003504/0.5994, allocations: 0.8181 MB / 0.6495 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00767/0.6071, allocations: 2.009 MB / 0.6515 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00673/0.6139, allocations: 1.791 MB / 0.6532 GB, free: 9.109 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.009012/0.6229, allocations: 5.96 MB / 0.659 GB, free: 3.141 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002486/0.6254, allocations: 1.294 MB / 0.6603 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003899/0.6293, allocations: 1.505 MB / 0.6618 GB, free: 308 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002289/0.6316, allocations: 1.244 MB / 0.663 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.6318, allocations: 64 kB / 0.663 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00344/0.6353, allocations: 1.322 MB / 0.6643 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004375/0.6357, allocations: 382.4 kB / 0.6647 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009928/0.6367, allocations: 0.8371 MB / 0.6655 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003957/0.6407, allocations: 2.936 MB / 0.6684 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.6407, allocations: 4 kB / 0.6684 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.954e-06/0.6407, allocations: 3.938 kB / 0.6684 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.383e-05/0.6408, allocations: 0 / 0.6684 GB, free: 9.488 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.00347/0.6442, allocations: 1.843 MB / 0.6702 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.6443, allocations: 12.03 kB / 0.6702 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/0.646, allocations: 394.4 kB / 0.6706 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002803/0.6489, allocations: 1.486 MB / 0.672 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004199/0.6493, allocations: 149.9 kB / 0.6722 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.6495, allocations: 108 kB / 0.6723 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002412/0.6519, allocations: 1.214 MB / 0.6735 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.6519, allocations: 7.938 kB / 0.6735 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.6521, allocations: 44 kB / 0.6735 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/0.6521, allocations: 24 kB / 0.6735 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.6545, allocations: 1.019 MB / 0.6745 GB, free: 3.047 MB / 0.4981 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.007442/0.6619, allocations: 5.098 MB / 0.6795 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.6633, allocations: 0.6453 MB / 0.6801 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006647/0.664, allocations: 314.3 kB / 0.6804 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004359/0.6684, allocations: 3.017 MB / 0.6834 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008191/0.6692, allocations: 353.2 kB / 0.6837 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002795/0.6695, allocations: 71.12 kB / 0.6838 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=54): time 2.073e-06/0.6695, allocations: 0 / 0.6838 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of matching and sorting (n=54): time 0.002104/0.6716, allocations: 0.9072 MB / 0.6847 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.6717, allocations: 59.84 kB / 0.6847 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.6738, allocations: 1.384 MB / 0.6861 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.812e-05/0.6739, allocations: 45.69 kB / 0.6861 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006796/0.6746, allocations: 0.7268 MB / 0.6868 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.6748, allocations: 193.2 kB / 0.687 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.6749, allocations: 89.66 kB / 0.6871 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.6751, allocations: 341.9 kB / 0.6874 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008215/0.6759, allocations: 341.8 kB / 0.6878 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.677, allocations: 0.6882 MB / 0.6884 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.6788, allocations: 1.024 MB / 0.6894 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.6788, allocations: 4 kB / 0.6894 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002392/0.6812, allocations: 1.206 MB / 0.6906 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002929/0.6815, allocations: 431.4 kB / 0.691 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.6815, allocations: 12 kB / 0.691 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.6815, allocations: 16 kB / 0.691 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008233/0.6824, allocations: 243.6 kB / 0.6913 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.544e-05/0.6824, allocations: 23.92 kB / 0.6913 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.6835, allocations: 152.3 kB / 0.6914 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.322e-05/0.6837, allocations: 51.98 kB / 0.6915 GB, free: 488 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.752e-06/0.6837, allocations: 4 kB / 0.6915 GB, free: 484 kB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002181/0.6859, allocations: 1.057 MB / 0.6925 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.6859, allocations: 16.28 kB / 0.6925 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.6859, allocations: 16 kB / 0.6926 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007898/0.6867, allocations: 239.6 kB / 0.6928 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.6867, allocations: 27.86 kB / 0.6928 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009429/0.6877, allocations: 124.4 kB / 0.6929 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-05/0.6878, allocations: 55.98 kB / 0.693 GB, free: 14.94 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 (threeWayValveSwitch.switch,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 114 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006247/0.6884, allocations: 449.3 kB / 0.6934 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.6886, allocations: 146.2 kB / 0.6936 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/0.6909, allocations: 1.155 MB / 0.6947 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.6909, allocations: 19.88 kB / 0.6947 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.6909, allocations: 0 / 0.6947 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001504/0.6924, allocations: 0.9172 MB / 0.6956 GB, free: 12.23 MB / 0.5294 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.003592/0.696, allocations: 2.238 MB / 0.6978 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.696, allocations: 0 / 0.6978 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.6966, allocations: 123.9 kB / 0.6979 GB, free: 9.801 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.615e-06/0.6966, allocations: 4 kB / 0.6979 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/0.6967, allocations: 24.11 kB / 0.6979 GB, free: 9.773 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-06/0.6967, allocations: 7.984 kB / 0.6979 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6967, allocations: 4 kB / 0.6979 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/0.6992, allocations: 1.449 MB / 0.6994 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.6997, allocations: 331 kB / 0.6997 GB, free: 7.938 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.6998, allocations: 16 kB / 0.6997 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007941/0.7006, allocations: 87.83 kB / 0.6998 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.7008, allocations: 52.48 kB / 0.6998 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.7009, allocations: 39.97 kB / 0.6999 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00148/0.7024, allocations: 0.9328 MB / 0.7008 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.61e-07/0.7024, allocations: 0 / 0.7008 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00238/0.7048, allocations: 0.7954 MB / 0.7015 GB, free: 6.016 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (threeWayValveSwitch.vol.dynBal.U,T_mix.T,T_leg0.T,T_leg1.T) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,threeWayValveSwitch.switch) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00124/0.706, allocations: 0.5326 MB / 0.7021 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00324/0.7093, allocations: 1.511 MB / 0.7035 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.7093, allocations: 0 / 0.7035 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008452/0.7101, allocations: 415.8 kB / 0.7039 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004216/0.7144, allocations: 0.7451 MB / 0.7047 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005675/0.7201, allocations: 3.273 MB / 0.7079 GB, free: 15.51 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.7213, allocations: 1.266 MB / 0.7091 GB, free: 14.22 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001984/0.7233, allocations: 423.7 kB / 0.7095 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003701/0.7236, allocations: 127.4 kB / 0.7096 GB, free: 13.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/0.7237, allocations: 4 kB / 0.7096 GB, free: 13.69 MB / 0.545 GB Notification: Performance of Templates: time 0.05924/0.7829, allocations: 30.47 MB / 0.7394 GB, free: 15.62 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)