Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.47/2.47, allocations: 284.9 MB / 292.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00139/0.00139, allocations: 184.1 kB / 360.6 MB, free: 7.266 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.2 MB / 0.6191 GB, free: 12.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 84.89 kB / 0.7321 GB, free: 44.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.037e-05/3.042e-05, allocations: 8 kB / 0.8509 GB, free: 3.293 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8187/0.8187, allocations: 115.3 MB / 0.9634 GB, free: 78.59 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.397/2.215, allocations: 400.4 MB / 1.354 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/2.216, allocations: 92.28 kB / 1.355 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.234/4.45, allocations: 425.8 MB / 1.77 GB, free: 201.2 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.625e-06/4.45, allocations: 0 / 1.77 GB, free: 201.2 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.000192/4.45, allocations: 39.22 kB / 1.77 GB, free: 201.2 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00421/4.455, allocations: 1.319 MB / 1.772 GB, free: 199.9 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/4.455, allocations: 12.02 kB / 1.772 GB, free: 199.8 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000958/4.456, allocations: 150.5 kB / 1.772 GB, free: 199.7 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003333/4.459, allocations: 0.819 MB / 1.773 GB, free: 198.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/4.459, allocations: 20 kB / 1.773 GB, free: 198.8 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006338/4.46, allocations: 80 kB / 1.773 GB, free: 198.8 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001217/4.461, allocations: 393.8 kB / 1.773 GB, free: 198.4 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/4.462, allocations: 0.5165 MB / 1.774 GB, free: 197.8 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/4.462, allocations: 4 kB / 1.774 GB, free: 197.8 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.471e-05/4.462, allocations: 3.953 kB / 1.774 GB, free: 197.8 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/4.462, allocations: 16 kB / 1.774 GB, free: 197.8 MB / 0.9323 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.00864/4.471, allocations: 2.9 MB / 1.776 GB, free: 194.8 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008191/4.472, allocations: 311.4 kB / 1.777 GB, free: 194.5 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/4.472, allocations: 137.3 kB / 1.777 GB, free: 194.3 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003741/4.473, allocations: 343.3 kB / 1.777 GB, free: 193.9 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/4.473, allocations: 42.83 kB / 1.777 GB, free: 193.9 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=33): time 3.086e-06/4.473, allocations: 4 kB / 1.777 GB, free: 193.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=33): time 0.002752/4.475, allocations: 474.8 kB / 1.778 GB, free: 193.4 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/4.476, allocations: 59.36 kB / 1.778 GB, free: 193.3 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/4.477, allocations: 0.6273 MB / 1.778 GB, free: 192.7 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.00066/4.478, allocations: 37.64 kB / 1.778 GB, free: 192.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007877/4.478, allocations: 0.5473 MB / 1.779 GB, free: 192.1 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/4.479, allocations: 110.4 kB / 1.779 GB, free: 192 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/4.479, allocations: 0 / 1.779 GB, free: 192 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.308e-05/4.479, allocations: 334 kB / 1.779 GB, free: 191.6 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/4.479, allocations: 153.5 kB / 1.779 GB, free: 191.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002102/4.481, allocations: 1.362 MB / 1.781 GB, free: 189.7 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/4.483, allocations: 376.6 kB / 1.781 GB, free: 189.4 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/4.483, allocations: 0 / 1.781 GB, free: 189.4 MB / 0.9323 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003297/4.486, allocations: 0.6463 MB / 1.782 GB, free: 188.7 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002097/4.487, allocations: 0.8114 MB / 1.783 GB, free: 187.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/4.487, allocations: 4 kB / 1.783 GB, free: 187.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.278e-05/4.487, allocations: 11.94 kB / 1.783 GB, free: 187.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002628/4.489, allocations: 203.6 kB / 1.783 GB, free: 187.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/4.491, allocations: 2.981 MB / 1.786 GB, free: 184.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006663/4.498, allocations: 0.8746 MB / 1.787 GB, free: 183.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002551/4.498, allocations: 27.98 kB / 1.787 GB, free: 183.6 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/4.498, allocations: 4 kB / 1.787 GB, free: 183.6 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002033/4.5, allocations: 0.4892 MB / 1.787 GB, free: 183.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/4.5, allocations: 0 / 1.787 GB, free: 183.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/4.5, allocations: 8 kB / 1.787 GB, free: 183.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/4.502, allocations: 151.8 kB / 1.787 GB, free: 183 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/4.502, allocations: 8 kB / 1.787 GB, free: 183 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006453/4.508, allocations: 0.8633 MB / 1.788 GB, free: 182.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002355/4.509, allocations: 23.98 kB / 1.788 GB, free: 182.1 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007011/4.509, allocations: 141.9 kB / 1.788 GB, free: 182 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001972/4.511, allocations: 440.4 kB / 1.789 GB, free: 181.5 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/4.511, allocations: 86.88 kB / 1.789 GB, free: 181.4 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/4.514, allocations: 0.5449 MB / 1.789 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/4.514, allocations: 4 kB / 1.789 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/4.514, allocations: 7.953 kB / 1.789 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/4.514, allocations: 3.984 kB / 1.789 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003966/4.518, allocations: 1.203 MB / 1.79 GB, free: 179.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/4.518, allocations: 4 kB / 1.79 GB, free: 179.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/4.519, allocations: 123.4 kB / 1.791 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.5e-05/4.519, allocations: 7.953 kB / 1.791 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/4.519, allocations: 4 kB / 1.791 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/4.52, allocations: 2.95 MB / 1.793 GB, free: 176.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/4.52, allocations: 3.953 kB / 1.793 GB, free: 176.4 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/4.524, allocations: 0.643 MB / 1.794 GB, free: 175.7 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005006/4.524, allocations: 207.8 kB / 1.794 GB, free: 175.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/4.525, allocations: 7.984 kB / 1.794 GB, free: 175.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/4.526, allocations: 55.92 kB / 1.794 GB, free: 175.4 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/4.526, allocations: 31.97 kB / 1.794 GB, free: 175.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-05/4.526, allocations: 8 kB / 1.794 GB, free: 175.4 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0008298/4.527, allocations: 480 kB / 1.795 GB, free: 174.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 4.81e-07/4.527, allocations: 0 / 1.795 GB, free: 174.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002967/4.53, allocations: 0.5811 MB / 1.795 GB, free: 174.3 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003561/4.533, allocations: 1.88 MB / 1.797 GB, free: 172.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003742/4.537, allocations: 0.7481 MB / 1.798 GB, free: 171.7 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/4.537, allocations: 0 / 1.798 GB, free: 171.7 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0008406/4.538, allocations: 200.8 kB / 1.798 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003952/4.542, allocations: 396.6 kB / 1.799 GB, free: 171.1 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/4.547, allocations: 1.236 MB / 1.8 GB, free: 169.8 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/4.547, allocations: 1.043 MB / 1.801 GB, free: 168.8 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.002506/4.55, allocations: 239.3 kB / 1.801 GB, free: 168.6 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006819/4.551, allocations: 347.3 kB / 1.801 GB, free: 168.2 MB / 0.9323 GB Notification: Performance of SimCode: time 1.092e-06/4.551, allocations: 0 / 1.801 GB, free: 168.2 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/4.716, allocations: 32.3 MB / 1.833 GB, free: 136.4 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002577/4.716, allocations: 176.3 kB / 1.833 GB, free: 136.2 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.21/8.926, allocations: 0 / 1.833 GB, free: 136.2 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)