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/Complex 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) 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-master/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_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/Complex 4.0.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 174.9 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-master/package.mo): time 0.7941/0.7941, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.602/1.602, allocations: 221.3 MB / 400.4 MB, free: 5.816 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.0009959/0.0009961, allocations: 103.8 kB / 483.3 MB, free: 5.875 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.746e-05/3.748e-05, allocations: 3.875 kB / 0.56 GB, free: 87.94 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1994, allocations: 82.31 MB / 0.6404 GB, free: 7.812 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.413/1.612, allocations: 363.9 MB / 0.9958 GB, free: 206.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/1.612, allocations: 103.6 kB / 0.9959 GB, free: 206.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.048/3.66, allocations: 0.5284 GB / 1.524 GB, free: 92.06 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.803e-06/3.66, allocations: 3.844 kB / 1.524 GB, free: 92.06 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001932/3.66, allocations: 44.45 kB / 1.524 GB, free: 92.06 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.004079/3.664, allocations: 1.783 MB / 1.526 GB, free: 91.42 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/3.665, allocations: 7.625 kB / 1.526 GB, free: 91.42 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001802/3.666, allocations: 362.6 kB / 1.526 GB, free: 91.33 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/3.671, allocations: 2.007 MB / 1.528 GB, free: 91 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.122e-05/3.671, allocations: 80.67 kB / 1.529 GB, free: 91 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/3.671, allocations: 108.8 kB / 1.529 GB, free: 91 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/3.673, allocations: 1.102 MB / 1.53 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/3.673, allocations: 0 / 1.53 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.41e-05/3.673, allocations: 47.23 kB / 1.53 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/3.673, allocations: 24.56 kB / 1.53 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/3.675, allocations: 0.7939 MB / 1.531 GB, free: 90.83 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.006174/3.681, allocations: 4.632 MB / 1.535 GB, free: 89.06 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/3.681, allocations: 0.5418 MB / 1.536 GB, free: 89.04 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/3.682, allocations: 264.8 kB / 1.536 GB, free: 89.03 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003935/3.686, allocations: 2.947 MB / 1.539 GB, free: 87.04 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005111/3.686, allocations: 303.8 kB / 1.539 GB, free: 86.98 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004882/3.687, allocations: 64.7 kB / 1.539 GB, free: 86.96 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 3.656e-06/3.687, allocations: 3.188 kB / 1.539 GB, free: 86.96 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.0012/3.688, allocations: 0.6174 MB / 1.54 GB, free: 86.83 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/3.688, allocations: 63.72 kB / 1.54 GB, free: 86.77 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/3.69, allocations: 1.162 MB / 1.541 GB, free: 86.61 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/3.69, allocations: 36.83 kB / 1.541 GB, free: 86.57 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006348/3.691, allocations: 0.7461 MB / 1.542 GB, free: 86.34 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/3.691, allocations: 193.3 kB / 1.542 GB, free: 86.22 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/3.691, allocations: 18.53 kB / 1.542 GB, free: 86.22 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001038/3.691, allocations: 346.6 kB / 1.542 GB, free: 85.91 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/3.691, allocations: 246.6 kB / 1.542 GB, free: 85.91 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006479/3.692, allocations: 0.6249 MB / 1.543 GB, free: 85.45 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/3.693, allocations: 375.6 kB / 1.543 GB, free: 85.41 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/3.693, allocations: 5.312 kB / 1.543 GB, free: 85.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001684/3.694, allocations: 1.058 MB / 1.544 GB, free: 85.25 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001306/3.696, allocations: 4.388 MB / 1.549 GB, free: 80.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/3.696, allocations: 10.5 kB / 1.549 GB, free: 80.78 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003151/3.696, allocations: 62.14 kB / 1.549 GB, free: 80.77 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006615/3.697, allocations: 213.1 kB / 1.549 GB, free: 80.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004151/3.697, allocations: 0.5842 MB / 1.55 GB, free: 80.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/3.698, allocations: 114.3 kB / 1.55 GB, free: 80.24 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/3.698, allocations: 62.77 kB / 1.55 GB, free: 80.24 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/3.698, allocations: 6.531 kB / 1.55 GB, free: 80.24 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001426/3.7, allocations: 0.8966 MB / 1.551 GB, free: 80.19 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/3.7, allocations: 10.91 kB / 1.551 GB, free: 80.19 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/3.7, allocations: 59.69 kB / 1.551 GB, free: 80.18 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006266/3.701, allocations: 209.1 kB / 1.551 GB, free: 80.18 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003156/3.701, allocations: 0.6025 MB / 1.551 GB, free: 79.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009471/3.702, allocations: 94.44 kB / 1.552 GB, free: 79.66 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.154e-05/3.702, allocations: 52.94 kB / 1.552 GB, free: 79.66 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.0002475/3.702, allocations: 164.5 kB / 1.552 GB, free: 79.54 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/3.703, allocations: 147.8 kB / 1.552 GB, free: 79.46 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/3.705, allocations: 1.092 MB / 1.553 GB, free: 79.36 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/3.705, allocations: 15.62 kB / 1.553 GB, free: 79.36 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/3.705, allocations: 0 / 1.553 GB, free: 79.36 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009374/3.706, allocations: 0.8362 MB / 1.554 GB, free: 79.09 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.003184/3.709, allocations: 2.115 MB / 1.556 GB, free: 78.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/3.709, allocations: 0 / 1.556 GB, free: 78.71 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/3.709, allocations: 115.8 kB / 1.556 GB, free: 78.71 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/3.71, allocations: 39.81 kB / 1.556 GB, free: 78.7 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.695e-05/3.71, allocations: 20.62 kB / 1.556 GB, free: 78.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000262/3.71, allocations: 0.5652 MB / 1.557 GB, free: 78.18 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/3.71, allocations: 3.906 kB / 1.557 GB, free: 78.18 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/3.711, allocations: 1.4 MB / 1.558 GB, free: 77.82 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005498/3.712, allocations: 323.8 kB / 1.558 GB, free: 77.64 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/3.712, allocations: 14.77 kB / 1.558 GB, free: 77.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006525/3.713, allocations: 66.7 kB / 1.558 GB, free: 77.63 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/3.713, allocations: 58.38 kB / 1.558 GB, free: 77.63 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.434e-05/3.713, allocations: 30.3 kB / 1.558 GB, free: 77.63 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001246/3.714, allocations: 0.8923 MB / 1.559 GB, free: 77.52 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4e-07/3.714, allocations: 0 / 1.559 GB, free: 77.52 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003123/3.717, allocations: 0.8811 MB / 1.56 GB, free: 77.39 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.002236/3.72, allocations: 1.138 MB / 1.561 GB, free: 77.12 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002347/3.722, allocations: 1.359 MB / 1.563 GB, free: 76.96 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/3.722, allocations: 0.8438 kB / 1.563 GB, free: 76.96 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006/3.723, allocations: 390 kB / 1.563 GB, free: 76.96 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003597/3.726, allocations: 0.7312 MB / 1.564 GB, free: 76.95 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/3.73, allocations: 2.046 MB / 1.566 GB, free: 76.37 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007659/3.731, allocations: 1.3 MB / 1.567 GB, free: 75.66 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002083/3.733, allocations: 0.5176 MB / 1.567 GB, free: 75.64 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/3.733, allocations: 115.6 kB / 1.568 GB, free: 75.63 MB / 0.6823 GB Notification: Performance of SimCode: time 1.523e-06/3.733, allocations: 0 / 1.568 GB, free: 75.63 MB / 0.6823 GB Notification: Performance of Templates: time 0.0617/3.795, allocations: 38.59 MB / 1.605 GB, free: 73.58 MB / 0.6823 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 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)