Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.806/1.806, allocations: 289.9 MB / 297.4 MB, free: 6.422 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.001077/0.001077, allocations: 184.8 kB / 366.7 MB, free: 1.691 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.837/1.837, allocations: 205.2 MB / 0.626 GB, free: 7.184 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.0008773/0.0008774, allocations: 89.19 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.132e-05/2.151e-05, allocations: 4 kB / 0.8598 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7882/0.7883, allocations: 116.3 MB / 0.9733 GB, free: 76.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.244/2.032, allocations: 401.5 MB / 1.365 GB, free: 154.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/2.032, allocations: 97.81 kB / 1.366 GB, free: 154.4 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.745/3.777, allocations: 425.7 MB / 1.781 GB, free: 216 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.934e-06/3.777, allocations: 0 / 1.781 GB, free: 216 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.874e-05/3.777, allocations: 35.7 kB / 1.781 GB, free: 216 MB / 0.948 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.00277/3.78, allocations: 1.31 MB / 1.783 GB, free: 214.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/3.78, allocations: 15.97 kB / 1.783 GB, free: 214.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005218/3.781, allocations: 154.5 kB / 1.783 GB, free: 214.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00167/3.782, allocations: 0.8196 MB / 1.784 GB, free: 213.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/3.782, allocations: 16 kB / 1.784 GB, free: 213.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/3.783, allocations: 80 kB / 1.784 GB, free: 213.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006995/3.783, allocations: 394.5 kB / 1.784 GB, free: 213.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/3.784, allocations: 0.5083 MB / 1.785 GB, free: 212.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/3.784, allocations: 7.938 kB / 1.785 GB, free: 212.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.212e-05/3.784, allocations: 0 / 1.785 GB, free: 212.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/3.784, allocations: 15.95 kB / 1.785 GB, free: 212.6 MB / 0.948 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.004487/3.789, allocations: 2.902 MB / 1.787 GB, free: 209.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004628/3.789, allocations: 312.9 kB / 1.788 GB, free: 209.2 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/3.789, allocations: 137.4 kB / 1.788 GB, free: 209.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003027/3.79, allocations: 344.1 kB / 1.788 GB, free: 208.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/3.79, allocations: 34.84 kB / 1.788 GB, free: 208.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=33): time 2.845e-06/3.79, allocations: 0 / 1.788 GB, free: 208.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=33): time 0.001457/3.791, allocations: 474.8 kB / 1.789 GB, free: 208.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/3.791, allocations: 59.34 kB / 1.789 GB, free: 208.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006823/3.792, allocations: 0.639 MB / 1.789 GB, free: 207.5 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001348/3.792, allocations: 29.7 kB / 1.789 GB, free: 207.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004185/3.792, allocations: 0.5615 MB / 1.79 GB, free: 206.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.292e-05/3.792, allocations: 102.4 kB / 1.79 GB, free: 206.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/3.792, allocations: 0 / 1.79 GB, free: 206.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.252e-05/3.793, allocations: 326 kB / 1.79 GB, free: 206.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/3.793, allocations: 157.5 kB / 1.79 GB, free: 206.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/3.794, allocations: 1.362 MB / 1.792 GB, free: 204.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009174/3.795, allocations: 388.6 kB / 1.792 GB, free: 204.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/3.795, allocations: 0 / 1.792 GB, free: 204.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001414/3.796, allocations: 0.6423 MB / 1.793 GB, free: 203.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002463/3.797, allocations: 0.8115 MB / 1.794 GB, free: 202.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/3.797, allocations: 3.328 kB / 1.794 GB, free: 202.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/3.797, allocations: 4 kB / 1.794 GB, free: 202.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/3.798, allocations: 211.6 kB / 1.794 GB, free: 202.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/3.799, allocations: 2.985 MB / 1.797 GB, free: 199.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003926/3.803, allocations: 0.8826 MB / 1.798 GB, free: 198.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/3.803, allocations: 31.98 kB / 1.798 GB, free: 198.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/3.803, allocations: 6.031 kB / 1.798 GB, free: 198.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001279/3.805, allocations: 485 kB / 1.798 GB, free: 197.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/3.805, allocations: 4 kB / 1.798 GB, free: 197.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/3.805, allocations: 4.188 kB / 1.798 GB, free: 197.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006937/3.805, allocations: 163.8 kB / 1.798 GB, free: 197.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/3.805, allocations: 4 kB / 1.798 GB, free: 197.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00389/3.809, allocations: 0.8631 MB / 1.799 GB, free: 196.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/3.809, allocations: 31.98 kB / 1.799 GB, free: 196.8 MB / 0.948 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.0004827/3.81, allocations: 132.2 kB / 1.799 GB, free: 196.7 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001318/3.811, allocations: 436.5 kB / 1.8 GB, free: 196.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.736e-05/3.811, allocations: 82.88 kB / 1.8 GB, free: 196.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/3.813, allocations: 0.5391 MB / 1.8 GB, free: 195.6 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/3.813, allocations: 4 kB / 1.8 GB, free: 195.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/3.813, allocations: 0 / 1.8 GB, free: 195.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/3.813, allocations: 7.938 kB / 1.8 GB, free: 195.6 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/3.815, allocations: 1.218 MB / 1.801 GB, free: 194.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/3.815, allocations: 3.984 kB / 1.801 GB, free: 194.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005186/3.815, allocations: 119.8 kB / 1.802 GB, free: 194.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/3.815, allocations: 8.125 kB / 1.802 GB, free: 194.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/3.815, allocations: 11.94 kB / 1.802 GB, free: 194.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000989/3.816, allocations: 2.942 MB / 1.804 GB, free: 191.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/3.816, allocations: 4.031 kB / 1.804 GB, free: 191.2 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/3.818, allocations: 0.643 MB / 1.805 GB, free: 190.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004004/3.818, allocations: 215.8 kB / 1.805 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.154e-05/3.818, allocations: 0 / 1.805 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005586/3.819, allocations: 67.17 kB / 1.805 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/3.819, allocations: 23.97 kB / 1.805 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/3.819, allocations: 19.98 kB / 1.805 GB, free: 190.1 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0005792/3.819, allocations: 472.1 kB / 1.806 GB, free: 189.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.81e-07/3.819, allocations: 4 kB / 1.806 GB, free: 189.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002425/3.822, allocations: 0.5811 MB / 1.806 GB, free: 189.1 MB / 0.948 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.002513/3.824, allocations: 1.879 MB / 1.808 GB, free: 187.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002393/3.827, allocations: 0.7416 MB / 1.809 GB, free: 186.5 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/3.827, allocations: 0 / 1.809 GB, free: 186.5 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004195/3.827, allocations: 195.8 kB / 1.809 GB, free: 186.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002325/3.83, allocations: 393.8 kB / 1.81 GB, free: 185.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/3.833, allocations: 1.243 MB / 1.811 GB, free: 184.6 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/3.833, allocations: 1.047 MB / 1.812 GB, free: 183.5 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001558/3.835, allocations: 246.6 kB / 1.812 GB, free: 183.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003731/3.835, allocations: 343.3 kB / 1.812 GB, free: 183 MB / 0.948 GB Notification: Performance of SimCode: time 9.21e-07/3.835, allocations: 0 / 1.812 GB, free: 183 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06689/3.902, allocations: 32.3 MB / 1.844 GB, free: 151.2 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/3.902, allocations: 172 kB / 1.844 GB, free: 151 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.435/7.338, allocations: 4.031 kB / 1.844 GB, free: 151 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)