Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_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_dev_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.0009096/0.0009098, 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.001058/0.001058, 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.568/1.568, 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-master/package.mo): time 1.028/1.028, allocations: 135.3 MB / 426.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003526, allocations: 8 kB / 0.507 GB, free: 5.133 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2003, allocations: 82.3 MB / 0.5874 GB, free: 2.996 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.4227/0.6231, allocations: 49.82 MB / 0.636 GB, free: 24.85 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01824/0.6414, allocations: 12.97 MB / 0.6487 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003078/0.6445, allocations: 63.62 kB / 0.6488 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002981/0.6475, allocations: 0.6352 MB / 0.6494 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005875/0.6534, allocations: 1.787 MB / 0.6511 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004962/0.6584, allocations: 1.498 MB / 0.6526 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.007899/0.6663, allocations: 5.051 MB / 0.6575 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002592/0.6689, allocations: 1.148 MB / 0.6587 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003847/0.6728, allocations: 1.45 MB / 0.6601 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003152/0.676, allocations: 1.19 MB / 0.6612 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004148/0.6764, allocations: 65.88 kB / 0.6613 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003868/0.6803, allocations: 0.9779 MB / 0.6622 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007182/0.681, allocations: 369.5 kB / 0.6626 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009704/0.682, allocations: 363.5 kB / 0.6629 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004459/0.6865, allocations: 2.215 MB / 0.6651 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.6865, allocations: 1.625 kB / 0.6651 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.238e-06/0.6865, allocations: 0 / 0.6651 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.425e-05/0.6866, allocations: 0.5 kB / 0.6651 GB, free: 8.852 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.00499/0.6916, allocations: 1.876 MB / 0.6669 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.6917, allocations: 10.44 kB / 0.667 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001924/0.6936, allocations: 403.6 kB / 0.6673 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003319/0.697, allocations: 1.395 MB / 0.6687 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00036/0.6973, allocations: 151.7 kB / 0.6688 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.6975, allocations: 110.8 kB / 0.6689 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002725/0.7003, allocations: 1.229 MB / 0.6702 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.7003, allocations: 9.062 kB / 0.6702 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.7004, allocations: 42.72 kB / 0.6702 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.23e-05/0.7005, allocations: 28.3 kB / 0.6702 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.7031, allocations: 1.041 MB / 0.6712 GB, free: 5.723 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.00866/0.7118, allocations: 5.159 MB / 0.6763 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.7134, allocations: 0.6892 MB / 0.677 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000735/0.7142, allocations: 337.9 kB / 0.6773 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004631/0.7188, allocations: 2.833 MB / 0.68 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.72, allocations: 452.5 kB / 0.6805 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007239/0.7207, allocations: 73.62 kB / 0.6805 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=57): time 4.599e-06/0.7207, allocations: 0 / 0.6805 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of matching and sorting (n=57): time 0.002703/0.7234, allocations: 1.033 MB / 0.6816 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.7235, allocations: 92.81 kB / 0.6816 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/0.7261, allocations: 1.448 MB / 0.6831 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.474e-05/0.7262, allocations: 38.73 kB / 0.6831 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007963/0.727, allocations: 0.7039 MB / 0.6838 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.7272, allocations: 197.7 kB / 0.684 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.466e-05/0.7273, allocations: 15.84 kB / 0.684 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002004/0.7275, allocations: 335.6 kB / 0.6843 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.7287, allocations: 372.1 kB / 0.6847 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.7301, allocations: 0.6481 MB / 0.6853 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.7314, allocations: 458.9 kB / 0.6857 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.7314, allocations: 2.594 kB / 0.6857 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003335/0.7347, allocations: 1.209 MB / 0.6869 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003285/0.7351, allocations: 347.1 kB / 0.6872 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/0.7351, allocations: 11.47 kB / 0.6873 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.76e-05/0.7352, allocations: 13.38 kB / 0.6873 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009808/0.7362, allocations: 229.5 kB / 0.6875 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.983e-05/0.7362, allocations: 18.39 kB / 0.6875 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.738, allocations: 159 kB / 0.6877 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.7382, allocations: 49.28 kB / 0.6877 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.7382, allocations: 3.875 kB / 0.6877 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002797/0.741, allocations: 0.9968 MB / 0.6887 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.81e-05/0.741, allocations: 8.062 kB / 0.6887 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.448e-05/0.7411, allocations: 13.59 kB / 0.6887 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.7424, allocations: 222.8 kB / 0.6889 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-05/0.7424, allocations: 17.31 kB / 0.6889 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/0.7448, allocations: 130.3 kB / 0.6891 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/0.745, allocations: 50.48 kB / 0.6891 GB, free: 11 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,threeWayValveSwitch.switch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 103 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001563/0.7465, allocations: 449.1 kB / 0.6895 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005774/0.7471, allocations: 150.9 kB / 0.6897 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004219/0.7513, allocations: 1.236 MB / 0.6909 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.502e-05/0.7514, allocations: 11.48 kB / 0.6909 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.7514, allocations: 0 / 0.6909 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002455/0.7539, allocations: 0.9917 MB / 0.6919 GB, free: 9.633 MB / 0.5137 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.007672/0.7616, allocations: 2.475 MB / 0.6943 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/0.7616, allocations: 1.156 kB / 0.6943 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007908/0.7624, allocations: 151.5 kB / 0.6944 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.678e-05/0.7625, allocations: 12.36 kB / 0.6944 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.7626, allocations: 24.86 kB / 0.6945 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.731e-05/0.7626, allocations: 4.281 kB / 0.6945 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.7626, allocations: 2.094 kB / 0.6945 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004121/0.7667, allocations: 1.594 MB / 0.696 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/0.7681, allocations: 353.3 kB / 0.6964 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006842/0.7688, allocations: 22.12 kB / 0.6964 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.7704, allocations: 97.28 kB / 0.6965 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.7706, allocations: 56.02 kB / 0.6965 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/0.7708, allocations: 37.47 kB / 0.6966 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003023/0.7738, allocations: 0.9838 MB / 0.6975 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7738, allocations: 0 / 0.6975 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005061/0.7789, allocations: 0.7862 MB / 0.6983 GB, free: 5.953 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (75): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002332/0.7812, allocations: 0.5082 MB / 0.6988 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004616/0.7859, allocations: 1.524 MB / 0.7003 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/0.7859, allocations: 0 / 0.7003 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.7872, allocations: 471.1 kB / 0.7007 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005771/0.793, allocations: 0.8171 MB / 0.7015 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007968/0.8009, allocations: 3.281 MB / 0.7047 GB, free: 2.129 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/0.8026, allocations: 1.26 MB / 0.706 GB, free: 1.172 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002794/0.8054, allocations: 407.5 kB / 0.7063 GB, free: 0.9844 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000549/0.806, allocations: 145.7 kB / 0.7065 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of SimCode: time 1.233e-06/0.806, allocations: 0 / 0.7065 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of Templates: time 0.06147/0.8675, allocations: 32.3 MB / 0.738 GB, free: 1.504 MB / 0.545 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)