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.001166/0.001166, allocations: 101.6 kB / 16.27 MB, free: 5.852 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.001122/0.001122, allocations: 188.7 kB / 17.19 MB, free: 5.5 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.836/0.836, allocations: 132.2 MB / 423.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 67.89 kB / 0.5025 GB, free: 11.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3906, allocations: 80.19 MB / 0.5808 GB, free: 27.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.04787/0.4385, allocations: 54.19 MB / 0.6337 GB, free: 7.922 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02301/0.4616, allocations: 13.86 MB / 0.6472 GB, free: 10.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00355/0.4652, allocations: 75.56 kB / 0.6473 GB, free: 9.953 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003536/0.4688, allocations: 0.9532 MB / 0.6482 GB, free: 8.996 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006812/0.4756, allocations: 2.161 MB / 0.6503 GB, free: 6.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006429/0.4821, allocations: 1.996 MB / 0.6523 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.006997/0.4891, allocations: 4.435 MB / 0.6566 GB, free: 412 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003205/0.4923, allocations: 1.575 MB / 0.6581 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005345/0.4977, allocations: 1.797 MB / 0.6599 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002587/0.5003, allocations: 1.268 MB / 0.6611 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007205/0.5011, allocations: 164 kB / 0.6613 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003948/0.505, allocations: 1.412 MB / 0.6627 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008757/0.5059, allocations: 486.4 kB / 0.6631 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001994/0.5079, allocations: 0.9292 MB / 0.664 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006001/0.5139, allocations: 3.042 MB / 0.667 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.514, allocations: 3.938 kB / 0.667 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.863e-06/0.514, allocations: 0 / 0.667 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.795e-05/0.5141, allocations: 0 / 0.667 GB, free: 5.688 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.00511/0.5192, allocations: 2.165 MB / 0.6691 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.5193, allocations: 8.031 kB / 0.6691 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001966/0.5212, allocations: 370.5 kB / 0.6695 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00289/0.5241, allocations: 1.42 MB / 0.6709 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003856/0.5245, allocations: 141.9 kB / 0.671 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.5247, allocations: 104 kB / 0.6711 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.5271, allocations: 1.199 MB / 0.6723 GB, free: 136 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.5272, allocations: 11.88 kB / 0.6723 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.5273, allocations: 40 kB / 0.6723 GB, free: 84 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.5273, allocations: 27.98 kB / 0.6724 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002423/0.5297, allocations: 0.9836 MB / 0.6733 GB, free: 15.07 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.007856/0.5376, allocations: 5.199 MB / 0.6784 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.5391, allocations: 0.6103 MB / 0.679 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006807/0.5398, allocations: 294.4 kB / 0.6793 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004493/0.5443, allocations: 2.986 MB / 0.6822 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008052/0.5451, allocations: 341.2 kB / 0.6825 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.895e-06/0.5452, allocations: 0 / 0.6825 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002264/0.5474, allocations: 0.8643 MB / 0.6834 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.5475, allocations: 59.84 kB / 0.6834 GB, free: 4.047 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/0.5497, allocations: 1.399 MB / 0.6848 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.472e-05/0.5498, allocations: 37.7 kB / 0.6848 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007202/0.5505, allocations: 0.7267 MB / 0.6855 GB, free: 1.859 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.5508, allocations: 197.3 kB / 0.6857 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003378/0.5511, allocations: 206.3 kB / 0.6859 GB, free: 1.453 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.5513, allocations: 345.9 kB / 0.6862 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008726/0.5522, allocations: 340.6 kB / 0.6866 GB, free: 0.7734 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.5533, allocations: 0.6725 MB / 0.6872 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/0.5551, allocations: 0.993 MB / 0.6882 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.5551, allocations: 4 kB / 0.6882 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002812/0.558, allocations: 1.175 MB / 0.6894 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.695e-05/0.558, allocations: 37.7 kB / 0.6894 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.5581, allocations: 15.94 kB / 0.6894 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.5581, allocations: 16 kB / 0.6894 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008747/0.559, allocations: 235.9 kB / 0.6896 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.459e-05/0.559, allocations: 19.94 kB / 0.6897 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.5604, allocations: 179.4 kB / 0.6898 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.5605, allocations: 51.98 kB / 0.6899 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00141/0.5619, allocations: 0.6189 MB / 0.6905 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001163/0.5631, allocations: 0.6764 MB / 0.6911 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001857/0.565, allocations: 0.993 MB / 0.6921 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.334e-06/0.565, allocations: 0 / 0.6921 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=117) (initialization_lambda0): time 0.00291/0.5679, allocations: 1.175 MB / 0.6933 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.568, allocations: 41.69 kB / 0.6933 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.568, allocations: 8 kB / 0.6933 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.568, allocations: 20.25 kB / 0.6933 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008756/0.5689, allocations: 235.6 kB / 0.6936 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.032e-05/0.5689, allocations: 27.86 kB / 0.6936 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.5702, allocations: 140 kB / 0.6937 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.5704, allocations: 55.98 kB / 0.6938 GB, free: 8.738 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.0003041/0.5707, allocations: 239.9 kB / 0.694 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000354/0.571, allocations: 146.1 kB / 0.6941 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.5736, allocations: 1.14 MB / 0.6952 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/0.5736, allocations: 15.98 kB / 0.6953 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5736, allocations: 0 / 0.6953 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001594/0.5752, allocations: 0.882 MB / 0.6961 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.5795, allocations: 2.201 MB / 0.6983 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.5795, allocations: 0 / 0.6983 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/0.5801, allocations: 123.8 kB / 0.6984 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.211e-05/0.5802, allocations: 8 kB / 0.6984 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.696e-05/0.5802, allocations: 23.98 kB / 0.6984 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.868e-06/0.5802, allocations: 7.984 kB / 0.6984 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5802, allocations: 0 / 0.6984 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002897/0.5832, allocations: 1.426 MB / 0.6998 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008101/0.584, allocations: 327 kB / 0.7001 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003366/0.5843, allocations: 19.98 kB / 0.7002 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009029/0.5852, allocations: 59.86 kB / 0.7002 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.5854, allocations: 44.5 kB / 0.7003 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.991e-05/0.5855, allocations: 35.97 kB / 0.7003 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001835/0.5873, allocations: 0.9562 MB / 0.7012 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/0.5873, allocations: 0 / 0.7012 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002668/0.59, allocations: 0.811 MB / 0.702 GB, free: 136 kB / 0.5294 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.001374/0.5914, allocations: 0.541 MB / 0.7025 GB, free: 15.61 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003882/0.5953, allocations: 1.527 MB / 0.704 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5953, allocations: 0 / 0.704 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0009038/0.5962, allocations: 395 kB / 0.7044 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003948/0.6002, allocations: 0.8002 MB / 0.7052 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004909/0.6051, allocations: 2.705 MB / 0.7078 GB, free: 10.17 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009506/0.6061, allocations: 1.262 MB / 0.7091 GB, free: 8.879 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004827/0.6066, allocations: 143.4 kB / 0.7092 GB, free: 8.738 MB / 0.545 GB Notification: Performance of SimCode: time 1.062e-06/0.6066, allocations: 0 / 0.7092 GB, free: 8.738 MB / 0.545 GB Notification: Performance of Templates: time 0.04413/0.6507, allocations: 28.22 MB / 0.7368 GB, free: 12.8 MB / 0.5762 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)