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.001277/0.001277, allocations: 174.5 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.6885/0.6885, allocations: 133.4 MB / 146.7 MB, free: 10.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.297/1.297, allocations: 221.3 MB / 400.4 MB, free: 5.84 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.0008326/0.0008326, allocations: 97.44 kB / 483.3 MB, free: 5.895 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.047e-05, allocations: 3.75 kB / 0.5601 GB, free: 87.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1384, allocations: 82.32 MB / 0.6405 GB, free: 7.727 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9738/1.112, allocations: 363.9 MB / 0.9959 GB, free: 255.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/1.113, allocations: 107.9 kB / 0.996 GB, free: 255.7 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 1.668/2.781, allocations: 0.5284 GB / 1.524 GB, free: 91.66 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.032e-06/2.781, allocations: 0 / 1.524 GB, free: 91.66 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002014/2.781, allocations: 48.62 kB / 1.524 GB, free: 91.66 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.003597/2.784, allocations: 1.775 MB / 1.526 GB, free: 91.04 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/2.784, allocations: 22.23 kB / 1.526 GB, free: 91.04 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002946/2.785, allocations: 150.7 kB / 1.526 GB, free: 91 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/2.787, allocations: 357.8 kB / 1.527 GB, free: 90.91 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004603/2.791, allocations: 2.007 MB / 1.529 GB, free: 90.57 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/2.791, allocations: 85.59 kB / 1.529 GB, free: 90.57 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/2.791, allocations: 108.3 kB / 1.529 GB, free: 90.57 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/2.793, allocations: 1.103 MB / 1.53 GB, free: 90.4 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/2.793, allocations: 3.938 kB / 1.53 GB, free: 90.4 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.834e-05/2.794, allocations: 41.25 kB / 1.53 GB, free: 90.4 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/2.794, allocations: 25 kB / 1.53 GB, free: 90.4 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/2.795, allocations: 0.7922 MB / 1.531 GB, free: 90.4 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.006067/2.801, allocations: 4.641 MB / 1.535 GB, free: 88.64 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007698/2.802, allocations: 0.5314 MB / 1.536 GB, free: 88.61 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003806/2.802, allocations: 268.9 kB / 1.536 GB, free: 88.61 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003397/2.806, allocations: 2.94 MB / 1.539 GB, free: 86.61 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004369/2.806, allocations: 310.1 kB / 1.539 GB, free: 86.56 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000391/2.807, allocations: 64.2 kB / 1.539 GB, free: 86.54 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 2.745e-06/2.807, allocations: 1.094 kB / 1.539 GB, free: 86.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.001066/2.808, allocations: 0.6167 MB / 1.54 GB, free: 86.41 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/2.808, allocations: 62.38 kB / 1.54 GB, free: 86.34 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/2.809, allocations: 1.166 MB / 1.541 GB, free: 86.18 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.663e-05/2.809, allocations: 42.61 kB / 1.541 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004944/2.81, allocations: 0.7393 MB / 1.542 GB, free: 85.93 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/2.81, allocations: 193 kB / 1.542 GB, free: 85.82 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/2.81, allocations: 18.19 kB / 1.542 GB, free: 85.82 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.836e-05/2.81, allocations: 344.4 kB / 1.542 GB, free: 85.51 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/2.811, allocations: 250.5 kB / 1.543 GB, free: 85.51 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005621/2.811, allocations: 0.622 MB / 1.543 GB, free: 85.05 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005365/2.812, allocations: 380.5 kB / 1.544 GB, free: 85.01 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/2.812, allocations: 3.438 kB / 1.544 GB, free: 85.01 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001671/2.813, allocations: 1.059 MB / 1.545 GB, free: 84.85 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.00067/2.814, allocations: 4.392 MB / 1.549 GB, free: 80.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/2.814, allocations: 18.84 kB / 1.549 GB, free: 80.38 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/2.814, allocations: 59.86 kB / 1.549 GB, free: 80.37 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/2.815, allocations: 209.2 kB / 1.549 GB, free: 80.37 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002774/2.815, allocations: 0.593 MB / 1.55 GB, free: 79.85 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009549/2.816, allocations: 111.1 kB / 1.55 GB, free: 79.84 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.643e-05/2.816, allocations: 57.53 kB / 1.55 GB, free: 79.84 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.584e-06/2.816, allocations: 5.219 kB / 1.55 GB, free: 79.84 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001211/2.818, allocations: 0.8977 MB / 1.551 GB, free: 79.79 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/2.818, allocations: 13.34 kB / 1.551 GB, free: 79.79 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001395/2.818, allocations: 57.2 kB / 1.551 GB, free: 79.78 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005984/2.818, allocations: 213.3 kB / 1.551 GB, free: 79.78 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002326/2.819, allocations: 0.5887 MB / 1.552 GB, free: 79.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000858/2.819, allocations: 88.58 kB / 1.552 GB, free: 79.25 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-05/2.819, allocations: 59.08 kB / 1.552 GB, free: 79.25 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.0001551/2.82, allocations: 166.3 kB / 1.552 GB, free: 79.14 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/2.82, allocations: 149.9 kB / 1.552 GB, free: 79.06 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/2.821, allocations: 1.084 MB / 1.553 GB, free: 78.97 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/2.821, allocations: 19.55 kB / 1.553 GB, free: 78.96 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/2.821, allocations: 3.781 kB / 1.553 GB, free: 78.96 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008402/2.822, allocations: 0.8432 MB / 1.554 GB, free: 78.69 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.002488/2.825, allocations: 2.096 MB / 1.556 GB, free: 78.31 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/2.825, allocations: 7.094 kB / 1.556 GB, free: 78.31 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004356/2.825, allocations: 115.8 kB / 1.556 GB, free: 78.31 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001317/2.825, allocations: 40.36 kB / 1.556 GB, free: 78.3 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/2.825, allocations: 26 kB / 1.556 GB, free: 78.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002123/2.826, allocations: 0.5613 MB / 1.557 GB, free: 77.78 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/2.826, allocations: 1.062 kB / 1.557 GB, free: 77.78 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/2.827, allocations: 1.404 MB / 1.558 GB, free: 77.42 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004691/2.828, allocations: 317.9 kB / 1.558 GB, free: 77.24 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/2.828, allocations: 22.86 kB / 1.559 GB, free: 77.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006792/2.828, allocations: 66.7 kB / 1.559 GB, free: 77.23 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/2.829, allocations: 59.92 kB / 1.559 GB, free: 77.23 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.774e-05/2.829, allocations: 28.08 kB / 1.559 GB, free: 77.23 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001043/2.83, allocations: 0.8893 MB / 1.56 GB, free: 77.11 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.71e-07/2.83, allocations: 0 / 1.56 GB, free: 77.11 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002443/2.832, allocations: 0.8836 MB / 1.56 GB, free: 76.99 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.003958/2.836, allocations: 3.244 MB / 1.564 GB, free: 75.67 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002084/2.838, allocations: 1.36 MB / 1.565 GB, free: 75.53 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/2.838, allocations: 0 / 1.565 GB, free: 75.53 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005843/2.839, allocations: 392.2 kB / 1.565 GB, free: 75.52 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002753/2.842, allocations: 0.7393 MB / 1.566 GB, free: 75.51 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/2.845, allocations: 2.458 MB / 1.568 GB, free: 74.82 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/2.846, allocations: 1.297 MB / 1.57 GB, free: 74.1 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001607/2.847, allocations: 0.5188 MB / 1.57 GB, free: 74.08 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005324/2.848, allocations: 0.5718 MB / 1.571 GB, free: 74.07 MB / 0.6823 GB Notification: Performance of SimCode: time 3.4e-07/2.848, allocations: 0 / 1.571 GB, free: 74.07 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.61/10.46, allocations: 53.97 MB / 1.623 GB, free: 71.59 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/10.46, allocations: 231.8 kB / 1.624 GB, free: 71.28 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.589/14.05, allocations: 2.625 kB / 1.624 GB, free: 71.28 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)