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.001126/0.001126, allocations: 174.6 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.7085/0.7085, allocations: 133.4 MB / 146.7 MB, free: 10.77 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.461/1.461, allocations: 221.3 MB / 400.4 MB, free: 5.809 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.001005/0.001005, allocations: 99.14 kB / 483.3 MB, free: 5.852 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.82e-05/3.826e-05, allocations: 3.719 kB / 0.5602 GB, free: 87.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2104, allocations: 82.3 MB / 0.6405 GB, free: 7.695 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.316/1.526, allocations: 363.9 MB / 0.9959 GB, free: 206 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/1.527, allocations: 105.7 kB / 0.996 GB, free: 206 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 1.876/3.402, allocations: 0.5284 GB / 1.524 GB, free: 91.64 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.485e-06/3.402, allocations: 0 / 1.524 GB, free: 91.64 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002737/3.403, allocations: 46.11 kB / 1.524 GB, free: 91.64 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.004711/3.407, allocations: 1.784 MB / 1.526 GB, free: 90.99 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/3.407, allocations: 15.41 kB / 1.526 GB, free: 90.98 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004075/3.408, allocations: 149.7 kB / 1.526 GB, free: 90.95 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002114/3.41, allocations: 366.4 kB / 1.527 GB, free: 90.85 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006051/3.416, allocations: 2.001 MB / 1.529 GB, free: 90.52 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/3.416, allocations: 81.19 kB / 1.529 GB, free: 90.52 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003446/3.417, allocations: 118.2 kB / 1.529 GB, free: 90.52 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/3.419, allocations: 1.1 MB / 1.53 GB, free: 90.35 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.995e-05/3.419, allocations: 0 / 1.53 GB, free: 90.35 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/3.419, allocations: 44 kB / 1.53 GB, free: 90.35 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/3.419, allocations: 26.59 kB / 1.53 GB, free: 90.35 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/3.42, allocations: 0.7917 MB / 1.531 GB, free: 90.34 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.007259/3.428, allocations: 4.64 MB / 1.535 GB, free: 88.58 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007766/3.429, allocations: 0.5262 MB / 1.536 GB, free: 88.56 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/3.429, allocations: 275.6 kB / 1.536 GB, free: 88.55 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004141/3.433, allocations: 2.943 MB / 1.539 GB, free: 86.56 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/3.434, allocations: 307.7 kB / 1.539 GB, free: 86.51 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006191/3.434, allocations: 66.77 kB / 1.539 GB, free: 86.49 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 5.791e-06/3.434, allocations: 0 / 1.539 GB, free: 86.49 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001284/3.435, allocations: 0.6159 MB / 1.54 GB, free: 86.36 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/3.436, allocations: 66.19 kB / 1.54 GB, free: 86.29 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/3.437, allocations: 1.161 MB / 1.541 GB, free: 86.13 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.48e-05/3.437, allocations: 43.48 kB / 1.541 GB, free: 86.1 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005897/3.438, allocations: 0.7392 MB / 1.542 GB, free: 85.85 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000191/3.438, allocations: 193.2 kB / 1.542 GB, free: 85.73 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/3.438, allocations: 19.02 kB / 1.542 GB, free: 85.73 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.584e-05/3.438, allocations: 347.2 kB / 1.542 GB, free: 85.43 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004016/3.439, allocations: 252 kB / 1.543 GB, free: 85.43 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/3.439, allocations: 0.6208 MB / 1.543 GB, free: 84.97 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005793/3.44, allocations: 381.6 kB / 1.544 GB, free: 84.93 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/3.44, allocations: 3.188 kB / 1.544 GB, free: 84.93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001795/3.442, allocations: 1.051 MB / 1.545 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001064/3.443, allocations: 4.396 MB / 1.549 GB, free: 80.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/3.443, allocations: 11.31 kB / 1.549 GB, free: 80.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/3.443, allocations: 61.2 kB / 1.549 GB, free: 80.29 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006742/3.444, allocations: 207.6 kB / 1.549 GB, free: 80.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003531/3.444, allocations: 0.5971 MB / 1.55 GB, free: 79.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/3.446, allocations: 105.8 kB / 1.55 GB, free: 79.76 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/3.446, allocations: 52.66 kB / 1.55 GB, free: 79.76 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/3.446, allocations: 3.5 kB / 1.55 GB, free: 79.76 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001422/3.447, allocations: 0.8977 MB / 1.551 GB, free: 79.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/3.447, allocations: 14.47 kB / 1.551 GB, free: 79.71 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/3.447, allocations: 61.62 kB / 1.551 GB, free: 79.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006461/3.448, allocations: 208.7 kB / 1.551 GB, free: 79.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003002/3.448, allocations: 0.5905 MB / 1.552 GB, free: 79.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/3.449, allocations: 101.2 kB / 1.552 GB, free: 79.17 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/3.45, allocations: 55.2 kB / 1.552 GB, free: 79.17 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.0002171/3.45, allocations: 169.4 kB / 1.552 GB, free: 79.06 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/3.45, allocations: 149.2 kB / 1.552 GB, free: 78.98 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/3.452, allocations: 1.079 MB / 1.553 GB, free: 78.88 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/3.452, allocations: 14.64 kB / 1.553 GB, free: 78.87 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/3.452, allocations: 3.031 kB / 1.553 GB, free: 78.87 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009426/3.453, allocations: 0.8377 MB / 1.554 GB, free: 78.6 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.003618/3.457, allocations: 2.116 MB / 1.556 GB, free: 78.22 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/3.457, allocations: 0 / 1.556 GB, free: 78.22 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004666/3.457, allocations: 112.8 kB / 1.556 GB, free: 78.22 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/3.457, allocations: 50.19 kB / 1.556 GB, free: 78.21 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/3.457, allocations: 19.97 kB / 1.556 GB, free: 78.21 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002439/3.457, allocations: 0.5633 MB / 1.557 GB, free: 77.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/3.458, allocations: 3.531 kB / 1.557 GB, free: 77.69 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/3.459, allocations: 1.4 MB / 1.558 GB, free: 77.33 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006234/3.46, allocations: 321 kB / 1.558 GB, free: 77.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/3.46, allocations: 17.27 kB / 1.558 GB, free: 77.14 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/3.461, allocations: 68.89 kB / 1.559 GB, free: 77.14 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/3.461, allocations: 54.8 kB / 1.559 GB, free: 77.14 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-05/3.461, allocations: 32.08 kB / 1.559 GB, free: 77.14 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001253/3.462, allocations: 0.8919 MB / 1.56 GB, free: 77.02 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.21e-07/3.462, allocations: 0 / 1.56 GB, free: 77.02 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002877/3.465, allocations: 0.8799 MB / 1.56 GB, free: 76.9 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.004237/3.47, allocations: 3.256 MB / 1.564 GB, free: 75.57 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002412/3.472, allocations: 1.358 MB / 1.565 GB, free: 75.43 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/3.472, allocations: 0 / 1.565 GB, free: 75.43 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006322/3.473, allocations: 384.6 kB / 1.565 GB, free: 75.42 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003476/3.476, allocations: 0.742 MB / 1.566 GB, free: 75.41 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005666/3.482, allocations: 2.449 MB / 1.568 GB, free: 74.71 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009382/3.483, allocations: 1.301 MB / 1.57 GB, free: 74 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002388/3.485, allocations: 0.5144 MB / 1.57 GB, free: 73.98 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007445/3.486, allocations: 0.5748 MB / 1.571 GB, free: 73.97 MB / 0.6823 GB Notification: Performance of SimCode: time 1.693e-06/3.486, allocations: 0 / 1.571 GB, free: 73.97 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09059/3.577, allocations: 53.97 MB / 1.623 GB, free: 71.33 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/3.577, allocations: 234.5 kB / 1.624 GB, free: 71.04 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.903/7.48, allocations: 0 / 1.624 GB, free: 71.04 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)