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.8335/0.8335, allocations: 141.8 MB / 149.3 MB, free: 9.188 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.001084/0.001084, allocations: 183.9 kB / 182.2 MB, free: 9.418 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.407/1.407, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.0008378/0.0008378, allocations: 88.11 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001883/0.001883, allocations: 279.2 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.664e-05, allocations: 4 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4215/0.4216, allocations: 82.77 MB / 0.7575 GB, free: 31.98 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8008/1.222, allocations: 389.6 MB / 1.138 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/1.223, allocations: 100.2 kB / 1.138 GB, free: 8.27 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.639/4.861, allocations: 0.9849 GB / 2.123 GB, free: 81.12 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.614e-06/4.861, allocations: 2.031 kB / 2.123 GB, free: 81.12 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002703/4.862, allocations: 82.95 kB / 2.123 GB, free: 81.11 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.005708/4.867, allocations: 2.543 MB / 2.125 GB, free: 79.8 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/4.868, allocations: 15.41 kB / 2.126 GB, free: 79.8 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/4.869, allocations: 325.8 kB / 2.126 GB, free: 79.64 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004612/4.873, allocations: 2.414 MB / 2.128 GB, free: 79.13 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/4.873, allocations: 56.41 kB / 2.128 GB, free: 79.13 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/4.873, allocations: 104.8 kB / 2.128 GB, free: 79.13 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001802/4.875, allocations: 0.9817 MB / 2.129 GB, free: 79.12 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/4.877, allocations: 1.3 MB / 2.131 GB, free: 78.93 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.761e-05/4.877, allocations: 5.031 kB / 2.131 GB, free: 78.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/4.878, allocations: 0 / 2.131 GB, free: 78.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.421e-05/4.878, allocations: 47.91 kB / 2.131 GB, free: 78.93 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.01122/4.889, allocations: 7.652 MB / 2.138 GB, free: 75.29 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000857/4.89, allocations: 432.9 kB / 2.138 GB, free: 75.26 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004282/4.89, allocations: 306.7 kB / 2.139 GB, free: 75.25 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007875/4.891, allocations: 0.7547 MB / 2.14 GB, free: 74.41 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/4.891, allocations: 41.38 kB / 2.14 GB, free: 74.36 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=60): time 3.847e-06/4.891, allocations: 0 / 2.14 GB, free: 74.36 MB / 0.7136 GB Notification: Performance of matching and sorting (n=60): time 0.002395/4.893, allocations: 0.7214 MB / 2.14 GB, free: 74.21 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/4.894, allocations: 60.84 kB / 2.14 GB, free: 74.14 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003151/4.897, allocations: 1.69 MB / 2.142 GB, free: 73.91 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002798/4.897, allocations: 29.52 kB / 2.142 GB, free: 73.88 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008851/4.898, allocations: 1.158 MB / 2.143 GB, free: 73.47 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/4.898, allocations: 204.8 kB / 2.143 GB, free: 73.34 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.677e-05/4.898, allocations: 0 / 2.143 GB, free: 73.34 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.887e-05/4.898, allocations: 353.5 kB / 2.144 GB, free: 73.02 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004747/4.899, allocations: 306 kB / 2.144 GB, free: 73.02 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008017/4.9, allocations: 0.7619 MB / 2.145 GB, free: 72.5 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009067/4.9, allocations: 449.6 kB / 2.145 GB, free: 72.47 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/4.901, allocations: 3.938 kB / 2.145 GB, free: 72.47 MB / 0.7136 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002035/4.903, allocations: 1.118 MB / 2.146 GB, free: 72.28 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007086/4.903, allocations: 3.153 MB / 2.149 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/4.903, allocations: 6.375 kB / 2.149 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/4.903, allocations: 17.62 kB / 2.149 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/4.904, allocations: 258.4 kB / 2.15 GB, free: 68.9 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/4.904, allocations: 22.77 kB / 2.15 GB, free: 68.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002129/4.907, allocations: 195.8 kB / 2.15 GB, free: 68.83 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/4.907, allocations: 54.58 kB / 2.15 GB, free: 68.83 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/4.907, allocations: 6.438 kB / 2.15 GB, free: 68.83 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001421/4.908, allocations: 0.8481 MB / 2.151 GB, free: 68.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/4.908, allocations: 6.625 kB / 2.151 GB, free: 68.77 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/4.908, allocations: 13.47 kB / 2.151 GB, free: 68.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008676/4.909, allocations: 261.6 kB / 2.151 GB, free: 68.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/4.909, allocations: 18.72 kB / 2.151 GB, free: 68.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/4.911, allocations: 170.5 kB / 2.151 GB, free: 68.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/4.911, allocations: 52.2 kB / 2.151 GB, free: 68.7 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.0003358/4.911, allocations: 138.1 kB / 2.151 GB, free: 68.57 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001573/4.913, allocations: 0.6879 MB / 2.152 GB, free: 68.42 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/4.913, allocations: 209.6 kB / 2.152 GB, free: 68.31 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/4.915, allocations: 0.8317 MB / 2.153 GB, free: 68.22 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/4.915, allocations: 11.66 kB / 2.153 GB, free: 68.21 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/4.915, allocations: 0 / 2.153 GB, free: 68.21 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009382/4.916, allocations: 0.6509 MB / 2.154 GB, free: 68.04 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005096/4.921, allocations: 2.417 MB / 2.156 GB, free: 67.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/4.922, allocations: 2.25 kB / 2.156 GB, free: 67.68 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000576/4.922, allocations: 146 kB / 2.156 GB, free: 67.67 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/4.922, allocations: 5.906 kB / 2.156 GB, free: 67.67 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/4.922, allocations: 10.53 kB / 2.156 GB, free: 67.67 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/4.922, allocations: 3.969 kB / 2.156 GB, free: 67.67 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/4.922, allocations: 3.906 kB / 2.156 GB, free: 67.67 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/4.924, allocations: 1.278 MB / 2.157 GB, free: 67.28 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008477/4.925, allocations: 437.9 kB / 2.158 GB, free: 67.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002184/4.925, allocations: 3.906 kB / 2.158 GB, free: 67.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/4.926, allocations: 159.2 kB / 2.158 GB, free: 67.05 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/4.926, allocations: 41.36 kB / 2.158 GB, free: 67.05 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.319e-05/4.926, allocations: 37.36 kB / 2.158 GB, free: 67.05 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001614/4.928, allocations: 1.243 MB / 2.159 GB, free: 66.91 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.1e-07/4.928, allocations: 0 / 2.159 GB, free: 66.91 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003578/4.932, allocations: 1.214 MB / 2.16 GB, free: 66.71 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.00482/4.936, allocations: 3.128 MB / 2.164 GB, free: 65.39 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002558/4.939, allocations: 1.298 MB / 2.165 GB, free: 65.31 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/4.939, allocations: 1.438 kB / 2.165 GB, free: 65.31 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004011/4.939, allocations: 299.1 kB / 2.165 GB, free: 65.29 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006915/4.946, allocations: 1.26 MB / 2.166 GB, free: 65.19 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/4.953, allocations: 3.245 MB / 2.169 GB, free: 63.81 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009598/4.954, allocations: 1.638 MB / 2.171 GB, free: 63 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.00278/4.957, allocations: 0.6419 MB / 2.172 GB, free: 62.89 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009997/4.958, allocations: 0.8996 MB / 2.173 GB, free: 62.17 MB / 0.7136 GB Notification: Performance of SimCode: time 1.212e-06/4.958, allocations: 0 / 2.173 GB, free: 62.17 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1106/5.069, allocations: 63.7 MB / 2.235 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/5.069, allocations: 182.5 kB / 2.235 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.825/9.894, allocations: 4 kB / 2.235 GB, free: 11.97 MB / 0.7136 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)