Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.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.Thermostatic3WayValve,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve",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.000946/0.000946, allocations: 175 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.6645/0.6645, 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.258/1.258, allocations: 221.3 MB / 400.4 MB, free: 5.828 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.0007931/0.0007931, allocations: 96.48 kB / 483.3 MB, free: 5.848 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.84e-05, allocations: 3.375 kB / 0.5601 GB, free: 87.85 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.118, allocations: 82.3 MB / 0.6405 GB, free: 7.688 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9657/1.084, allocations: 365.3 MB / 0.9972 GB, free: 255 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/1.084, allocations: 104.8 kB / 0.9973 GB, free: 255 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 1.302/2.386, allocations: 0.5022 GB / 1.5 GB, free: 5.715 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.854e-06/2.386, allocations: 0 / 1.5 GB, free: 5.715 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002405/2.386, allocations: 43.98 kB / 1.5 GB, free: 5.672 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003765/2.39, allocations: 1.652 MB / 1.501 GB, free: 3.969 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/2.39, allocations: 11.97 kB / 1.501 GB, free: 3.957 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003804/2.391, allocations: 143.7 kB / 1.501 GB, free: 3.809 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008887/2.399, allocations: 1.536 MB / 1.503 GB, free: 2.27 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005527/2.405, allocations: 1.966 MB / 1.505 GB, free: 256 kB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.439e-05/2.405, allocations: 78 kB / 1.505 GB, free: 176 kB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003191/2.405, allocations: 99.98 kB / 1.505 GB, free: 76 kB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3322/2.738, allocations: 1.132 MB / 1.506 GB, free: 89.14 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.695e-05/2.738, allocations: 3.656 kB / 1.506 GB, free: 89.14 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/2.738, allocations: 38.22 kB / 1.506 GB, free: 89.14 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.208e-05/2.738, allocations: 23.19 kB / 1.506 GB, free: 89.14 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/2.74, allocations: 0.894 MB / 1.507 GB, free: 89.13 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.01332/2.753, allocations: 6.122 MB / 1.513 GB, free: 87 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/2.754, allocations: 0.5999 MB / 1.514 GB, free: 86.97 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/2.755, allocations: 304.4 kB / 1.514 GB, free: 86.96 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0039/2.758, allocations: 3.774 MB / 1.518 GB, free: 84.16 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/2.758, allocations: 42.62 kB / 1.518 GB, free: 84.12 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004485/2.759, allocations: 57.86 kB / 1.518 GB, free: 84.11 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=44): time 2.946e-06/2.759, allocations: 0.8125 kB / 1.518 GB, free: 84.11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=44): time 0.00133/2.76, allocations: 0.6531 MB / 1.518 GB, free: 83.98 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.05e-05/2.76, allocations: 56.09 kB / 1.518 GB, free: 83.92 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/2.762, allocations: 1.103 MB / 1.519 GB, free: 83.76 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.053e-05/2.762, allocations: 39.55 kB / 1.519 GB, free: 83.73 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004261/2.762, allocations: 0.6897 MB / 1.52 GB, free: 83.52 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000135/2.763, allocations: 163 kB / 1.52 GB, free: 83.44 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/2.763, allocations: 18.19 kB / 1.52 GB, free: 83.44 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.817e-05/2.763, allocations: 332.5 kB / 1.521 GB, free: 83.13 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000515/2.763, allocations: 291.9 kB / 1.521 GB, free: 83.13 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006467/2.764, allocations: 0.6678 MB / 1.522 GB, free: 82.66 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000544/2.764, allocations: 346.1 kB / 1.522 GB, free: 82.65 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/2.764, allocations: 3.062 kB / 1.522 GB, free: 82.65 MB / 0.6823 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001768/2.766, allocations: 1.035 MB / 1.523 GB, free: 82.53 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006461/2.767, allocations: 4.521 MB / 1.527 GB, free: 77.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/2.767, allocations: 11.39 kB / 1.527 GB, free: 77.91 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/2.767, allocations: 66.66 kB / 1.527 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/2.769, allocations: 430.5 kB / 1.528 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002973/2.769, allocations: 0.5884 MB / 1.528 GB, free: 77.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/2.772, allocations: 327.7 kB / 1.529 GB, free: 77.37 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/2.772, allocations: 54.56 kB / 1.529 GB, free: 77.37 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.494e-06/2.772, allocations: 3.938 kB / 1.529 GB, free: 77.37 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00143/2.773, allocations: 0.889 MB / 1.53 GB, free: 77.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/2.773, allocations: 21.3 kB / 1.53 GB, free: 77.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001523/2.774, allocations: 62.84 kB / 1.53 GB, free: 77.34 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/2.775, allocations: 421.9 kB / 1.53 GB, free: 77.34 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000247/2.776, allocations: 0.5905 MB / 1.531 GB, free: 76.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002148/2.778, allocations: 309.7 kB / 1.531 GB, free: 76.82 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/2.778, allocations: 56.03 kB / 1.531 GB, free: 76.82 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 1 * Algorithm blocks: 0 * 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.000204/2.778, allocations: 165.3 kB / 1.531 GB, free: 76.71 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/2.778, allocations: 133.7 kB / 1.531 GB, free: 76.64 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/2.78, allocations: 1.053 MB / 1.532 GB, free: 76.54 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/2.78, allocations: 11.97 kB / 1.532 GB, free: 76.54 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/2.78, allocations: 0.75 kB / 1.532 GB, free: 76.54 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001073/2.781, allocations: 0.8248 MB / 1.533 GB, free: 76.27 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.003251/2.785, allocations: 2.229 MB / 1.535 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/2.785, allocations: 7.25 kB / 1.535 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/2.786, allocations: 335.5 kB / 1.536 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/2.787, allocations: 41.55 kB / 1.536 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/2.787, allocations: 22.27 kB / 1.536 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002241/2.787, allocations: 0.5602 MB / 1.536 GB, free: 75.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/2.787, allocations: 1.875 kB / 1.536 GB, free: 75.23 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/2.789, allocations: 1.377 MB / 1.538 GB, free: 74.87 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000548/2.789, allocations: 320.1 kB / 1.538 GB, free: 74.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/2.79, allocations: 10.84 kB / 1.538 GB, free: 74.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/2.792, allocations: 281.6 kB / 1.538 GB, free: 74.7 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.735e-05/2.792, allocations: 40.7 kB / 1.538 GB, free: 74.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-05/2.792, allocations: 33.11 kB / 1.538 GB, free: 74.7 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.00128/2.793, allocations: 0.8508 MB / 1.539 GB, free: 74.59 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.71e-07/2.793, allocations: 3.062 kB / 1.539 GB, free: 74.59 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002743/2.796, allocations: 0.8572 MB / 1.54 GB, free: 74.55 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (thermostatic3WayValve.k_state,thermostatic3WayValve.vol.dynBal.U,T_out.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 Backend phase and start with SimCode phase: time 0.004064/2.8, allocations: 3.131 MB / 1.543 GB, free: 73.34 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002597/2.802, allocations: 1.309 MB / 1.544 GB, free: 73.33 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/2.802, allocations: 0 / 1.544 GB, free: 73.33 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006139/2.803, allocations: 385.5 kB / 1.545 GB, free: 73.32 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/2.806, allocations: 0.6772 MB / 1.545 GB, free: 73.32 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/2.81, allocations: 2.188 MB / 1.547 GB, free: 72.76 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007156/2.811, allocations: 1.249 MB / 1.549 GB, free: 72.04 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002187/2.813, allocations: 0.5139 MB / 1.549 GB, free: 72.02 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006579/2.813, allocations: 0.5334 MB / 1.55 GB, free: 72.02 MB / 0.6823 GB Notification: Performance of SimCode: time 4.51e-07/2.813, allocations: 0 / 1.55 GB, free: 72.02 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.202/5.016, allocations: 50.71 MB / 1.599 GB, free: 69.96 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/5.016, allocations: 238.1 kB / 1.599 GB, free: 69.65 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.498/8.514, allocations: 3.281 kB / 1.599 GB, free: 69.65 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)