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.0009901/0.0009901, allocations: 175.4 kB / 7.648 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.736/0.736, allocations: 130.7 MB / 138.7 MB, free: 3.617 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.719/1.719, allocations: 221.5 MB / 391.8 MB, free: 14.22 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 89.62 kB / 473.9 MB, free: 4.469 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.744e-05, allocations: 4 kB / 0.5485 GB, free: 13.03 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4958/0.4958, allocations: 81.56 MB / 0.6282 GB, free: 42.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8704/1.366, allocations: 363 MB / 0.9827 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/1.367, allocations: 103.9 kB / 0.9828 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.042/3.409, allocations: 0.5251 GB / 1.508 GB, free: 51.2 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.094e-06/3.409, allocations: 3.062 kB / 1.508 GB, free: 51.2 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0003175/3.409, allocations: 42.97 kB / 1.508 GB, free: 51.16 MB / 0.6667 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.005436/3.415, allocations: 1.782 MB / 1.51 GB, free: 49.34 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/3.415, allocations: 8.031 kB / 1.51 GB, free: 49.33 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002314/3.417, allocations: 361.5 kB / 1.51 GB, free: 48.97 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005462/3.423, allocations: 2.002 MB / 1.512 GB, free: 46.96 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.232e-05/3.423, allocations: 36 kB / 1.512 GB, free: 46.93 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/3.423, allocations: 67.98 kB / 1.512 GB, free: 46.86 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001359/3.424, allocations: 0.7459 MB / 1.513 GB, free: 46.11 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/3.426, allocations: 0.9596 MB / 1.514 GB, free: 45.11 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/3.426, allocations: 3.953 kB / 1.514 GB, free: 45.1 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.23e-05/3.426, allocations: 4 kB / 1.514 GB, free: 45.1 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/3.426, allocations: 28 kB / 1.514 GB, free: 45.07 MB / 0.6667 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.005881/3.432, allocations: 4.437 MB / 1.518 GB, free: 40.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/3.432, allocations: 0.5312 MB / 1.519 GB, free: 39.96 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/3.433, allocations: 262.5 kB / 1.519 GB, free: 39.71 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003626/3.436, allocations: 2.89 MB / 1.522 GB, free: 36.48 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000422/3.437, allocations: 285.8 kB / 1.522 GB, free: 36.19 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002893/3.437, allocations: 43.38 kB / 1.522 GB, free: 36.14 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=55): time 3.196e-06/3.437, allocations: 0 / 1.522 GB, free: 36.14 MB / 0.6667 GB Notification: Performance of matching and sorting (n=55): time 0.002072/3.439, allocations: 0.7479 MB / 1.523 GB, free: 35.39 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/3.439, allocations: 59.97 kB / 1.523 GB, free: 35.31 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/3.44, allocations: 0.9836 MB / 1.524 GB, free: 34.32 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/3.44, allocations: 25.7 kB / 1.524 GB, free: 34.29 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005292/3.441, allocations: 0.7414 MB / 1.525 GB, free: 33.54 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/3.441, allocations: 189.3 kB / 1.525 GB, free: 33.35 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/3.441, allocations: 0 / 1.525 GB, free: 33.35 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.147e-05/3.441, allocations: 345.9 kB / 1.525 GB, free: 33.01 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003087/3.442, allocations: 226.6 kB / 1.525 GB, free: 32.79 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004711/3.442, allocations: 0.6074 MB / 1.526 GB, free: 32.01 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/3.444, allocations: 0.498 MB / 1.526 GB, free: 31.51 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/3.444, allocations: 4 kB / 1.526 GB, free: 31.5 MB / 0.6667 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002254/3.446, allocations: 1.099 MB / 1.527 GB, free: 30.39 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008972/3.447, allocations: 4.364 MB / 1.532 GB, free: 25.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/3.447, allocations: 12 kB / 1.532 GB, free: 25.74 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/3.447, allocations: 48.84 kB / 1.532 GB, free: 25.69 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006207/3.448, allocations: 215.6 kB / 1.532 GB, free: 25.48 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003304/3.448, allocations: 0.5875 MB / 1.533 GB, free: 24.87 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/3.449, allocations: 95.67 kB / 1.533 GB, free: 24.77 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.901e-05/3.449, allocations: 51.98 kB / 1.533 GB, free: 24.72 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/3.449, allocations: 5.406 kB / 1.533 GB, free: 24.72 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00209/3.451, allocations: 0.9352 MB / 1.534 GB, free: 23.78 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/3.451, allocations: 12 kB / 1.534 GB, free: 23.77 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001096/3.451, allocations: 61.53 kB / 1.534 GB, free: 23.71 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/3.452, allocations: 203.7 kB / 1.534 GB, free: 23.51 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002724/3.452, allocations: 0.5991 MB / 1.534 GB, free: 22.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008659/3.453, allocations: 67.91 kB / 1.534 GB, free: 22.82 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.294e-05/3.453, allocations: 62.05 kB / 1.535 GB, free: 22.76 MB / 0.6667 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.0002044/3.453, allocations: 136.6 kB / 1.535 GB, free: 22.62 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/3.454, allocations: 134.3 kB / 1.535 GB, free: 22.48 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/3.456, allocations: 1.127 MB / 1.536 GB, free: 21.35 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/3.456, allocations: 8 kB / 1.536 GB, free: 21.34 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/3.456, allocations: 0 / 1.536 GB, free: 21.34 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001392/3.457, allocations: 0.8991 MB / 1.537 GB, free: 20.39 MB / 0.6667 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.00335/3.461, allocations: 2.024 MB / 1.539 GB, free: 18.32 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.545e-06/3.461, allocations: 7.984 kB / 1.539 GB, free: 18.32 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/3.461, allocations: 115.8 kB / 1.539 GB, free: 18.2 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/3.461, allocations: 32.84 kB / 1.539 GB, free: 18.17 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/3.461, allocations: 15.98 kB / 1.539 GB, free: 18.15 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002827/3.462, allocations: 0.568 MB / 1.539 GB, free: 17.56 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/3.462, allocations: 7.375 kB / 1.539 GB, free: 17.55 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/3.464, allocations: 1.436 MB / 1.541 GB, free: 16.05 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004489/3.464, allocations: 307.2 kB / 1.541 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/3.464, allocations: 3.953 kB / 1.541 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/3.465, allocations: 59.78 kB / 1.541 GB, free: 15.67 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/3.465, allocations: 60.48 kB / 1.541 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.726e-05/3.465, allocations: 31.97 kB / 1.541 GB, free: 15.58 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0008847/3.466, allocations: 0.7343 MB / 1.542 GB, free: 14.84 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.9e-07/3.466, allocations: 3.938 kB / 1.542 GB, free: 14.84 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00262/3.469, allocations: 0.8496 MB / 1.543 GB, free: 13.99 MB / 0.6667 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.001751/3.47, allocations: 1.087 MB / 1.544 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001721/3.472, allocations: 1.245 MB / 1.545 GB, free: 11.71 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/3.472, allocations: 0 / 1.545 GB, free: 11.71 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004164/3.472, allocations: 364.3 kB / 1.546 GB, free: 11.36 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/3.475, allocations: 0.6158 MB / 1.546 GB, free: 10.76 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/3.478, allocations: 1.983 MB / 1.548 GB, free: 8.73 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/3.479, allocations: 1.3 MB / 1.549 GB, free: 7.398 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001725/3.481, allocations: 497.1 kB / 1.55 GB, free: 6.914 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001909/3.481, allocations: 99.39 kB / 1.55 GB, free: 6.816 MB / 0.6667 GB Notification: Performance of SimCode: time 9.22e-07/3.481, allocations: 0 / 1.55 GB, free: 6.816 MB / 0.6667 GB Notification: Performance of Templates: time 0.5375/4.018, allocations: 30.21 MB / 1.579 GB, free: 104.2 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)