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.8123/0.8123, allocations: 143.4 MB / 158.3 MB, free: 5.656 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 173.1 kB / 191.5 MB, free: 5.66 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.499/1.499, allocations: 223.2 MB / 447.7 MB, free: 4.848 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.000876/0.0008761, allocations: 92.27 kB / 0.5187 GB, free: 1.203 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001927/0.001927, allocations: 275.7 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004465/0.0004465, allocations: 16.83 kB / 0.6929 GB, free: 59.51 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1634, allocations: 82.81 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.144/1.308, allocations: 390.3 MB / 1.155 GB, free: 267.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/1.308, allocations: 106.9 kB / 1.155 GB, free: 267.8 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.894/4.202, allocations: 0.9931 GB / 2.148 GB, free: 80.24 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.214e-06/4.202, allocations: 0 / 2.148 GB, free: 80.24 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.000296/4.202, allocations: 79.77 kB / 2.148 GB, free: 80.22 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.007218/4.21, allocations: 3.042 MB / 2.151 GB, free: 78.62 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/4.21, allocations: 9.5 kB / 2.151 GB, free: 78.62 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000532/4.21, allocations: 230.9 kB / 2.151 GB, free: 78.58 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/4.211, allocations: 323.2 kB / 2.152 GB, free: 78.43 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005632/4.217, allocations: 2.443 MB / 2.154 GB, free: 77.87 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.043e-05/4.217, allocations: 130.8 kB / 2.154 GB, free: 77.87 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002526/4.217, allocations: 178.6 kB / 2.154 GB, free: 77.87 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002503/4.22, allocations: 1.564 MB / 2.156 GB, free: 77.66 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.473e-05/4.22, allocations: 6.281 kB / 2.156 GB, free: 77.66 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/4.22, allocations: 67.59 kB / 2.156 GB, free: 77.66 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.05e-05/4.22, allocations: 37.12 kB / 2.156 GB, free: 77.66 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/4.222, allocations: 1.115 MB / 2.157 GB, free: 77.63 MB / 0.7136 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01166/4.234, allocations: 7.994 MB / 2.165 GB, free: 73.89 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007123/4.234, allocations: 458 kB / 2.165 GB, free: 73.87 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005256/4.235, allocations: 0.7525 MB / 2.166 GB, free: 73.02 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/4.235, allocations: 46 kB / 2.166 GB, free: 72.98 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=60): time 3.175e-06/4.235, allocations: 1.469 kB / 2.166 GB, free: 72.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=60): time 0.002173/4.237, allocations: 1.006 MB / 2.167 GB, free: 72.81 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/4.237, allocations: 62.25 kB / 2.167 GB, free: 72.75 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002584/4.24, allocations: 2.062 MB / 2.169 GB, free: 72.52 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002146/4.24, allocations: 51.42 kB / 2.169 GB, free: 72.49 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007722/4.241, allocations: 1.138 MB / 2.17 GB, free: 72.15 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/4.241, allocations: 212.9 kB / 2.171 GB, free: 72.02 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/4.241, allocations: 22.75 kB / 2.171 GB, free: 72.02 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/4.241, allocations: 356.8 kB / 2.171 GB, free: 71.71 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/4.242, allocations: 337.2 kB / 2.171 GB, free: 71.71 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00083/4.242, allocations: 0.8085 MB / 2.172 GB, free: 71.18 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006904/4.243, allocations: 470.2 kB / 2.172 GB, free: 71.15 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/4.243, allocations: 3.781 kB / 2.172 GB, free: 71.15 MB / 0.7136 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001889/4.245, allocations: 1.26 MB / 2.174 GB, free: 70.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005894/4.246, allocations: 3.205 MB / 2.177 GB, free: 67.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/4.246, allocations: 9.938 kB / 2.177 GB, free: 67.56 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.678e-05/4.246, allocations: 15.12 kB / 2.177 GB, free: 67.56 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009899/4.247, allocations: 254.9 kB / 2.177 GB, free: 67.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-05/4.247, allocations: 22 kB / 2.177 GB, free: 67.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/4.249, allocations: 270.8 kB / 2.177 GB, free: 67.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-05/4.249, allocations: 53.8 kB / 2.177 GB, free: 67.45 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.779e-06/4.249, allocations: 3.938 kB / 2.177 GB, free: 67.45 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001466/4.25, allocations: 1.01 MB / 2.178 GB, free: 67.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/4.25, allocations: 11.42 kB / 2.178 GB, free: 67.38 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/4.25, allocations: 17.02 kB / 2.178 GB, free: 67.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008598/4.251, allocations: 252.4 kB / 2.179 GB, free: 67.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/4.251, allocations: 19.81 kB / 2.179 GB, free: 67.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/4.253, allocations: 251.4 kB / 2.179 GB, free: 67.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.581e-05/4.253, allocations: 48.67 kB / 2.179 GB, free: 67.29 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 () * Number of clocked 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.001198/4.255, allocations: 0.5751 MB / 2.18 GB, free: 67.08 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000421/4.255, allocations: 234.5 kB / 2.18 GB, free: 66.96 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/4.257, allocations: 0.9274 MB / 2.181 GB, free: 66.86 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/4.257, allocations: 7.125 kB / 2.181 GB, free: 66.86 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/4.257, allocations: 0 / 2.181 GB, free: 66.86 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009096/4.258, allocations: 0.7274 MB / 2.181 GB, free: 66.48 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005017/4.263, allocations: 2.672 MB / 2.184 GB, free: 65.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/4.263, allocations: 4.094 kB / 2.184 GB, free: 65.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/4.263, allocations: 151.3 kB / 2.184 GB, free: 65.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/4.263, allocations: 3.781 kB / 2.184 GB, free: 65.25 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/4.264, allocations: 18.44 kB / 2.184 GB, free: 65.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/4.264, allocations: 3.594 kB / 2.184 GB, free: 65.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/4.264, allocations: 0 / 2.184 GB, free: 65.25 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/4.265, allocations: 1.4 MB / 2.186 GB, free: 64.5 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/4.267, allocations: 473.4 kB / 2.186 GB, free: 64.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006215/4.267, allocations: 15.14 kB / 2.186 GB, free: 64.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001777/4.269, allocations: 166.4 kB / 2.186 GB, free: 64.13 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.953e-05/4.269, allocations: 53.92 kB / 2.186 GB, free: 64.12 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.368e-05/4.269, allocations: 28.53 kB / 2.186 GB, free: 64.11 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002936/4.272, allocations: 1.578 MB / 2.188 GB, free: 63.5 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.11e-07/4.272, allocations: 0 / 2.188 GB, free: 63.5 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004734/4.277, allocations: 1.216 MB / 2.189 GB, free: 63.23 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 () * Number of clocked 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.00532/4.282, allocations: 3.302 MB / 2.192 GB, free: 61.48 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002623/4.285, allocations: 1.364 MB / 2.194 GB, free: 61.03 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/4.285, allocations: 3.438 kB / 2.194 GB, free: 61.03 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005154/4.286, allocations: 332.8 kB / 2.194 GB, free: 60.93 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007545/4.293, allocations: 1.493 MB / 2.195 GB, free: 60.52 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/4.307, allocations: 10.86 MB / 2.206 GB, free: 51.26 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/4.309, allocations: 1.635 MB / 2.208 GB, free: 49.71 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.00267/4.311, allocations: 0.4963 MB / 2.208 GB, free: 49.25 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/4.313, allocations: 0.9483 MB / 2.209 GB, free: 48.3 MB / 0.7136 GB Notification: Performance of SimCode: time 1.092e-06/4.313, allocations: 0 / 2.209 GB, free: 48.3 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.499/4.812, allocations: 73.43 MB / 2.281 GB, free: 93.12 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/4.812, allocations: 241.2 kB / 2.281 GB, free: 92.89 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.458/9.27, allocations: 3.297 kB / 2.281 GB, free: 92.89 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)