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.001651/0.00165, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.001791/0.00179, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.833/0.833, allocations: 135.1 MB / 426.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 0.5068 GB, free: 7.668 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3688, allocations: 80.9 MB / 0.5858 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04436/0.4132, allocations: 54.21 MB / 0.6387 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02335/0.4366, allocations: 13.86 MB / 0.6523 GB, free: 6.344 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004298/0.441, allocations: 71.62 kB / 0.6523 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003895/0.445, allocations: 0.9627 MB / 0.6533 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007101/0.4521, allocations: 2.153 MB / 0.6554 GB, free: 3.145 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005653/0.4578, allocations: 2.012 MB / 0.6573 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00657/0.4643, allocations: 4.432 MB / 0.6617 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002904/0.4673, allocations: 1.571 MB / 0.6632 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004592/0.4719, allocations: 1.81 MB / 0.665 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002412/0.4743, allocations: 1.276 MB / 0.6662 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006025/0.4749, allocations: 167.9 kB / 0.6664 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003536/0.4785, allocations: 1.412 MB / 0.6677 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000826/0.4793, allocations: 478.5 kB / 0.6682 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002077/0.4814, allocations: 0.9369 MB / 0.6691 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006297/0.4877, allocations: 3.082 MB / 0.6721 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.4878, allocations: 0 / 0.6721 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.294e-06/0.4878, allocations: 0 / 0.6721 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001114/0.4879, allocations: 0 / 0.6721 GB, free: 1.934 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.005416/0.4933, allocations: 2.146 MB / 0.6742 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.4934, allocations: 13.11 kB / 0.6742 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.4953, allocations: 374.4 kB / 0.6746 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003184/0.4985, allocations: 1.49 MB / 0.676 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.708e-05/0.4985, allocations: 82 kB / 0.6761 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.4987, allocations: 104 kB / 0.6762 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002267/0.501, allocations: 1.203 MB / 0.6774 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.501, allocations: 0 / 0.6774 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.136e-05/0.5011, allocations: 40 kB / 0.6774 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/0.5012, allocations: 24 kB / 0.6775 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.5034, allocations: 0.9758 MB / 0.6784 GB, free: 11.34 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.007714/0.5111, allocations: 5.141 MB / 0.6834 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.5125, allocations: 0.6064 MB / 0.684 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000607/0.5131, allocations: 298.3 kB / 0.6843 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00419/0.5173, allocations: 2.978 MB / 0.6872 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007264/0.518, allocations: 337.2 kB / 0.6875 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.765e-06/0.518, allocations: 4 kB / 0.6875 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.001987/0.52, allocations: 0.8643 MB / 0.6884 GB, free: 460 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.5201, allocations: 59.78 kB / 0.6884 GB, free: 388 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.5222, allocations: 1.396 MB / 0.6898 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.429e-05/0.5223, allocations: 37.7 kB / 0.6898 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007213/0.523, allocations: 0.7305 MB / 0.6906 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.5232, allocations: 189.3 kB / 0.6907 GB, free: 14 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003223/0.5236, allocations: 210.3 kB / 0.6909 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5237, allocations: 345.9 kB / 0.6913 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008011/0.5245, allocations: 332.7 kB / 0.6916 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.5256, allocations: 0.6686 MB / 0.6922 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/0.5272, allocations: 0.9773 MB / 0.6932 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.5272, allocations: 4 kB / 0.6932 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002437/0.5297, allocations: 1.163 MB / 0.6943 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.5297, allocations: 45.62 kB / 0.6944 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.5298, allocations: 12 kB / 0.6944 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.5298, allocations: 15.94 kB / 0.6944 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008039/0.5306, allocations: 228 kB / 0.6946 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.386e-05/0.5306, allocations: 27.86 kB / 0.6946 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.5318, allocations: 159.4 kB / 0.6948 GB, free: 9.488 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.26e-05/0.5319, allocations: 47.98 kB / 0.6948 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001178/0.533, allocations: 0.6034 MB / 0.6954 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009731/0.534, allocations: 0.6686 MB / 0.6961 GB, free: 8.008 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001537/0.5356, allocations: 0.9813 MB / 0.697 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.332e-06/0.5356, allocations: 4 kB / 0.697 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.002392/0.538, allocations: 1.151 MB / 0.6982 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.538, allocations: 38.02 kB / 0.6982 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.5381, allocations: 16 kB / 0.6982 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.5381, allocations: 12 kB / 0.6982 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007857/0.5389, allocations: 235.5 kB / 0.6985 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-05/0.5389, allocations: 23.92 kB / 0.6985 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.54, allocations: 124 kB / 0.6986 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.5401, allocations: 59.92 kB / 0.6987 GB, free: 5.199 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 (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.000294/0.5404, allocations: 247.8 kB / 0.6989 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.5406, allocations: 142.2 kB / 0.699 GB, free: 4.812 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/0.5429, allocations: 1.134 MB / 0.7001 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.547e-05/0.5429, allocations: 8 kB / 0.7001 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5429, allocations: 0 / 0.7001 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00142/0.5443, allocations: 0.8898 MB / 0.701 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/0.5479, allocations: 2.193 MB / 0.7032 GB, free: 500 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.5479, allocations: 7.938 kB / 0.7032 GB, free: 492 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005621/0.5485, allocations: 127.8 kB / 0.7033 GB, free: 364 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.5485, allocations: 4 kB / 0.7033 GB, free: 360 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.115e-05/0.5485, allocations: 27.92 kB / 0.7033 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.5485, allocations: 4 kB / 0.7033 GB, free: 328 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5486, allocations: 0 / 0.7033 GB, free: 328 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/0.551, allocations: 1.426 MB / 0.7047 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005585/0.5516, allocations: 330.9 kB / 0.705 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.5518, allocations: 19.92 kB / 0.705 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006775/0.5525, allocations: 43.97 kB / 0.7051 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.5526, allocations: 56.48 kB / 0.7051 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.5527, allocations: 31.97 kB / 0.7052 GB, free: 14.36 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001368/0.554, allocations: 0.9406 MB / 0.7061 GB, free: 13.43 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.554, allocations: 0 / 0.7061 GB, free: 13.43 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002252/0.5563, allocations: 0.8148 MB / 0.7069 GB, free: 12.61 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 (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.001091/0.5574, allocations: 0.5437 MB / 0.7074 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002878/0.5603, allocations: 1.452 MB / 0.7088 GB, free: 10.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.5603, allocations: 0 / 0.7088 GB, free: 10.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008055/0.5611, allocations: 412.1 kB / 0.7092 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/0.5641, allocations: 0.8034 MB / 0.71 GB, free: 9.465 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/0.5683, allocations: 2.591 MB / 0.7125 GB, free: 6.828 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008602/0.5692, allocations: 1.266 MB / 0.7138 GB, free: 5.531 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001355/0.5706, allocations: 404.5 kB / 0.7142 GB, free: 5.145 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.5709, allocations: 135.3 kB / 0.7143 GB, free: 5.016 MB / 0.545 GB Notification: Performance of SimCode: time 6.61e-07/0.5709, allocations: 0 / 0.7143 GB, free: 5.016 MB / 0.545 GB Notification: Performance of Templates: time 0.05255/0.6234, allocations: 31.96 MB / 0.7455 GB, free: 5.406 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)