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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.001302/0.001302, allocations: 108 kB / 15.6 MB, free: 132 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.001223/0.001223, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.256/1.256, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7057/0.7057, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 68.56 kB / 0.5018 GB, free: 8.742 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1537, allocations: 80.21 MB / 0.5801 GB, free: 8.754 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.3054/0.4591, allocations: 54.19 MB / 0.633 GB, free: 26.89 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01406/0.4732, allocations: 13.86 MB / 0.6466 GB, free: 17.03 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.4754, allocations: 70.31 kB / 0.6466 GB, free: 17 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002285/0.4777, allocations: 0.9655 MB / 0.6476 GB, free: 16.44 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004859/0.4826, allocations: 2.164 MB / 0.6497 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003919/0.4865, allocations: 1.989 MB / 0.6516 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004132/0.4907, allocations: 4.427 MB / 0.656 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.4923, allocations: 1.57 MB / 0.6575 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003289/0.4956, allocations: 1.802 MB / 0.6592 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001617/0.4973, allocations: 1.266 MB / 0.6605 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002835/0.4976, allocations: 161.8 kB / 0.6606 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002828/0.5004, allocations: 1.416 MB / 0.662 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004441/0.5009, allocations: 483.2 kB / 0.6625 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009058/0.5018, allocations: 0.9253 MB / 0.6634 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004467/0.5062, allocations: 3.043 MB / 0.6664 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.5063, allocations: 5 kB / 0.6664 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.214e-06/0.5063, allocations: 0 / 0.6664 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.759e-05/0.5064, allocations: 0 / 0.6664 GB, free: 7.504 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.003934/0.5103, allocations: 2.163 MB / 0.6685 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.5103, allocations: 9.625 kB / 0.6685 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001749/0.5121, allocations: 374.5 kB / 0.6688 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002349/0.5145, allocations: 1.416 MB / 0.6702 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003447/0.5148, allocations: 132.4 kB / 0.6703 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.515, allocations: 109 kB / 0.6705 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.5171, allocations: 1.209 MB / 0.6716 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.5171, allocations: 1.031 kB / 0.6716 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.032e-05/0.5172, allocations: 41.69 kB / 0.6717 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.5172, allocations: 24.31 kB / 0.6717 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002098/0.5193, allocations: 0.977 MB / 0.6726 GB, free: 4.18 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.006449/0.5258, allocations: 5.195 MB / 0.6777 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.5273, allocations: 0.6178 MB / 0.6783 GB, free: 452 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.5279, allocations: 301.4 kB / 0.6786 GB, free: 344 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004016/0.5319, allocations: 2.979 MB / 0.6815 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000727/0.5327, allocations: 343.8 kB / 0.6819 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.304e-06/0.5327, allocations: 0 / 0.6819 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.00201/0.5347, allocations: 0.8682 MB / 0.6827 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.5348, allocations: 58.33 kB / 0.6828 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.5367, allocations: 1.401 MB / 0.6841 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.5368, allocations: 38.8 kB / 0.6842 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005885/0.5374, allocations: 0.7339 MB / 0.6849 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.5376, allocations: 194.5 kB / 0.6851 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003112/0.5379, allocations: 208.9 kB / 0.6853 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.538, allocations: 342.8 kB / 0.6856 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007757/0.5388, allocations: 336.4 kB / 0.6859 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.5399, allocations: 0.682 MB / 0.6866 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.5415, allocations: 0.983 MB / 0.6875 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.5416, allocations: 3.406 kB / 0.6875 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002574/0.5441, allocations: 1.179 MB / 0.6887 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.5442, allocations: 39.3 kB / 0.6887 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.5442, allocations: 10.72 kB / 0.6887 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.5442, allocations: 20.19 kB / 0.6888 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/0.5451, allocations: 232.5 kB / 0.689 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.714e-05/0.5451, allocations: 28.25 kB / 0.689 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.5465, allocations: 175.9 kB / 0.6892 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.322e-05/0.5466, allocations: 54.95 kB / 0.6892 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001292/0.5479, allocations: 0.6115 MB / 0.6898 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001027/0.5489, allocations: 0.6831 MB / 0.6905 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001622/0.5505, allocations: 0.9868 MB / 0.6915 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.003e-06/0.5506, allocations: 7.438 kB / 0.6915 GB, free: 7.945 MB / 0.5137 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002453/0.553, allocations: 1.181 MB / 0.6926 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.5531, allocations: 38.33 kB / 0.6926 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.5531, allocations: 10.16 kB / 0.6927 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.5531, allocations: 16.5 kB / 0.6927 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008559/0.554, allocations: 236.1 kB / 0.6929 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.506e-05/0.554, allocations: 28.22 kB / 0.6929 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.5552, allocations: 137.3 kB / 0.6931 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/0.5553, allocations: 54.14 kB / 0.6931 GB, free: 7.344 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.0003125/0.5556, allocations: 242 kB / 0.6933 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.5559, allocations: 143 kB / 0.6935 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.5582, allocations: 1.134 MB / 0.6946 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.5582, allocations: 13.81 kB / 0.6946 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5582, allocations: 0 / 0.6946 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001447/0.5597, allocations: 0.8891 MB / 0.6955 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00345/0.5631, allocations: 2.198 MB / 0.6976 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.5631, allocations: 1.156 kB / 0.6976 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/0.5637, allocations: 123.6 kB / 0.6977 GB, free: 4.887 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.5637, allocations: 11.56 kB / 0.6977 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.526e-05/0.5637, allocations: 29.02 kB / 0.6978 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.5637, allocations: 2.875 kB / 0.6978 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5637, allocations: 5.391 kB / 0.6978 GB, free: 4.855 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.5661, allocations: 1.422 MB / 0.6992 GB, free: 4.039 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/0.5666, allocations: 332.9 kB / 0.6995 GB, free: 3.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.5667, allocations: 12.97 kB / 0.6995 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006889/0.5674, allocations: 56.47 kB / 0.6996 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5675, allocations: 49.31 kB / 0.6996 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.266e-05/0.5676, allocations: 33.66 kB / 0.6996 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001278/0.5689, allocations: 0.9541 MB / 0.7006 GB, free: 3.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5689, allocations: 2.812 kB / 0.7006 GB, free: 3.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002244/0.5711, allocations: 0.817 MB / 0.7014 GB, free: 2.969 MB / 0.5137 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.001051/0.5722, allocations: 0.5389 MB / 0.7019 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003042/0.5753, allocations: 1.526 MB / 0.7034 GB, free: 1.941 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.5753, allocations: 5.875 kB / 0.7034 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000699/0.576, allocations: 412 kB / 0.7038 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/0.5788, allocations: 0.7859 MB / 0.7045 GB, free: 1.383 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/0.5825, allocations: 2.643 MB / 0.7071 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007669/0.5832, allocations: 1.269 MB / 0.7084 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00134/0.5846, allocations: 411.6 kB / 0.7088 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.5849, allocations: 127.4 kB / 0.7089 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of SimCode: time 3.71e-07/0.5849, allocations: 7.938 kB / 0.7089 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.05005/0.6349, allocations: 31.98 MB / 0.7401 GB, free: 14.05 MB / 0.5606 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.makefile (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)