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-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_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.0009535/0.0009534, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001167/0.001167, allocations: 177.3 kB / 15.95 MB, free: 216 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.223/1.223, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8458/0.8458, allocations: 135.2 MB / 426.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002716, allocations: 8 kB / 0.5068 GB, free: 5.254 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1463, allocations: 82.31 MB / 0.5872 GB, free: 3.125 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.2739/0.4202, allocations: 45.24 MB / 0.6314 GB, free: 27.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01337/0.4336, allocations: 12.03 MB / 0.6431 GB, free: 19.51 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002314/0.436, allocations: 59.75 kB / 0.6432 GB, free: 19.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002305/0.4383, allocations: 0.7877 MB / 0.644 GB, free: 19.04 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005222/0.4436, allocations: 2.127 MB / 0.646 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004438/0.448, allocations: 1.945 MB / 0.6479 GB, free: 16.77 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003845/0.4519, allocations: 2.587 MB / 0.6505 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.4533, allocations: 1.15 MB / 0.6516 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002029/0.4554, allocations: 1.261 MB / 0.6528 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000885/0.4563, allocations: 0.811 MB / 0.6536 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.4564, allocations: 65.62 kB / 0.6537 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.4584, allocations: 1.053 MB / 0.6547 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002692/0.4587, allocations: 346.7 kB / 0.655 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.459, allocations: 370.3 kB / 0.6554 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00202/0.461, allocations: 2.192 MB / 0.6575 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.461, allocations: 0 / 0.6575 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.461, allocations: 0 / 0.6575 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.025e-05/0.461, allocations: 4 kB / 0.6575 GB, free: 12.87 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.002818/0.4639, allocations: 1.868 MB / 0.6594 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.4639, allocations: 8.75 kB / 0.6594 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001605/0.4655, allocations: 401.7 kB / 0.6598 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.4678, allocations: 1.373 MB / 0.6611 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003518/0.4682, allocations: 147 kB / 0.6612 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.4683, allocations: 113 kB / 0.6613 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002144/0.4705, allocations: 1.208 MB / 0.6625 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.4705, allocations: 5.281 kB / 0.6625 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.025e-05/0.4706, allocations: 42.33 kB / 0.6626 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.4706, allocations: 24.53 kB / 0.6626 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.4729, allocations: 1.035 MB / 0.6636 GB, free: 9.781 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.006666/0.4796, allocations: 5.165 MB / 0.6686 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.481, allocations: 0.6691 MB / 0.6693 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003288/0.4843, allocations: 2.838 MB / 0.6721 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008801/0.4852, allocations: 434.9 kB / 0.6725 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003894/0.4856, allocations: 75.72 kB / 0.6726 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=57): time 2.184e-06/0.4856, allocations: 0 / 0.6726 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of matching and sorting (n=57): time 0.002306/0.4879, allocations: 1.014 MB / 0.6735 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.488, allocations: 85.22 kB / 0.6736 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/0.4899, allocations: 1.48 MB / 0.6751 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.365e-05/0.49, allocations: 39.2 kB / 0.6751 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004853/0.4905, allocations: 0.7029 MB / 0.6758 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.4906, allocations: 196 kB / 0.676 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/0.4907, allocations: 15.59 kB / 0.676 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.813e-05/0.4908, allocations: 353.4 kB / 0.6763 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008788/0.4916, allocations: 366.5 kB / 0.6767 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.4927, allocations: 0.6434 MB / 0.6773 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000928/0.4936, allocations: 454.9 kB / 0.6777 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.4936, allocations: 6.719 kB / 0.6778 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002413/0.496, allocations: 1.19 MB / 0.6789 GB, free: 140 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.001031/0.4971, allocations: 3.075 MB / 0.6819 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.4971, allocations: 7.406 kB / 0.6819 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.4971, allocations: 13.81 kB / 0.6819 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009007/0.498, allocations: 235.7 kB / 0.6822 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.4981, allocations: 16.86 kB / 0.6822 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.4995, allocations: 162.1 kB / 0.6823 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.4996, allocations: 48.92 kB / 0.6824 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.4996, allocations: 3.344 kB / 0.6824 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001997/0.5016, allocations: 0.9851 MB / 0.6833 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5017, allocations: 12.64 kB / 0.6834 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.5017, allocations: 17.5 kB / 0.6834 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007725/0.5025, allocations: 222.2 kB / 0.6836 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.5025, allocations: 17.48 kB / 0.6836 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.5036, allocations: 128 kB / 0.6837 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.322e-05/0.5037, allocations: 45.28 kB / 0.6838 GB, free: 12.3 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.0006935/0.5044, allocations: 443.8 kB / 0.6842 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.5046, allocations: 150 kB / 0.6843 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/0.5071, allocations: 1.234 MB / 0.6855 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.5071, allocations: 10.58 kB / 0.6855 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5072, allocations: 0 / 0.6855 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001683/0.5088, allocations: 0.9756 MB / 0.6865 GB, free: 10.94 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.00423/0.5131, allocations: 2.521 MB / 0.689 GB, free: 9.672 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.5131, allocations: 3.078 kB / 0.689 GB, free: 9.672 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.5138, allocations: 147.1 kB / 0.6891 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/0.5138, allocations: 4.594 kB / 0.6891 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.5138, allocations: 23.42 kB / 0.6891 GB, free: 9.652 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.5139, allocations: 11.75 kB / 0.6891 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5139, allocations: 2.344 kB / 0.6891 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.5167, allocations: 1.671 MB / 0.6908 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005923/0.5173, allocations: 365.4 kB / 0.6911 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.5175, allocations: 14.7 kB / 0.6911 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009014/0.5184, allocations: 101.7 kB / 0.6912 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.5185, allocations: 61.11 kB / 0.6913 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.955e-05/0.5186, allocations: 36.19 kB / 0.6913 GB, free: 8.477 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001477/0.5201, allocations: 1.013 MB / 0.6923 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.3e-07/0.5201, allocations: 0 / 0.6923 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002275/0.5224, allocations: 0.8066 MB / 0.6931 GB, free: 7.914 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.0009922/0.5234, allocations: 0.54 MB / 0.6936 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003124/0.5265, allocations: 1.506 MB / 0.6951 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5265, allocations: 1.094 kB / 0.6951 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008777/0.5274, allocations: 451.8 kB / 0.6955 GB, free: 6.973 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/0.5307, allocations: 0.813 MB / 0.6963 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.5354, allocations: 3.249 MB / 0.6995 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008361/0.5363, allocations: 1.301 MB / 0.7008 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001529/0.5378, allocations: 416.4 kB / 0.7012 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.5382, allocations: 146.7 kB / 0.7013 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of SimCode: time 5.81e-07/0.5382, allocations: 1.25 kB / 0.7013 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of Templates: time 0.04871/0.5869, allocations: 33.02 MB / 0.7336 GB, free: 5.266 MB / 0.545 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: