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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 99.94 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.479/2.479, allocations: 223.2 MB / 239.9 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.197/1.197, allocations: 132.2 MB / 423.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006825/0.0006827, allocations: 8.75 kB / 0.5033 GB, free: 4.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8514/0.8522, allocations: 81.57 MB / 0.583 GB, free: 4.031 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch): time 0.09741/0.9497, allocations: 45.25 MB / 0.6272 GB, free: 2.465 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03616/0.9859, allocations: 12.03 MB / 0.6389 GB, free: 7.242 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005556/0.9916, allocations: 59.56 kB / 0.639 GB, free: 7.184 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006017/0.9977, allocations: 0.7968 MB / 0.6398 GB, free: 6.383 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01496/1.013, allocations: 2.122 MB / 0.6418 GB, free: 4.258 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0116/1.024, allocations: 1.947 MB / 0.6437 GB, free: 2.344 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/1.035, allocations: 2.575 MB / 0.6462 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00459/1.04, allocations: 1.157 MB / 0.6474 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006803/1.047, allocations: 1.254 MB / 0.6486 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003895/1.051, allocations: 0.8128 MB / 0.6494 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007765/1.052, allocations: 68 kB / 0.6495 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006358/1.058, allocations: 1.057 MB / 0.6505 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/1.059, allocations: 346.7 kB / 0.6508 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/1.061, allocations: 364.8 kB / 0.6512 GB, free: 10.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008313/1.069, allocations: 2.205 MB / 0.6533 GB, free: 8.477 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/1.069, allocations: 4 kB / 0.6533 GB, free: 8.473 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.019e-06/1.069, allocations: 0 / 0.6533 GB, free: 8.473 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001276/1.07, allocations: 0 / 0.6533 GB, free: 8.473 MB / 494.1 MB 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.008495/1.078, allocations: 1.862 MB / 0.6551 GB, free: 6.551 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.558e-05/1.078, allocations: 8.031 kB / 0.6551 GB, free: 6.543 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008381/1.079, allocations: 160.2 kB / 0.6553 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003461/1.082, allocations: 393.5 kB / 0.6557 GB, free: 5.992 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005607/1.088, allocations: 1.382 MB / 0.657 GB, free: 4.555 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006871/1.089, allocations: 149.9 kB / 0.6572 GB, free: 4.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004757/1.089, allocations: 108 kB / 0.6573 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004619/1.094, allocations: 1.21 MB / 0.6585 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.527e-05/1.094, allocations: 4 kB / 0.6585 GB, free: 3.051 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/1.094, allocations: 47.98 kB / 0.6585 GB, free: 3.004 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/1.094, allocations: 24 kB / 0.6585 GB, free: 2.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004592/1.099, allocations: 1.034 MB / 0.6595 GB, free: 1.945 MB / 494.1 MB 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.01485/1.114, allocations: 5.151 MB / 0.6646 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002931/1.117, allocations: 0.6741 MB / 0.6652 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007373/1.124, allocations: 2.84 MB / 0.668 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001721/1.126, allocations: 437.8 kB / 0.6684 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001029/1.127, allocations: 86.97 kB / 0.6685 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=57): time 5.59e-06/1.127, allocations: 0 / 0.6685 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of matching and sorting (n=57): time 0.00486/1.132, allocations: 1.009 MB / 0.6695 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/1.132, allocations: 85.67 kB / 0.6696 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004109/1.136, allocations: 1.476 MB / 0.671 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001996/1.136, allocations: 45.69 kB / 0.671 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00112/1.138, allocations: 0.7006 MB / 0.6717 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004282/1.138, allocations: 201.1 kB / 0.6719 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.107e-05/1.138, allocations: 16 kB / 0.6719 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002337/1.138, allocations: 341.9 kB / 0.6723 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/1.14, allocations: 361.8 kB / 0.6726 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/1.142, allocations: 0.646 MB / 0.6732 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/1.144, allocations: 452.6 kB / 0.6737 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/1.144, allocations: 4 kB / 0.6737 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.005345/1.15, allocations: 1.188 MB / 0.6748 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.002187/1.152, allocations: 3.074 MB / 0.6778 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/1.152, allocations: 8 kB / 0.6778 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.185e-05/1.152, allocations: 16 kB / 0.6779 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/1.154, allocations: 239.6 kB / 0.6781 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.329e-05/1.154, allocations: 15.94 kB / 0.6781 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003022/1.157, allocations: 164.4 kB / 0.6783 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/1.157, allocations: 47.98 kB / 0.6783 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/1.157, allocations: 4 kB / 0.6783 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003928/1.161, allocations: 0.9814 MB / 0.6793 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/1.161, allocations: 8 kB / 0.6793 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.939e-05/1.161, allocations: 16 kB / 0.6793 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/1.163, allocations: 223.9 kB / 0.6795 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.757e-05/1.163, allocations: 15.94 kB / 0.6795 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/1.165, allocations: 132.4 kB / 0.6796 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002201/1.165, allocations: 55.91 kB / 0.6797 GB, free: 12.18 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,threeWayValveSwitch.switch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 103 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001503/1.167, allocations: 436.8 kB / 0.6801 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005518/1.167, allocations: 150.1 kB / 0.6803 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004641/1.172, allocations: 1.23 MB / 0.6815 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.418e-05/1.172, allocations: 11.98 kB / 0.6815 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.172, allocations: 0 / 0.6815 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003161/1.175, allocations: 0.9834 MB / 0.6824 GB, free: 9.336 MB / 0.5137 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.008119/1.183, allocations: 2.524 MB / 0.6849 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.184, allocations: 0 / 0.6849 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.185, allocations: 152 kB / 0.685 GB, free: 6.574 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.321e-05/1.185, allocations: 4 kB / 0.685 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/1.185, allocations: 23.98 kB / 0.6851 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.224e-05/1.185, allocations: 4 kB / 0.6851 GB, free: 6.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.185, allocations: 7.984 kB / 0.6851 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005239/1.19, allocations: 1.663 MB / 0.6867 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/1.192, allocations: 366.8 kB / 0.6871 GB, free: 4.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003574/1.192, allocations: 12 kB / 0.6871 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/1.194, allocations: 107.8 kB / 0.6872 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/1.194, allocations: 60.48 kB / 0.6872 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.194, allocations: 31.97 kB / 0.6873 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002875/1.197, allocations: 1.016 MB / 0.6883 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.52e-07/1.197, allocations: 0 / 0.6883 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00421/1.201, allocations: 0.7995 MB / 0.689 GB, free: 2.391 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,threeWayValveSwitch.switch) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 61 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008191/1.209, allocations: 3.047 MB / 0.692 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006065/1.215, allocations: 1.502 MB / 0.6935 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/1.215, allocations: 3.938 kB / 0.6935 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001735/1.217, allocations: 456.9 kB / 0.6939 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007097/1.224, allocations: 0.8065 MB / 0.6947 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01905/1.243, allocations: 9.544 MB / 0.704 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002057/1.246, allocations: 1.301 MB / 0.7053 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004073/1.25, allocations: 416.1 kB / 0.7057 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001778/1.252, allocations: 0.6242 MB / 0.7063 GB, free: 324 kB / 0.5294 GB Notification: Performance of SimCode: time 2.184e-06/1.252, allocations: 4 kB / 0.7063 GB, free: 320 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1554/1.407, allocations: 46.56 MB / 0.7518 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003931/1.407, allocations: 226.8 kB / 0.752 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.24/6.647, allocations: 4.062 kB / 0.752 GB, free: 2.141 MB / 0.5762 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) Environment - environmentSimulation: