Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,fileNamePrefix="IDEAS_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.0009834/0.0009834, allocations: 180.9 kB / 7.65 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.8672/0.8672, allocations: 133.6 MB / 141.6 MB, free: 2.891 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.451/1.451, allocations: 221.5 MB / 395.4 MB, free: 10.73 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.0009752/0.0009754, allocations: 98.28 kB / 478.2 MB, free: 1.246 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.598e-05/3.591e-05, allocations: 7.984 kB / 0.5536 GB, free: 8.887 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4814/0.4814, allocations: 82.3 MB / 0.6339 GB, free: 40.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8611/1.343, allocations: 364.6 MB / 0.99 GB, free: 3.543 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/1.343, allocations: 104.6 kB / 0.9901 GB, free: 3.488 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.958/3.301, allocations: 0.499 GB / 1.489 GB, free: 106.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.713e-06/3.301, allocations: 3.219 kB / 1.489 GB, free: 106.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002946/3.302, allocations: 52 kB / 1.489 GB, free: 106.5 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.004347/3.306, allocations: 1.648 MB / 1.491 GB, free: 104.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/3.306, allocations: 12.03 kB / 1.491 GB, free: 104.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009566/3.316, allocations: 1.54 MB / 1.492 GB, free: 103.3 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005823/3.322, allocations: 1.967 MB / 1.494 GB, free: 101.4 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.66e-05/3.322, allocations: 28 kB / 1.494 GB, free: 101.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004035/3.322, allocations: 59.94 kB / 1.494 GB, free: 101.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002077/3.324, allocations: 0.8579 MB / 1.495 GB, free: 100.4 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/3.326, allocations: 1.009 MB / 1.496 GB, free: 99.37 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/3.326, allocations: 4 kB / 1.496 GB, free: 99.36 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/3.327, allocations: 0 / 1.496 GB, free: 99.36 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/3.327, allocations: 24 kB / 1.496 GB, free: 99.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.0148/3.341, allocations: 6.108 MB / 1.502 GB, free: 93.05 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009072/3.342, allocations: 0.6154 MB / 1.503 GB, free: 92.43 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/3.343, allocations: 299.1 kB / 1.503 GB, free: 92.14 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004181/3.347, allocations: 3.544 MB / 1.506 GB, free: 88.14 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/3.347, allocations: 46.45 kB / 1.506 GB, free: 88.09 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005686/3.348, allocations: 39.44 kB / 1.507 GB, free: 88.05 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=43): time 3.416e-06/3.348, allocations: 0 / 1.507 GB, free: 88.05 MB / 0.6823 GB Notification: Performance of matching and sorting (n=43): time 0.002264/3.35, allocations: 0.7193 MB / 1.507 GB, free: 87.32 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/3.35, allocations: 55.41 kB / 1.507 GB, free: 87.25 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/3.352, allocations: 0.929 MB / 1.508 GB, free: 86.31 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.451e-05/3.352, allocations: 25.7 kB / 1.508 GB, free: 86.28 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004406/3.352, allocations: 0.7056 MB / 1.509 GB, free: 85.57 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/3.352, allocations: 153.9 kB / 1.509 GB, free: 85.41 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.738e-05/3.352, allocations: 0 / 1.509 GB, free: 85.41 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.764e-05/3.352, allocations: 338.2 kB / 1.509 GB, free: 85.08 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004151/3.353, allocations: 274.6 kB / 1.51 GB, free: 84.81 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005763/3.353, allocations: 0.652 MB / 1.51 GB, free: 83.98 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/3.355, allocations: 452.3 kB / 1.511 GB, free: 83.54 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/3.355, allocations: 4 kB / 1.511 GB, free: 83.53 MB / 0.6823 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002669/3.358, allocations: 1.058 MB / 1.512 GB, free: 82.46 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008889/3.359, allocations: 4.488 MB / 1.516 GB, free: 77.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/3.359, allocations: 12 kB / 1.516 GB, free: 77.66 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/3.359, allocations: 48.84 kB / 1.516 GB, free: 77.61 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/3.361, allocations: 431.4 kB / 1.517 GB, free: 77.19 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003697/3.361, allocations: 0.5952 MB / 1.517 GB, free: 76.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002681/3.364, allocations: 311.4 kB / 1.517 GB, free: 76.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/3.364, allocations: 55.97 kB / 1.518 GB, free: 76.21 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/3.364, allocations: 9.656 kB / 1.518 GB, free: 76.2 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00259/3.367, allocations: 0.9057 MB / 1.518 GB, free: 75.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/3.367, allocations: 8 kB / 1.518 GB, free: 75.29 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/3.367, allocations: 60.89 kB / 1.518 GB, free: 75.22 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001987/3.369, allocations: 423.4 kB / 1.519 GB, free: 74.81 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003314/3.369, allocations: 0.5914 MB / 1.519 GB, free: 74.19 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/3.372, allocations: 295.5 kB / 1.52 GB, free: 73.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/3.372, allocations: 55.97 kB / 1.52 GB, free: 73.85 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.0002789/3.372, allocations: 138.5 kB / 1.52 GB, free: 73.71 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002336/3.375, allocations: 0.7334 MB / 1.521 GB, free: 72.97 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/3.375, allocations: 122.5 kB / 1.521 GB, free: 72.85 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00256/3.378, allocations: 1.022 MB / 1.522 GB, free: 71.82 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/3.378, allocations: 15.14 kB / 1.522 GB, free: 71.81 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/3.378, allocations: 4 kB / 1.522 GB, free: 71.8 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001544/3.379, allocations: 0.8472 MB / 1.523 GB, free: 70.9 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.004357/3.384, allocations: 2.135 MB / 1.525 GB, free: 68.69 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/3.384, allocations: 0 / 1.525 GB, free: 68.69 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/3.385, allocations: 331.7 kB / 1.525 GB, free: 68.37 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001451/3.386, allocations: 40.8 kB / 1.525 GB, free: 68.32 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/3.386, allocations: 15.98 kB / 1.525 GB, free: 68.31 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002819/3.386, allocations: 0.5679 MB / 1.526 GB, free: 67.71 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/3.386, allocations: 3.25 kB / 1.526 GB, free: 67.71 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002392/3.388, allocations: 1.375 MB / 1.527 GB, free: 66.27 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006918/3.389, allocations: 315.2 kB / 1.527 GB, free: 65.95 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/3.389, allocations: 4 kB / 1.527 GB, free: 65.94 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/3.392, allocations: 271.7 kB / 1.528 GB, free: 65.68 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/3.392, allocations: 36.39 kB / 1.528 GB, free: 65.64 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.233e-05/3.392, allocations: 27.97 kB / 1.528 GB, free: 65.61 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001132/3.393, allocations: 0.7009 MB / 1.528 GB, free: 64.91 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.62e-07/3.393, allocations: 0 / 1.528 GB, free: 64.91 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003092/3.396, allocations: 0.8324 MB / 1.529 GB, free: 64.08 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.004545/3.401, allocations: 3.109 MB / 1.532 GB, free: 61.04 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002104/3.403, allocations: 1.207 MB / 1.533 GB, free: 59.84 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/3.403, allocations: 0 / 1.533 GB, free: 59.84 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005111/3.403, allocations: 355.7 kB / 1.534 GB, free: 59.49 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/3.406, allocations: 0.5629 MB / 1.534 GB, free: 58.96 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/3.412, allocations: 2.112 MB / 1.536 GB, free: 56.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007733/3.412, allocations: 1.247 MB / 1.537 GB, free: 55.52 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002401/3.415, allocations: 492.2 kB / 1.538 GB, free: 55.07 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006949/3.415, allocations: 0.5188 MB / 1.538 GB, free: 54.55 MB / 0.6823 GB Notification: Performance of SimCode: time 7.91e-07/3.416, allocations: 3.938 kB / 1.538 GB, free: 54.55 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07525/3.491, allocations: 40.81 MB / 1.578 GB, free: 14.54 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/3.491, allocations: 186.6 kB / 1.578 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.367/6.858, allocations: 2.109 kB / 1.578 GB, free: 14.34 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)