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: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8642/0.8642, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.001452/0.001452, allocations: 180 kB / 187.3 MB, free: 11.89 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.424/1.424, allocations: 221.3 MB / 441.4 MB, free: 4.578 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.0008981/0.0008981, allocations: 96.34 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001795/0.001795, allocations: 270.2 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.322e-05/4.324e-05, allocations: 7.984 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4193, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.808/1.227, allocations: 390.3 MB / 1.145 GB, free: 0.582 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/1.228, allocations: 107.1 kB / 1.145 GB, free: 0.5273 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 3.874/5.102, allocations: 0.9902 GB / 2.136 GB, free: 82.46 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.455e-06/5.102, allocations: 2.281 kB / 2.136 GB, free: 82.46 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0004122/5.103, allocations: 79.95 kB / 2.136 GB, free: 82.45 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.006589/5.109, allocations: 2.549 MB / 2.138 GB, free: 81.14 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/5.109, allocations: 10.06 kB / 2.138 GB, free: 81.14 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00117/5.111, allocations: 321.8 kB / 2.139 GB, free: 80.98 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004791/5.115, allocations: 2.425 MB / 2.141 GB, free: 80.46 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.29e-05/5.115, allocations: 127 kB / 2.141 GB, free: 80.45 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/5.116, allocations: 174.2 kB / 2.141 GB, free: 80.45 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/5.118, allocations: 1.518 MB / 2.143 GB, free: 80.25 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/5.118, allocations: 4.125 kB / 2.143 GB, free: 80.25 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/5.118, allocations: 65.69 kB / 2.143 GB, free: 80.25 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.43e-05/5.119, allocations: 39.75 kB / 2.143 GB, free: 80.25 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/5.12, allocations: 1.051 MB / 2.144 GB, free: 80.22 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.01084/5.131, allocations: 7.998 MB / 2.152 GB, free: 76.48 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006056/5.132, allocations: 443.2 kB / 2.152 GB, free: 76.45 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/5.132, allocations: 311.9 kB / 2.152 GB, free: 76.44 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005002/5.133, allocations: 0.7554 MB / 2.153 GB, free: 75.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/5.133, allocations: 43.16 kB / 2.153 GB, free: 75.55 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=60): time 2.615e-06/5.133, allocations: 1.281 kB / 2.153 GB, free: 75.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=60): time 0.001716/5.134, allocations: 0.7398 MB / 2.154 GB, free: 75.38 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/5.134, allocations: 60.81 kB / 2.154 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/5.137, allocations: 2.042 MB / 2.156 GB, free: 75.07 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002306/5.138, allocations: 48.7 kB / 2.156 GB, free: 75.04 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000885/5.139, allocations: 1.143 MB / 2.157 GB, free: 74.7 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000204/5.139, allocations: 215.8 kB / 2.157 GB, free: 74.57 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.911e-05/5.139, allocations: 20.22 kB / 2.157 GB, free: 74.57 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001002/5.139, allocations: 349.5 kB / 2.158 GB, free: 74.26 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/5.139, allocations: 316.4 kB / 2.158 GB, free: 74.25 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007897/5.14, allocations: 0.7841 MB / 2.159 GB, free: 73.73 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/5.141, allocations: 456.3 kB / 2.159 GB, free: 73.7 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/5.141, allocations: 3.594 kB / 2.159 GB, free: 73.7 MB / 0.7136 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002098/5.143, allocations: 1.197 MB / 2.16 GB, free: 73.49 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008153/5.144, allocations: 3.202 MB / 2.163 GB, free: 70.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/5.144, allocations: 7.438 kB / 2.163 GB, free: 70.12 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.535e-05/5.144, allocations: 14.47 kB / 2.163 GB, free: 70.12 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/5.145, allocations: 262.4 kB / 2.164 GB, free: 70.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.438e-05/5.145, allocations: 15.78 kB / 2.164 GB, free: 70.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/5.147, allocations: 279.7 kB / 2.164 GB, free: 70.01 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/5.148, allocations: 55.97 kB / 2.164 GB, free: 70.01 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/5.148, allocations: 3.781 kB / 2.164 GB, free: 70.01 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001438/5.149, allocations: 0.951 MB / 2.165 GB, free: 69.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/5.149, allocations: 13.61 kB / 2.165 GB, free: 69.94 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/5.149, allocations: 10.81 kB / 2.165 GB, free: 69.94 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008229/5.15, allocations: 256.8 kB / 2.165 GB, free: 69.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/5.15, allocations: 17.03 kB / 2.165 GB, free: 69.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/5.152, allocations: 242 kB / 2.166 GB, free: 69.86 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/5.152, allocations: 53.53 kB / 2.166 GB, free: 69.86 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.0003043/5.153, allocations: 170.5 kB / 2.166 GB, free: 69.73 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/5.153, allocations: 240.8 kB / 2.166 GB, free: 69.61 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/5.155, allocations: 0.8961 MB / 2.167 GB, free: 69.5 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/5.155, allocations: 7.688 kB / 2.167 GB, free: 69.5 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/5.155, allocations: 1.625 kB / 2.167 GB, free: 69.5 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008042/5.156, allocations: 0.6841 MB / 2.168 GB, free: 69.33 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004546/5.16, allocations: 2.635 MB / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/5.16, allocations: 0 / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005432/5.161, allocations: 153.6 kB / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/5.161, allocations: 1.219 kB / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/5.161, allocations: 21.2 kB / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/5.161, allocations: 8.719 kB / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/5.161, allocations: 3.625 kB / 2.17 GB, free: 68.91 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/5.163, allocations: 1.331 MB / 2.172 GB, free: 68.5 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009728/5.164, allocations: 468.2 kB / 2.172 GB, free: 68.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/5.164, allocations: 19.44 kB / 2.172 GB, free: 68.17 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/5.165, allocations: 164.4 kB / 2.172 GB, free: 68.15 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.895e-05/5.165, allocations: 47.47 kB / 2.172 GB, free: 68.14 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.259e-05/5.165, allocations: 35.75 kB / 2.172 GB, free: 68.13 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002165/5.168, allocations: 1.549 MB / 2.174 GB, free: 67.5 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2e-07/5.168, allocations: 0 / 2.174 GB, free: 67.5 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003375/5.171, allocations: 1.214 MB / 2.175 GB, free: 67.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 () * 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.002351/5.173, allocations: 1.235 MB / 2.176 GB, free: 66.88 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002206/5.176, allocations: 1.375 MB / 2.178 GB, free: 66.39 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/5.176, allocations: 1.875 kB / 2.178 GB, free: 66.39 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0003944/5.176, allocations: 321.8 kB / 2.178 GB, free: 66.28 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008051/5.184, allocations: 1.49 MB / 2.179 GB, free: 65.99 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006653/5.191, allocations: 2.856 MB / 2.182 GB, free: 64.72 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001688/5.193, allocations: 1.636 MB / 2.184 GB, free: 63.91 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.004516/5.197, allocations: 0.7198 MB / 2.184 GB, free: 63.81 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/5.198, allocations: 125.6 kB / 2.184 GB, free: 63.8 MB / 0.7136 GB Notification: Performance of SimCode: time 1.763e-06/5.198, allocations: 0 / 2.184 GB, free: 63.8 MB / 0.7136 GB Notification: Performance of Templates: time 0.08481/5.282, allocations: 56.84 MB / 2.24 GB, free: 17.1 MB / 0.7136 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)