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.0008789/0.000879, 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.0008819/0.0008819, 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.222/1.222, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8556/0.8556, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002818/0.0002818, allocations: 13.25 kB / 0.5068 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1516, allocations: 82.3 MB / 0.5872 GB, free: 3.109 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.2763/0.428, allocations: 45.24 MB / 0.6314 GB, free: 27.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01455/0.4426, allocations: 12.04 MB / 0.6431 GB, free: 19.4 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00263/0.4453, allocations: 60.5 kB / 0.6432 GB, free: 19.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002203/0.4475, allocations: 0.7803 MB / 0.644 GB, free: 18.94 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00473/0.4522, allocations: 2.137 MB / 0.6461 GB, free: 17.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004219/0.4565, allocations: 1.937 MB / 0.6479 GB, free: 16.66 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003519/0.46, allocations: 2.569 MB / 0.6505 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.4612, allocations: 1.17 MB / 0.6516 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.4628, allocations: 1.254 MB / 0.6528 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007441/0.4635, allocations: 0.8153 MB / 0.6536 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.4637, allocations: 64.34 kB / 0.6537 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001875/0.4656, allocations: 1.057 MB / 0.6547 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.4658, allocations: 344.2 kB / 0.655 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.4661, allocations: 364.3 kB / 0.6554 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.468, allocations: 2.199 MB / 0.6575 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.468, allocations: 0 / 0.6575 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.468, allocations: 0.8125 kB / 0.6575 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.189e-05/0.468, allocations: 0 / 0.6575 GB, free: 12.77 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.002842/0.4709, allocations: 1.867 MB / 0.6594 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.4709, allocations: 9.688 kB / 0.6594 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001614/0.4725, allocations: 400.9 kB / 0.6597 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002226/0.4748, allocations: 1.373 MB / 0.6611 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003523/0.4751, allocations: 147.4 kB / 0.6612 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.4753, allocations: 111.5 kB / 0.6613 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.4775, allocations: 1.212 MB / 0.6625 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.4775, allocations: 5.953 kB / 0.6625 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.932e-05/0.4776, allocations: 45.81 kB / 0.6626 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.847e-05/0.4777, allocations: 24.25 kB / 0.6626 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/0.48, allocations: 1.031 MB / 0.6636 GB, free: 9.672 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.00686/0.4868, allocations: 5.157 MB / 0.6686 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.4883, allocations: 0.6673 MB / 0.6693 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00364/0.492, allocations: 2.847 MB / 0.6721 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009291/0.4929, allocations: 430.5 kB / 0.6725 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005837/0.4935, allocations: 80.84 kB / 0.6726 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=57): time 2.324e-06/0.4936, allocations: 0 / 0.6726 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=57): time 0.002469/0.496, allocations: 1.013 MB / 0.6735 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.4961, allocations: 85.62 kB / 0.6736 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.4982, allocations: 1.48 MB / 0.6751 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.353e-05/0.4983, allocations: 43.58 kB / 0.6751 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004952/0.4988, allocations: 0.7034 MB / 0.6758 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.499, allocations: 195.6 kB / 0.676 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.499, allocations: 16.12 kB / 0.676 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.072e-05/0.4991, allocations: 340.2 kB / 0.6763 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/0.5, allocations: 371.2 kB / 0.6767 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.501, allocations: 0.6439 MB / 0.6773 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009672/0.502, allocations: 450.7 kB / 0.6777 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.502, allocations: 7 kB / 0.6777 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002436/0.5045, allocations: 1.194 MB / 0.6789 GB, free: 32 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.001169/0.5056, allocations: 3.071 MB / 0.6819 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.5057, allocations: 8.5 kB / 0.6819 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.5057, allocations: 13.19 kB / 0.6819 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009234/0.5066, allocations: 235.3 kB / 0.6822 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.5067, allocations: 18.12 kB / 0.6822 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.5083, allocations: 157.3 kB / 0.6823 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.5084, allocations: 56.39 kB / 0.6824 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.298e-06/0.5084, allocations: 8.422 kB / 0.6824 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002022/0.5104, allocations: 0.9849 MB / 0.6833 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.5105, allocations: 8.062 kB / 0.6834 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.5105, allocations: 12.56 kB / 0.6834 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007923/0.5113, allocations: 222.6 kB / 0.6836 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/0.5113, allocations: 18.14 kB / 0.6836 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.5125, allocations: 129.9 kB / 0.6837 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-05/0.5126, allocations: 49.92 kB / 0.6838 GB, free: 12.19 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.0007417/0.5133, allocations: 446.8 kB / 0.6842 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.5135, allocations: 154.1 kB / 0.6843 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/0.5161, allocations: 1.226 MB / 0.6855 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.321e-05/0.5162, allocations: 15.2 kB / 0.6856 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5162, allocations: 1.281 kB / 0.6856 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001757/0.5179, allocations: 0.9739 MB / 0.6865 GB, free: 10.84 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.00432/0.5223, allocations: 2.514 MB / 0.689 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.5223, allocations: 1.188 kB / 0.689 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006373/0.5229, allocations: 154.9 kB / 0.6891 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.5229, allocations: 4.25 kB / 0.6891 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.158e-05/0.523, allocations: 22.69 kB / 0.6891 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.527e-05/0.523, allocations: 9.547 kB / 0.6891 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.523, allocations: 2 kB / 0.6891 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/0.5259, allocations: 1.664 MB / 0.6908 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006045/0.5265, allocations: 366.2 kB / 0.6911 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.5267, allocations: 19.81 kB / 0.6911 GB, free: 8.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008982/0.5276, allocations: 96.75 kB / 0.6912 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.5277, allocations: 67.39 kB / 0.6913 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-05/0.5278, allocations: 34.45 kB / 0.6913 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001442/0.5292, allocations: 1.013 MB / 0.6923 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5292, allocations: 1.188 kB / 0.6923 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002149/0.5314, allocations: 0.8076 MB / 0.6931 GB, free: 7.812 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.000912/0.5323, allocations: 0.5399 MB / 0.6936 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002917/0.5352, allocations: 1.504 MB / 0.6951 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5352, allocations: 0 / 0.6951 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008491/0.5361, allocations: 457.5 kB / 0.6955 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003076/0.5392, allocations: 0.8028 MB / 0.6963 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004261/0.5435, allocations: 3.262 MB / 0.6995 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007921/0.5443, allocations: 1.298 MB / 0.7008 GB, free: 3.383 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00151/0.5458, allocations: 422.4 kB / 0.7012 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.5461, allocations: 135.7 kB / 0.7013 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of SimCode: time 6.31e-07/0.5461, allocations: 0 / 0.7013 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of Templates: time 0.04764/0.5938, allocations: 33.01 MB / 0.7335 GB, free: 5.262 MB / 0.545 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: