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.001098/0.001098, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.464/1.464, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.043/1.043, allocations: 135.1 MB / 425.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.08 kB / 0.5054 GB, free: 5.309 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1991/0.2004, allocations: 80.91 MB / 0.5844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.3614/0.5619, allocations: 54.19 MB / 0.6373 GB, free: 22.06 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01826/0.5802, allocations: 13.85 MB / 0.6508 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003975/0.5842, allocations: 73.31 kB / 0.6509 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.5876, allocations: 0.9676 MB / 0.6518 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005739/0.5934, allocations: 2.16 MB / 0.654 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004788/0.5982, allocations: 2 MB / 0.6559 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005929/0.6042, allocations: 4.421 MB / 0.6602 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002908/0.6071, allocations: 1.574 MB / 0.6618 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005668/0.6128, allocations: 1.801 MB / 0.6635 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003401/0.6162, allocations: 1.276 MB / 0.6648 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008513/0.6171, allocations: 162.9 kB / 0.6649 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005942/0.623, allocations: 1.404 MB / 0.6663 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001376/0.6245, allocations: 482.7 kB / 0.6668 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.6273, allocations: 0.9291 MB / 0.6677 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.008522/0.6358, allocations: 3.048 MB / 0.6706 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.6359, allocations: 0 / 0.6706 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.996e-06/0.6359, allocations: 0 / 0.6706 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001563/0.636, allocations: 0 / 0.6706 GB, free: 2.688 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.008166/0.6442, allocations: 2.165 MB / 0.6728 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.6443, allocations: 8.906 kB / 0.6728 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002749/0.647, allocations: 379.5 kB / 0.6731 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003947/0.651, allocations: 1.414 MB / 0.6745 GB, free: 332 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004414/0.6515, allocations: 137.7 kB / 0.6746 GB, free: 292 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003055/0.6518, allocations: 107.9 kB / 0.6747 GB, free: 256 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/0.6549, allocations: 1.198 MB / 0.6759 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.655, allocations: 5.156 kB / 0.6759 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.6551, allocations: 46.44 kB / 0.676 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.147e-05/0.6551, allocations: 25.16 kB / 0.676 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.6578, allocations: 0.9794 MB / 0.6769 GB, free: 15.35 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 preOpt removeSimpleEquations (simulation): time 0.01012/0.6679, allocations: 5.196 MB / 0.682 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.6695, allocations: 0.6123 MB / 0.6826 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007089/0.6702, allocations: 298.8 kB / 0.6829 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005286/0.6755, allocations: 2.98 MB / 0.6858 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008541/0.6764, allocations: 336.2 kB / 0.6861 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.755e-06/0.6764, allocations: 0 / 0.6861 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002357/0.6788, allocations: 0.8787 MB / 0.687 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.6789, allocations: 57.34 kB / 0.687 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002301/0.6812, allocations: 1.392 MB / 0.6884 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.933e-05/0.6813, allocations: 45.86 kB / 0.6884 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007012/0.682, allocations: 0.7338 MB / 0.6892 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002241/0.6822, allocations: 195 kB / 0.6893 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003494/0.6826, allocations: 205 kB / 0.6895 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.6827, allocations: 341.2 kB / 0.6899 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009079/0.6837, allocations: 332.6 kB / 0.6902 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.6849, allocations: 0.6828 MB / 0.6908 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002034/0.6869, allocations: 0.9942 MB / 0.6918 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.687, allocations: 3.5 kB / 0.6918 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003079/0.6901, allocations: 1.177 MB / 0.693 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.615e-05/0.6901, allocations: 34.45 kB / 0.693 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.6901, allocations: 11.28 kB / 0.693 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.964e-05/0.6902, allocations: 20.06 kB / 0.693 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008816/0.6911, allocations: 237.7 kB / 0.6933 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.097e-05/0.6911, allocations: 22.7 kB / 0.6933 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.6928, allocations: 170.9 kB / 0.6934 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.693, allocations: 55.95 kB / 0.6935 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001641/0.6946, allocations: 0.6133 MB / 0.6941 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001139/0.6958, allocations: 0.6795 MB / 0.6948 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001788/0.6976, allocations: 0.9865 MB / 0.6957 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.707e-06/0.6976, allocations: 8.641 kB / 0.6957 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002951/0.7006, allocations: 1.178 MB / 0.6969 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.7006, allocations: 38.44 kB / 0.6969 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.7006, allocations: 10.16 kB / 0.6969 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.7007, allocations: 15.97 kB / 0.6969 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000849/0.7015, allocations: 236.1 kB / 0.6972 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.812e-05/0.7016, allocations: 26.36 kB / 0.6972 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.7032, allocations: 139 kB / 0.6973 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.7033, allocations: 51.86 kB / 0.6974 GB, free: 2.543 MB / 0.5137 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 (115): * Single equations (assignments): 113 * 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.0004098/0.7037, allocations: 252 kB / 0.6976 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003544/0.7041, allocations: 147.5 kB / 0.6978 GB, free: 2.23 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.7066, allocations: 1.123 MB / 0.6989 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.7066, allocations: 19.36 kB / 0.6989 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.7067, allocations: 0 / 0.6989 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001522/0.7082, allocations: 0.8911 MB / 0.6997 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004289/0.7125, allocations: 2.202 MB / 0.7019 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.7125, allocations: 1.344 kB / 0.7019 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.7131, allocations: 131.9 kB / 0.702 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.7131, allocations: 2.812 kB / 0.702 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.7132, allocations: 20.02 kB / 0.702 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.7132, allocations: 5.156 kB / 0.702 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.7132, allocations: 0 / 0.702 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002836/0.716, allocations: 1.426 MB / 0.7034 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000769/0.7168, allocations: 332.7 kB / 0.7038 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.717, allocations: 20.12 kB / 0.7038 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007416/0.7177, allocations: 48.83 kB / 0.7038 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.7179, allocations: 54.61 kB / 0.7039 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.299e-05/0.718, allocations: 31.23 kB / 0.7039 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001677/0.7197, allocations: 0.9529 MB / 0.7048 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7197, allocations: 0 / 0.7048 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003577/0.7232, allocations: 0.8106 MB / 0.7056 GB, free: 13.67 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 (71): * Single equations (assignments): 57 * 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.001863/0.7251, allocations: 0.5559 MB / 0.7062 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004115/0.7293, allocations: 1.516 MB / 0.7077 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.7293, allocations: 0 / 0.7077 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008858/0.7302, allocations: 413 kB / 0.708 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/0.7342, allocations: 0.7882 MB / 0.7088 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.739, allocations: 2.649 MB / 0.7114 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008811/0.7399, allocations: 1.262 MB / 0.7126 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001943/0.7418, allocations: 416 kB / 0.713 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/0.7421, allocations: 127.4 kB / 0.7132 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of SimCode: time 8.01e-07/0.7421, allocations: 0 / 0.7132 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of Templates: time 0.06203/0.8042, allocations: 31.99 MB / 0.7444 GB, free: 7.945 MB / 0.5606 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)