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.001482/0.001482, allocations: 108.5 kB / 15.99 MB, free: 6.367 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.001688/0.001688, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.529/1.529, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.816/0.816, allocations: 135.1 MB / 425.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 63.89 kB / 0.5055 GB, free: 8.703 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4915/0.4929, allocations: 80.91 MB / 0.5845 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.05374/0.5467, allocations: 53.74 MB / 0.637 GB, free: 5.055 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02329/0.5701, allocations: 13.76 MB / 0.6504 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003943/0.5741, allocations: 67.56 kB / 0.6505 GB, free: 7.195 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003995/0.5782, allocations: 0.8456 MB / 0.6513 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007688/0.5859, allocations: 2.007 MB / 0.6533 GB, free: 4.332 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006137/0.5921, allocations: 1.842 MB / 0.6551 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.007814/0.5999, allocations: 4.469 MB / 0.6594 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003143/0.6031, allocations: 1.559 MB / 0.661 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005866/0.609, allocations: 1.822 MB / 0.6627 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003044/0.612, allocations: 1.33 MB / 0.664 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008407/0.6129, allocations: 168 kB / 0.6642 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004359/0.6173, allocations: 1.416 MB / 0.6656 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.6184, allocations: 494.4 kB / 0.6661 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001777/0.6202, allocations: 0.9292 MB / 0.667 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004445/0.6247, allocations: 2.347 MB / 0.6693 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.6247, allocations: 4 kB / 0.6693 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.035e-06/0.6247, allocations: 0 / 0.6693 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.906e-05/0.6248, allocations: 3.938 kB / 0.6693 GB, free: 3.918 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.004731/0.6295, allocations: 2.158 MB / 0.6714 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.6296, allocations: 13.11 kB / 0.6714 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/0.6315, allocations: 374.4 kB / 0.6717 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/0.6348, allocations: 1.469 MB / 0.6732 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003759/0.6352, allocations: 141.9 kB / 0.6733 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/0.6354, allocations: 108 kB / 0.6734 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.638, allocations: 1.202 MB / 0.6746 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.508e-05/0.638, allocations: 11.84 kB / 0.6746 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.6382, allocations: 44 kB / 0.6746 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.6382, allocations: 24 kB / 0.6747 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002312/0.6405, allocations: 0.9875 MB / 0.6756 GB, free: 13.24 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.008559/0.6491, allocations: 5.09 MB / 0.6806 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.6506, allocations: 0.6267 MB / 0.6812 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006439/0.6512, allocations: 310.4 kB / 0.6815 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004874/0.6561, allocations: 3.005 MB / 0.6844 GB, free: 3.574 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008628/0.657, allocations: 349.2 kB / 0.6848 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005972/0.6576, allocations: 67.22 kB / 0.6848 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=54): time 3.016e-06/0.6577, allocations: 0 / 0.6848 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of matching and sorting (n=54): time 0.002189/0.6599, allocations: 0.8915 MB / 0.6857 GB, free: 2.254 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.6599, allocations: 63.83 kB / 0.6858 GB, free: 2.18 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/0.6621, allocations: 1.376 MB / 0.6871 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.465e-05/0.6622, allocations: 41.7 kB / 0.6872 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006789/0.6629, allocations: 0.7345 MB / 0.6879 GB, free: 4 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.6631, allocations: 189.3 kB / 0.6881 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003227/0.6634, allocations: 214.3 kB / 0.6883 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.6636, allocations: 337.9 kB / 0.6886 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008077/0.6644, allocations: 352.6 kB / 0.6889 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.6655, allocations: 0.6803 MB / 0.6896 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/0.6672, allocations: 1.009 MB / 0.6906 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.6673, allocations: 7.984 kB / 0.6906 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002705/0.67, allocations: 1.194 MB / 0.6917 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/0.67, allocations: 37.69 kB / 0.6918 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.6701, allocations: 15.94 kB / 0.6918 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.6701, allocations: 16 kB / 0.6918 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008489/0.671, allocations: 239.9 kB / 0.692 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.416e-05/0.671, allocations: 19.94 kB / 0.6921 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.6725, allocations: 136.5 kB / 0.6922 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.6726, allocations: 60.03 kB / 0.6922 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00133/0.6739, allocations: 0.6268 MB / 0.6929 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00106/0.675, allocations: 0.6842 MB / 0.6935 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001762/0.6768, allocations: 1.005 MB / 0.6945 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.093e-05/0.6768, allocations: 4 kB / 0.6945 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of matching and sorting (n=118) (initialization_lambda0): time 0.002794/0.6796, allocations: 1.198 MB / 0.6957 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/0.6797, allocations: 37.7 kB / 0.6957 GB, free: 7.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.6797, allocations: 12 kB / 0.6957 GB, free: 7.273 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.6798, allocations: 19.94 kB / 0.6957 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008884/0.6806, allocations: 239.9 kB / 0.696 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.436e-05/0.6807, allocations: 19.94 kB / 0.696 GB, free: 7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.6822, allocations: 136.4 kB / 0.6961 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.6823, allocations: 51.98 kB / 0.6962 GB, free: 6.816 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.0003534/0.6826, allocations: 258.8 kB / 0.6964 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002506/0.6829, allocations: 146.1 kB / 0.6966 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002496/0.6854, allocations: 1.137 MB / 0.6977 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.6854, allocations: 19.98 kB / 0.6977 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.6854, allocations: 0 / 0.6977 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001479/0.6869, allocations: 0.9054 MB / 0.6986 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003995/0.6909, allocations: 2.198 MB / 0.7007 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.691, allocations: 4 kB / 0.7007 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005883/0.6916, allocations: 124 kB / 0.7008 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.6916, allocations: 4 kB / 0.7008 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.6916, allocations: 19.98 kB / 0.7009 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.226e-05/0.6917, allocations: 7.938 kB / 0.7009 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.6917, allocations: 4 kB / 0.7009 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.6944, allocations: 1.45 MB / 0.7023 GB, free: 424 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006881/0.6951, allocations: 326.9 kB / 0.7026 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/0.6953, allocations: 20 kB / 0.7026 GB, free: 56 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008363/0.6961, allocations: 75.98 kB / 0.7027 GB, free: 15.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.6963, allocations: 60.36 kB / 0.7028 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.136e-05/0.6963, allocations: 31.92 kB / 0.7028 GB, free: 15.89 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00153/0.6979, allocations: 0.9445 MB / 0.7037 GB, free: 14.95 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/0.6979, allocations: 0 / 0.7037 GB, free: 14.95 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002448/0.7003, allocations: 0.7954 MB / 0.7045 GB, free: 14.15 MB / 0.545 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.001379/0.7017, allocations: 0.5284 MB / 0.705 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00366/0.7054, allocations: 1.547 MB / 0.7065 GB, free: 12.08 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.7054, allocations: 4.312 kB / 0.7065 GB, free: 12.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007926/0.7062, allocations: 407 kB / 0.7069 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/0.71, allocations: 0.8067 MB / 0.7077 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006232/0.7163, allocations: 3.255 MB / 0.7109 GB, free: 7.617 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.7173, allocations: 1.266 MB / 0.7121 GB, free: 6.32 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/0.7179, allocations: 139.3 kB / 0.7122 GB, free: 6.188 MB / 0.545 GB Notification: Performance of SimCode: time 1.312e-06/0.7179, allocations: 0 / 0.7122 GB, free: 6.188 MB / 0.545 GB Notification: Performance of Templates: time 0.05205/0.77, allocations: 27.92 MB / 0.7395 GB, free: 10.48 MB / 0.5762 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)