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.001643/0.001643, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9328/0.9328, allocations: 133.6 MB / 141.6 MB, free: 2.875 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.488/1.488, allocations: 221.5 MB / 395.4 MB, free: 10.77 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.0009259/0.0009263, allocations: 98.17 kB / 478.2 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.604e-05/1.606e-05, allocations: 4 kB / 0.5536 GB, free: 8.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4702/0.4702, allocations: 82.31 MB / 0.6339 GB, free: 40.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8819/1.352, allocations: 363.3 MB / 0.9887 GB, free: 4.98 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/1.353, allocations: 102.8 kB / 0.9888 GB, free: 4.926 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.947/3.3, allocations: 0.5251 GB / 1.514 GB, free: 81.87 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.903e-06/3.3, allocations: 0 / 1.514 GB, free: 81.87 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001623/3.3, allocations: 47.41 kB / 1.514 GB, free: 81.83 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.003475/3.303, allocations: 1.791 MB / 1.516 GB, free: 80 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/3.304, allocations: 12.03 kB / 1.516 GB, free: 79.99 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001671/3.305, allocations: 359.1 kB / 1.516 GB, free: 79.64 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004201/3.309, allocations: 2.01 MB / 1.518 GB, free: 77.62 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/3.309, allocations: 32 kB / 1.518 GB, free: 77.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/3.31, allocations: 67.98 kB / 1.518 GB, free: 77.53 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001252/3.311, allocations: 0.7498 MB / 1.519 GB, free: 76.78 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/3.312, allocations: 0.9631 MB / 1.52 GB, free: 75.77 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/3.312, allocations: 0 / 1.52 GB, free: 75.77 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.087e-05/3.312, allocations: 0 / 1.52 GB, free: 75.77 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/3.312, allocations: 28 kB / 1.52 GB, free: 75.74 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.00563/3.318, allocations: 4.439 MB / 1.524 GB, free: 71.19 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/3.319, allocations: 0.5388 MB / 1.525 GB, free: 70.64 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/3.319, allocations: 258.5 kB / 1.525 GB, free: 70.39 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003456/3.322, allocations: 2.887 MB / 1.528 GB, free: 67.16 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003895/3.323, allocations: 285.8 kB / 1.528 GB, free: 66.87 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004272/3.323, allocations: 43.38 kB / 1.528 GB, free: 66.82 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 2.956e-06/3.323, allocations: 3.938 kB / 1.528 GB, free: 66.82 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001987/3.325, allocations: 0.7441 MB / 1.529 GB, free: 66.07 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/3.325, allocations: 59.97 kB / 1.529 GB, free: 66 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/3.327, allocations: 0.9836 MB / 1.53 GB, free: 65 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/3.327, allocations: 25.7 kB / 1.53 GB, free: 64.97 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004821/3.327, allocations: 0.7489 MB / 1.53 GB, free: 64.22 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000127/3.327, allocations: 185.2 kB / 1.531 GB, free: 64.04 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/3.327, allocations: 4 kB / 1.531 GB, free: 64.03 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.53e-05/3.327, allocations: 345.9 kB / 1.531 GB, free: 63.69 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/3.328, allocations: 230.6 kB / 1.531 GB, free: 63.46 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/3.328, allocations: 0.5997 MB / 1.532 GB, free: 62.68 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/3.33, allocations: 0.4981 MB / 1.532 GB, free: 62.18 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/3.33, allocations: 4 kB / 1.532 GB, free: 62.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002406/3.332, allocations: 1.096 MB / 1.533 GB, free: 61.08 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006978/3.333, allocations: 4.363 MB / 1.538 GB, free: 56.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/3.333, allocations: 8 kB / 1.538 GB, free: 56.43 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001942/3.333, allocations: 52.84 kB / 1.538 GB, free: 56.38 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006827/3.334, allocations: 219.6 kB / 1.538 GB, free: 56.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003132/3.334, allocations: 0.5797 MB / 1.538 GB, free: 55.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/3.335, allocations: 91.73 kB / 1.539 GB, free: 55.46 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.172e-05/3.335, allocations: 55.98 kB / 1.539 GB, free: 55.41 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/3.335, allocations: 9.516 kB / 1.539 GB, free: 55.4 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002176/3.337, allocations: 0.9429 MB / 1.54 GB, free: 54.46 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/3.337, allocations: 12 kB / 1.54 GB, free: 54.45 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001123/3.338, allocations: 48.84 kB / 1.54 GB, free: 54.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006103/3.338, allocations: 216.2 kB / 1.54 GB, free: 54.19 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002592/3.339, allocations: 0.5875 MB / 1.54 GB, free: 53.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/3.34, allocations: 71.84 kB / 1.54 GB, free: 53.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.362e-05/3.34, allocations: 59.94 kB / 1.541 GB, free: 53.45 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.0002037/3.34, allocations: 143.7 kB / 1.541 GB, free: 53.3 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001896/3.342, allocations: 0.744 MB / 1.541 GB, free: 52.55 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/3.342, allocations: 134.3 kB / 1.541 GB, free: 52.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/3.344, allocations: 1.128 MB / 1.543 GB, free: 51.29 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/3.344, allocations: 11.98 kB / 1.543 GB, free: 51.27 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/3.344, allocations: 0 / 1.543 GB, free: 51.27 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00142/3.346, allocations: 0.8991 MB / 1.543 GB, free: 50.32 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.00335/3.349, allocations: 2.025 MB / 1.545 GB, free: 48.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/3.349, allocations: 0 / 1.545 GB, free: 48.26 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/3.349, allocations: 119.8 kB / 1.546 GB, free: 48.14 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001152/3.35, allocations: 36.84 kB / 1.546 GB, free: 48.1 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/3.35, allocations: 15.98 kB / 1.546 GB, free: 48.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002581/3.35, allocations: 0.5719 MB / 1.546 GB, free: 47.49 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/3.35, allocations: 0 / 1.546 GB, free: 47.49 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/3.352, allocations: 1.428 MB / 1.548 GB, free: 46 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005094/3.353, allocations: 303.1 kB / 1.548 GB, free: 45.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/3.353, allocations: 11.89 kB / 1.548 GB, free: 45.67 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/3.353, allocations: 59.78 kB / 1.548 GB, free: 45.61 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/3.354, allocations: 60.48 kB / 1.548 GB, free: 45.55 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.166e-05/3.354, allocations: 27.98 kB / 1.548 GB, free: 45.52 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0009064/3.355, allocations: 0.7382 MB / 1.549 GB, free: 44.79 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/3.355, allocations: 0 / 1.549 GB, free: 44.79 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002317/3.357, allocations: 0.8496 MB / 1.55 GB, free: 43.93 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.004038/3.361, allocations: 3.241 MB / 1.553 GB, free: 40.77 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001833/3.363, allocations: 1.246 MB / 1.554 GB, free: 39.51 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/3.363, allocations: 1.438 kB / 1.554 GB, free: 39.51 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004437/3.363, allocations: 354.2 kB / 1.554 GB, free: 39.16 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/3.366, allocations: 0.6155 MB / 1.555 GB, free: 38.58 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/3.371, allocations: 2.358 MB / 1.557 GB, free: 36.17 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/3.371, allocations: 1.307 MB / 1.558 GB, free: 34.83 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001822/3.373, allocations: 489.7 kB / 1.559 GB, free: 34.38 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005956/3.374, allocations: 0.5695 MB / 1.559 GB, free: 33.8 MB / 0.6823 GB Notification: Performance of SimCode: time 1.112e-06/3.374, allocations: 0 / 1.559 GB, free: 33.8 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.495/3.869, allocations: 43.42 MB / 1.602 GB, free: 101.9 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/3.869, allocations: 180.8 kB / 1.602 GB, free: 101.7 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.484/7.353, allocations: 1.875 kB / 1.602 GB, free: 101.7 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)