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-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: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008145/0.008145, allocations: 171.1 kB / 15.11 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8023/0.8023, allocations: 135.2 MB / 151 MB, free: 13.82 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.647/1.647, allocations: 223.2 MB / 406.8 MB, free: 3.164 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.001071/0.001071, allocations: 102.4 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.0004789, allocations: 8 kB / 0.5692 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5291/0.5296, allocations: 82.3 MB / 0.6495 GB, free: 36.12 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9514/1.481, allocations: 364 MB / 1.005 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005607/1.482, allocations: 113.9 kB / 1.005 GB, free: 9.102 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 2.054/3.535, allocations: 0.5304 GB / 1.536 GB, free: 42.11 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.385e-06/3.535, allocations: 0 / 1.536 GB, free: 42.11 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001758/3.535, allocations: 43.98 kB / 1.536 GB, free: 42.07 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.00523/3.541, allocations: 2.191 MB / 1.538 GB, free: 39.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/3.541, allocations: 8.031 kB / 1.538 GB, free: 39.81 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002619/3.541, allocations: 152.3 kB / 1.538 GB, free: 39.65 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/3.543, allocations: 367.1 kB / 1.538 GB, free: 39.29 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004847/3.548, allocations: 2.032 MB / 1.54 GB, free: 37.21 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/3.548, allocations: 82 kB / 1.54 GB, free: 37.13 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/3.548, allocations: 104 kB / 1.54 GB, free: 37.03 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001999/3.55, allocations: 1.154 MB / 1.542 GB, free: 35.82 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/3.55, allocations: 0 / 1.542 GB, free: 35.82 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.961e-05/3.55, allocations: 44.33 kB / 1.542 GB, free: 35.78 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/3.55, allocations: 31.95 kB / 1.542 GB, free: 35.75 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/3.552, allocations: 0.8861 MB / 1.542 GB, free: 34.87 MB / 0.6823 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.006661/3.558, allocations: 4.633 MB / 1.547 GB, free: 30.03 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/3.56, allocations: 0.6037 MB / 1.548 GB, free: 29.41 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004169/3.564, allocations: 2.939 MB / 1.55 GB, free: 26.12 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006068/3.564, allocations: 338.8 kB / 1.551 GB, free: 25.77 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006168/3.565, allocations: 71.11 kB / 1.551 GB, free: 25.7 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 3.486e-06/3.565, allocations: 0 / 1.551 GB, free: 25.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001982/3.567, allocations: 0.9877 MB / 1.552 GB, free: 24.68 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/3.567, allocations: 55.97 kB / 1.552 GB, free: 24.62 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/3.569, allocations: 1.188 MB / 1.553 GB, free: 23.42 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.024e-05/3.569, allocations: 41.64 kB / 1.553 GB, free: 23.38 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005556/3.569, allocations: 0.7424 MB / 1.554 GB, free: 22.62 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/3.569, allocations: 189.3 kB / 1.554 GB, free: 22.44 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/3.57, allocations: 16 kB / 1.554 GB, free: 22.42 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.825e-05/3.57, allocations: 341.9 kB / 1.554 GB, free: 22.08 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/3.57, allocations: 281.8 kB / 1.555 GB, free: 21.8 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006787/3.571, allocations: 0.6538 MB / 1.555 GB, free: 20.98 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005991/3.571, allocations: 398.4 kB / 1.556 GB, free: 20.59 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/3.571, allocations: 4 kB / 1.556 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00183/3.573, allocations: 1.121 MB / 1.557 GB, free: 19.44 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009538/3.574, allocations: 4.395 MB / 1.561 GB, free: 14.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/3.574, allocations: 12 kB / 1.561 GB, free: 14.79 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002895/3.575, allocations: 52.84 kB / 1.561 GB, free: 14.73 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/3.575, allocations: 211.6 kB / 1.561 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003349/3.576, allocations: 0.5991 MB / 1.562 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/3.577, allocations: 103.8 kB / 1.562 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/3.577, allocations: 59.97 kB / 1.562 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/3.577, allocations: 11.94 kB / 1.562 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001492/3.578, allocations: 0.9528 MB / 1.563 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/3.579, allocations: 12 kB / 1.563 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/3.579, allocations: 65.2 kB / 1.563 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006055/3.579, allocations: 207.7 kB / 1.563 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002647/3.58, allocations: 0.5874 MB / 1.564 GB, free: 11.87 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/3.581, allocations: 95.84 kB / 1.564 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.744e-05/3.581, allocations: 55.98 kB / 1.564 GB, free: 11.72 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 () * Number of clocked 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.0008628/3.582, allocations: 456.5 kB / 1.564 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/3.582, allocations: 150.2 kB / 1.564 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/3.584, allocations: 1.143 MB / 1.566 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.877e-05/3.584, allocations: 15.98 kB / 1.566 GB, free: 9.945 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/3.584, allocations: 0 / 1.566 GB, free: 9.945 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001153/3.585, allocations: 0.8984 MB / 1.566 GB, free: 8.996 MB / 0.6823 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 postOpt removeSimpleEquations (simulation): time 0.00341/3.588, allocations: 2.164 MB / 1.569 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/3.588, allocations: 0 / 1.569 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004867/3.589, allocations: 111.9 kB / 1.569 GB, free: 6.652 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/3.589, allocations: 44.77 kB / 1.569 GB, free: 6.605 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.882e-05/3.589, allocations: 32.06 kB / 1.569 GB, free: 6.574 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002938/3.589, allocations: 0.5603 MB / 1.569 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/3.589, allocations: 0 / 1.569 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/3.592, allocations: 1.489 MB / 1.571 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006535/3.592, allocations: 315 kB / 1.571 GB, free: 4.102 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/3.592, allocations: 16 kB / 1.571 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006805/3.593, allocations: 71.78 kB / 1.571 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/3.593, allocations: 64.36 kB / 1.571 GB, free: 3.953 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-05/3.593, allocations: 31.97 kB / 1.571 GB, free: 3.922 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001234/3.595, allocations: 0.9094 MB / 1.572 GB, free: 3.016 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.01e-07/3.595, allocations: 0 / 1.572 GB, free: 3.016 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0027/3.597, allocations: 0.8774 MB / 1.573 GB, free: 2.137 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) * Number of clocked states: 0 () * 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.4957/4.093, allocations: 3.318 MB / 1.576 GB, free: 95.86 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003666/4.097, allocations: 1.401 MB / 1.578 GB, free: 95.73 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/4.097, allocations: 0.75 kB / 1.578 GB, free: 95.73 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.00103/4.098, allocations: 414.1 kB / 1.578 GB, free: 95.73 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003938/4.102, allocations: 0.7319 MB / 1.579 GB, free: 95.73 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009301/4.111, allocations: 11.83 MB / 1.59 GB, free: 86.11 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/4.112, allocations: 1.3 MB / 1.592 GB, free: 85.4 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.00209/4.114, allocations: 401.1 kB / 1.592 GB, free: 85.38 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008371/4.115, allocations: 0.595 MB / 1.593 GB, free: 85.38 MB / 0.6823 GB Notification: Performance of SimCode: time 1.403e-06/4.115, allocations: 1.75 kB / 1.593 GB, free: 85.38 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/4.238, allocations: 50.12 MB / 1.641 GB, free: 83.23 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003395/4.239, allocations: 258.1 kB / 1.642 GB, free: 82.88 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.621/7.86, allocations: 3.938 kB / 1.642 GB, free: 82.88 MB / 0.6823 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)