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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6937/0.6937, allocations: 130.5 MB / 143.8 MB, free: 13.57 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 221.3 MB / 396.8 MB, free: 9.145 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 93.05 kB / 478.9 MB, free: 10.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.368e-05/3.37e-05, allocations: 2.75 kB / 0.5551 GB, free: 86.12 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1828, allocations: 81.58 MB / 0.6348 GB, free: 12 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.284/1.467, allocations: 363.7 MB / 0.9899 GB, free: 206.9 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/1.468, allocations: 103.2 kB / 0.99 GB, free: 206.9 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 1.966/3.434, allocations: 0.5284 GB / 1.518 GB, free: 92.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.894e-06/3.434, allocations: 2.844 kB / 1.518 GB, free: 92.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001942/3.434, allocations: 47.91 kB / 1.519 GB, free: 92.9 MB / 0.6823 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.00425/3.438, allocations: 1.782 MB / 1.52 GB, free: 92.3 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/3.439, allocations: 10.28 kB / 1.52 GB, free: 92.3 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/3.441, allocations: 363.9 kB / 1.521 GB, free: 92.2 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005671/3.446, allocations: 2 MB / 1.523 GB, free: 91.88 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.765e-05/3.446, allocations: 81.47 kB / 1.523 GB, free: 91.88 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/3.447, allocations: 107.8 kB / 1.523 GB, free: 91.88 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/3.449, allocations: 1.099 MB / 1.524 GB, free: 91.71 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/3.449, allocations: 1 kB / 1.524 GB, free: 91.71 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/3.449, allocations: 44.02 kB / 1.524 GB, free: 91.71 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/3.449, allocations: 28.64 kB / 1.524 GB, free: 91.71 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/3.451, allocations: 0.7977 MB / 1.525 GB, free: 91.7 MB / 0.6823 GB Warning: The model contains alias variables with conflicting start and/or 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.007644/3.458, allocations: 4.633 MB / 1.529 GB, free: 89.94 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008989/3.459, allocations: 0.5368 MB / 1.53 GB, free: 89.91 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/3.46, allocations: 270.8 kB / 1.53 GB, free: 89.91 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004273/3.464, allocations: 2.952 MB / 1.533 GB, free: 87.91 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004694/3.464, allocations: 312.8 kB / 1.533 GB, free: 87.86 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006061/3.465, allocations: 67.2 kB / 1.533 GB, free: 87.84 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 3.357e-06/3.465, allocations: 3.562 kB / 1.533 GB, free: 87.84 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001042/3.466, allocations: 0.6155 MB / 1.534 GB, free: 87.71 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/3.466, allocations: 69.89 kB / 1.534 GB, free: 87.64 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/3.468, allocations: 1.16 MB / 1.535 GB, free: 87.48 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.781e-05/3.468, allocations: 48.09 kB / 1.535 GB, free: 87.45 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005139/3.468, allocations: 0.7384 MB / 1.536 GB, free: 87.22 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/3.468, allocations: 192.9 kB / 1.536 GB, free: 87.12 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/3.468, allocations: 17.91 kB / 1.536 GB, free: 87.12 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.049e-05/3.468, allocations: 345.2 kB / 1.536 GB, free: 86.82 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000363/3.469, allocations: 248.9 kB / 1.537 GB, free: 86.82 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/3.469, allocations: 0.6191 MB / 1.537 GB, free: 86.36 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005203/3.47, allocations: 374.7 kB / 1.538 GB, free: 86.32 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/3.47, allocations: 5.75 kB / 1.538 GB, free: 86.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001543/3.471, allocations: 1.049 MB / 1.539 GB, free: 86.16 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008248/3.472, allocations: 4.397 MB / 1.543 GB, free: 81.69 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/3.472, allocations: 9.656 kB / 1.543 GB, free: 81.69 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/3.473, allocations: 57.64 kB / 1.543 GB, free: 81.68 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/3.473, allocations: 211.7 kB / 1.543 GB, free: 81.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003197/3.474, allocations: 0.5898 MB / 1.544 GB, free: 81.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/3.475, allocations: 117.9 kB / 1.544 GB, free: 81.14 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.392e-05/3.475, allocations: 58.34 kB / 1.544 GB, free: 81.14 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.178e-06/3.475, allocations: 3.938 kB / 1.544 GB, free: 81.14 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00128/3.476, allocations: 0.9003 MB / 1.545 GB, free: 81.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/3.476, allocations: 10.47 kB / 1.545 GB, free: 81.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001582/3.476, allocations: 56.98 kB / 1.545 GB, free: 81.09 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005962/3.477, allocations: 213.4 kB / 1.545 GB, free: 81.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002542/3.477, allocations: 0.5918 MB / 1.546 GB, free: 80.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/3.478, allocations: 87.08 kB / 1.546 GB, free: 80.57 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.262e-05/3.478, allocations: 58.38 kB / 1.546 GB, free: 80.57 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,realToBoolean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 110 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002032/3.479, allocations: 174.5 kB / 1.546 GB, free: 80.45 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/3.479, allocations: 146.5 kB / 1.546 GB, free: 80.38 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/3.481, allocations: 1.087 MB / 1.547 GB, free: 80.28 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/3.481, allocations: 15.08 kB / 1.547 GB, free: 80.28 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/3.481, allocations: 0 / 1.547 GB, free: 80.28 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009035/3.482, allocations: 0.8411 MB / 1.548 GB, free: 80 MB / 0.6823 GB Warning: The model contains alias variables with conflicting start and/or 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.003153/3.485, allocations: 2.109 MB / 1.55 GB, free: 79.62 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/3.485, allocations: 2.312 kB / 1.55 GB, free: 79.62 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/3.485, allocations: 114.1 kB / 1.55 GB, free: 79.62 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001622/3.485, allocations: 48.02 kB / 1.55 GB, free: 79.61 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/3.485, allocations: 18.91 kB / 1.55 GB, free: 79.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002611/3.486, allocations: 0.5614 MB / 1.551 GB, free: 79.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/3.486, allocations: 2.625 kB / 1.551 GB, free: 79.09 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/3.487, allocations: 1.4 MB / 1.552 GB, free: 78.73 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005782/3.488, allocations: 326.6 kB / 1.552 GB, free: 78.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/3.488, allocations: 12.97 kB / 1.552 GB, free: 78.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000671/3.489, allocations: 69.81 kB / 1.552 GB, free: 78.54 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/3.489, allocations: 58.19 kB / 1.553 GB, free: 78.54 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/3.489, allocations: 28.12 kB / 1.553 GB, free: 78.54 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001123/3.49, allocations: 0.8955 MB / 1.553 GB, free: 78.43 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.41e-07/3.49, allocations: 0 / 1.553 GB, free: 78.43 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002558/3.493, allocations: 0.8724 MB / 1.554 GB, free: 78.3 MB / 0.6823 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,realToBoolean.y) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00184/3.495, allocations: 1.134 MB / 1.555 GB, free: 78.04 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002145/3.497, allocations: 1.363 MB / 1.557 GB, free: 77.89 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/3.497, allocations: 7.312 kB / 1.557 GB, free: 77.89 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005628/3.497, allocations: 389.2 kB / 1.557 GB, free: 77.88 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003277/3.501, allocations: 0.7306 MB / 1.558 GB, free: 77.87 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/3.504, allocations: 2.064 MB / 1.56 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006303/3.504, allocations: 1.297 MB / 1.561 GB, free: 76.58 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002048/3.507, allocations: 0.5181 MB / 1.562 GB, free: 76.56 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/3.507, allocations: 106.6 kB / 1.562 GB, free: 76.55 MB / 0.6823 GB Notification: Performance of SimCode: time 1.243e-06/3.507, allocations: 0 / 1.562 GB, free: 76.55 MB / 0.6823 GB Notification: Performance of Templates: time 0.05701/3.564, allocations: 38.58 MB / 1.599 GB, free: 74.63 MB / 0.6823 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)