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: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_dev_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.008054/0.008054, allocations: 171 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7905/0.7905, allocations: 135.2 MB / 151 MB, free: 13.8 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.689/1.689, allocations: 223.2 MB / 406.8 MB, free: 3.223 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.0009141/0.0009141, allocations: 91.67 kB / 489.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004252/0.0004253, allocations: 8 kB / 0.5692 GB, free: 14.02 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4972/0.4976, allocations: 82.3 MB / 0.6495 GB, free: 36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9552/1.453, allocations: 364 MB / 1.005 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005146/1.454, allocations: 106.1 kB / 1.005 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 2.2/3.653, allocations: 0.5304 GB / 1.536 GB, free: 41.67 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.084e-06/3.653, allocations: 0 / 1.536 GB, free: 41.67 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002761/3.654, allocations: 47.89 kB / 1.536 GB, free: 41.62 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.006481/3.66, allocations: 2.181 MB / 1.538 GB, free: 39.38 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/3.66, allocations: 8.031 kB / 1.538 GB, free: 39.38 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000552/3.661, allocations: 156.3 kB / 1.538 GB, free: 39.21 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002186/3.663, allocations: 367.1 kB / 1.538 GB, free: 38.86 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005706/3.669, allocations: 2.028 MB / 1.54 GB, free: 36.77 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-05/3.669, allocations: 85.94 kB / 1.54 GB, free: 36.69 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/3.669, allocations: 108 kB / 1.54 GB, free: 36.59 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/3.671, allocations: 1.15 MB / 1.542 GB, free: 35.39 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/3.671, allocations: 8 kB / 1.542 GB, free: 35.38 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/3.672, allocations: 40.34 kB / 1.542 GB, free: 35.34 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/3.672, allocations: 27.95 kB / 1.542 GB, free: 35.31 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/3.674, allocations: 0.8822 MB / 1.542 GB, free: 34.43 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.007078/3.681, allocations: 4.653 MB / 1.547 GB, free: 29.57 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/3.682, allocations: 0.6024 MB / 1.548 GB, free: 28.96 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004016/3.686, allocations: 2.931 MB / 1.55 GB, free: 25.67 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005625/3.687, allocations: 334.9 kB / 1.551 GB, free: 25.33 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005568/3.687, allocations: 67.12 kB / 1.551 GB, free: 25.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 2.104e-06/3.687, allocations: 0 / 1.551 GB, free: 25.26 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001851/3.689, allocations: 0.9837 MB / 1.552 GB, free: 24.25 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/3.689, allocations: 59.97 kB / 1.552 GB, free: 24.18 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/3.691, allocations: 1.192 MB / 1.553 GB, free: 22.98 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/3.691, allocations: 45.64 kB / 1.553 GB, free: 22.93 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004941/3.691, allocations: 0.7307 MB / 1.554 GB, free: 22.19 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/3.691, allocations: 193.3 kB / 1.554 GB, free: 22 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/3.691, allocations: 20 kB / 1.554 GB, free: 21.98 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.363e-05/3.691, allocations: 341.9 kB / 1.554 GB, free: 21.64 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004842/3.692, allocations: 281.8 kB / 1.555 GB, free: 21.36 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006751/3.693, allocations: 0.6537 MB / 1.555 GB, free: 20.54 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/3.693, allocations: 402.4 kB / 1.556 GB, free: 20.14 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/3.693, allocations: 4 kB / 1.556 GB, free: 20.14 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001829/3.695, allocations: 1.117 MB / 1.557 GB, free: 19 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008201/3.696, allocations: 4.391 MB / 1.561 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/3.696, allocations: 12 kB / 1.561 GB, free: 14.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002719/3.696, allocations: 52.84 kB / 1.561 GB, free: 14.29 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006743/3.697, allocations: 211.6 kB / 1.561 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003457/3.697, allocations: 0.599 MB / 1.562 GB, free: 13.46 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/3.699, allocations: 107.7 kB / 1.562 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/3.699, allocations: 63.97 kB / 1.562 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/3.699, allocations: 4 kB / 1.562 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00152/3.7, allocations: 0.9565 MB / 1.563 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/3.7, allocations: 12.59 kB / 1.563 GB, free: 12.31 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/3.7, allocations: 64.86 kB / 1.563 GB, free: 12.24 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006631/3.701, allocations: 207.6 kB / 1.563 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002737/3.701, allocations: 0.5914 MB / 1.564 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/3.703, allocations: 91.91 kB / 1.564 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/3.703, allocations: 59.97 kB / 1.564 GB, free: 11.27 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.0009622/3.704, allocations: 444.7 kB / 1.564 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/3.704, allocations: 150.2 kB / 1.564 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/3.706, allocations: 1.139 MB / 1.566 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/3.706, allocations: 15.98 kB / 1.566 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/3.706, allocations: 4 kB / 1.566 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001122/3.707, allocations: 0.8945 MB / 1.566 GB, free: 8.559 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.003517/3.711, allocations: 2.164 MB / 1.569 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/3.711, allocations: 0 / 1.569 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/3.711, allocations: 115.8 kB / 1.569 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/3.711, allocations: 44.95 kB / 1.569 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.755e-05/3.711, allocations: 23.94 kB / 1.569 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002653/3.712, allocations: 0.5602 MB / 1.569 GB, free: 5.555 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/3.712, allocations: 4.031 kB / 1.569 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/3.714, allocations: 1.489 MB / 1.571 GB, free: 3.992 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006556/3.714, allocations: 315 kB / 1.571 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/3.715, allocations: 27.98 kB / 1.571 GB, free: 3.637 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006951/3.715, allocations: 71.73 kB / 1.571 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/3.715, allocations: 60.47 kB / 1.571 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.599e-05/3.716, allocations: 27.98 kB / 1.571 GB, free: 3.48 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001271/3.717, allocations: 0.9055 MB / 1.572 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.7e-07/3.717, allocations: 0 / 1.572 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002707/3.72, allocations: 0.8813 MB / 1.573 GB, free: 1.695 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.4216/4.141, allocations: 3.317 MB / 1.576 GB, free: 95.69 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003787/4.145, allocations: 1.4 MB / 1.578 GB, free: 95.56 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/4.145, allocations: 2.875 kB / 1.578 GB, free: 95.56 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.00103/4.146, allocations: 415.9 kB / 1.578 GB, free: 95.56 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003801/4.15, allocations: 0.7302 MB / 1.579 GB, free: 95.55 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00814/4.158, allocations: 11.84 MB / 1.59 GB, free: 85.93 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/4.159, allocations: 1.295 MB / 1.592 GB, free: 85.22 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001959/4.161, allocations: 393.5 kB / 1.592 GB, free: 85.2 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007139/4.162, allocations: 0.5985 MB / 1.593 GB, free: 85.2 MB / 0.6823 GB Notification: Performance of SimCode: time 1.062e-06/4.162, allocations: 0 / 1.593 GB, free: 85.2 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08353/4.245, allocations: 50.12 MB / 1.641 GB, free: 83.05 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/4.246, allocations: 261.6 kB / 1.642 GB, free: 82.69 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.871/8.116, allocations: 0 / 1.642 GB, free: 82.69 MB / 0.6823 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)