Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7329/0.7329, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 185.3 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 221.3 MB / 441.4 MB, free: 4.637 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.0008318/0.0008318, allocations: 96.44 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00168/0.00168, allocations: 273.8 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.763e-05/3.765e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4013, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7408/1.142, allocations: 390.3 MB / 1.145 GB, free: 0.6016 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/1.142, allocations: 101.4 kB / 1.146 GB, free: 0.5508 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 3.506/4.649, allocations: 0.9902 GB / 2.136 GB, free: 82.88 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.763e-06/4.649, allocations: 2.969 kB / 2.136 GB, free: 82.88 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002223/4.649, allocations: 74.83 kB / 2.136 GB, free: 82.87 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004146/4.653, allocations: 2.563 MB / 2.138 GB, free: 81.55 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/4.653, allocations: 7.594 kB / 2.138 GB, free: 81.55 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002302/4.654, allocations: 215.5 kB / 2.139 GB, free: 81.5 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006502/4.654, allocations: 321.2 kB / 2.139 GB, free: 81.35 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003907/4.658, allocations: 2.426 MB / 2.141 GB, free: 80.83 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.247e-05/4.658, allocations: 130 kB / 2.141 GB, free: 80.83 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/4.658, allocations: 170.1 kB / 2.142 GB, free: 80.83 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002174/4.661, allocations: 1.52 MB / 2.143 GB, free: 80.62 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/4.661, allocations: 2.688 kB / 2.143 GB, free: 80.62 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/4.661, allocations: 64.75 kB / 2.143 GB, free: 80.62 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-05/4.661, allocations: 39.38 kB / 2.143 GB, free: 80.62 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/4.662, allocations: 1.053 MB / 2.144 GB, free: 80.6 MB / 0.7136 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.008569/4.671, allocations: 7.997 MB / 2.152 GB, free: 76.85 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/4.671, allocations: 435.2 kB / 2.152 GB, free: 76.83 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/4.672, allocations: 316 kB / 2.153 GB, free: 76.82 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004702/4.672, allocations: 0.7495 MB / 2.153 GB, free: 75.97 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/4.672, allocations: 47.56 kB / 2.153 GB, free: 75.93 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=60): time 3.396e-06/4.672, allocations: 3.938 kB / 2.153 GB, free: 75.93 MB / 0.7136 GB Notification: Performance of matching and sorting (n=60): time 0.001225/4.674, allocations: 0.7404 MB / 2.154 GB, free: 75.76 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/4.674, allocations: 60.97 kB / 2.154 GB, free: 75.7 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002336/4.676, allocations: 2.041 MB / 2.156 GB, free: 75.45 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.572e-05/4.676, allocations: 49.42 kB / 2.156 GB, free: 75.42 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007396/4.677, allocations: 1.145 MB / 2.157 GB, free: 75.08 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/4.677, allocations: 212.3 kB / 2.158 GB, free: 74.95 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/4.677, allocations: 24.53 kB / 2.158 GB, free: 74.95 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.406e-05/4.677, allocations: 351.9 kB / 2.158 GB, free: 74.64 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004412/4.678, allocations: 311.3 kB / 2.158 GB, free: 74.63 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006945/4.678, allocations: 0.7817 MB / 2.159 GB, free: 74.11 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005859/4.679, allocations: 454.2 kB / 2.159 GB, free: 74.08 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/4.679, allocations: 0 / 2.159 GB, free: 74.08 MB / 0.7136 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001563/4.68, allocations: 1.199 MB / 2.161 GB, free: 73.87 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005592/4.681, allocations: 3.203 MB / 2.164 GB, free: 70.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/4.681, allocations: 11.38 kB / 2.164 GB, free: 70.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/4.681, allocations: 13.72 kB / 2.164 GB, free: 70.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009099/4.682, allocations: 262.4 kB / 2.164 GB, free: 70.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/4.682, allocations: 18.97 kB / 2.164 GB, free: 70.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/4.684, allocations: 272.5 kB / 2.164 GB, free: 70.39 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.839e-05/4.684, allocations: 55.81 kB / 2.164 GB, free: 70.39 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/4.684, allocations: 5.844 kB / 2.164 GB, free: 70.39 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00126/4.685, allocations: 0.9539 MB / 2.165 GB, free: 70.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/4.685, allocations: 7.625 kB / 2.165 GB, free: 70.32 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/4.685, allocations: 15.12 kB / 2.165 GB, free: 70.32 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007891/4.686, allocations: 258.9 kB / 2.166 GB, free: 70.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/4.686, allocations: 16.53 kB / 2.166 GB, free: 70.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/4.688, allocations: 245 kB / 2.166 GB, free: 70.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.421e-05/4.688, allocations: 48.73 kB / 2.166 GB, free: 70.23 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * 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.0002327/4.688, allocations: 176 kB / 2.166 GB, free: 70.11 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002938/4.688, allocations: 238.7 kB / 2.166 GB, free: 69.98 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/4.69, allocations: 0.8961 MB / 2.167 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/4.69, allocations: 8.656 kB / 2.167 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/4.69, allocations: 0 / 2.167 GB, free: 69.88 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007509/4.691, allocations: 0.6871 MB / 2.168 GB, free: 69.71 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/4.694, allocations: 2.631 MB / 2.17 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/4.694, allocations: 3.219 kB / 2.17 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005142/4.695, allocations: 149.1 kB / 2.171 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/4.695, allocations: 3.031 kB / 2.171 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.984e-05/4.695, allocations: 19.16 kB / 2.171 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/4.695, allocations: 3.688 kB / 2.171 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/4.695, allocations: 3.891 kB / 2.171 GB, free: 69.29 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/4.696, allocations: 1.337 MB / 2.172 GB, free: 68.9 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008032/4.697, allocations: 465.9 kB / 2.172 GB, free: 68.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/4.697, allocations: 17.62 kB / 2.172 GB, free: 68.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/4.699, allocations: 167.4 kB / 2.172 GB, free: 68.57 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.368e-05/4.699, allocations: 46.08 kB / 2.173 GB, free: 68.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.778e-05/4.699, allocations: 36.98 kB / 2.173 GB, free: 68.56 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001875/4.701, allocations: 1.548 MB / 2.174 GB, free: 67.93 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.152e-06/4.701, allocations: 0 / 2.174 GB, free: 67.93 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003019/4.704, allocations: 1.216 MB / 2.175 GB, free: 67.66 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.003673/4.707, allocations: 3.204 MB / 2.178 GB, free: 65.98 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002014/4.709, allocations: 1.38 MB / 2.18 GB, free: 65.48 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/4.709, allocations: 0 / 2.18 GB, free: 65.48 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000368/4.71, allocations: 316 kB / 2.18 GB, free: 65.37 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006503/4.716, allocations: 1.495 MB / 2.182 GB, free: 65.08 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006844/4.723, allocations: 3.37 MB / 2.185 GB, free: 63.64 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/4.725, allocations: 1.64 MB / 2.186 GB, free: 62.83 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.003153/4.728, allocations: 0.713 MB / 2.187 GB, free: 62.73 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/4.729, allocations: 0.9017 MB / 2.188 GB, free: 62.01 MB / 0.7136 GB Notification: Performance of SimCode: time 9.82e-07/4.729, allocations: 0 / 2.188 GB, free: 62.01 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1191/4.848, allocations: 78.7 MB / 2.265 GB, free: 8.016 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/4.848, allocations: 219 kB / 2.265 GB, free: 7.781 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.615/9.463, allocations: 0 / 2.265 GB, free: 7.781 MB / 0.7292 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)