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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00442/0.00442, allocations: 102 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 195 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002049/0.002049, allocations: 282.8 kB / 290.8 MB, free: 1.766 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9252/0.9252, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 99.84 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1658, allocations: 86.98 MB / 0.7664 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4369/0.6028, allocations: 112.6 MB / 0.8764 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02877/0.6316, allocations: 20.24 MB / 0.8962 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004742/0.6364, allocations: 107.3 kB / 0.8963 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.004149/0.6406, allocations: 1.281 MB / 0.8975 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.01127/0.6519, allocations: 3.68 MB / 0.9011 GB, free: 9.051 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.007885/0.6598, allocations: 3.118 MB / 0.9042 GB, free: 5.984 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.00971/0.6696, allocations: 7.22 MB / 0.9112 GB, free: 14.75 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004188/0.6738, allocations: 2.585 MB / 0.9137 GB, free: 12.1 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006665/0.6804, allocations: 2.883 MB / 0.9165 GB, free: 9.211 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004222/0.6847, allocations: 2.124 MB / 0.9186 GB, free: 7.078 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0008558/0.6856, allocations: 260 kB / 0.9189 GB, free: 6.824 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004471/0.69, allocations: 1.646 MB / 0.9205 GB, free: 5.176 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.6912, allocations: 0.6889 MB / 0.9211 GB, free: 4.484 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003197/0.6944, allocations: 1.516 MB / 0.9226 GB, free: 2.961 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.007408/0.7018, allocations: 4.403 MB / 0.9269 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.7019, allocations: 4 kB / 0.9269 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7019, allocations: 0 / 0.9269 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001491/0.702, allocations: 0 / 0.9269 GB, free: 14.54 MB / 0.6856 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.006975/0.709, allocations: 3.218 MB / 0.9301 GB, free: 11.26 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.7091, allocations: 8.031 kB / 0.9301 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.7101, allocations: 336.6 kB / 0.9304 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004266/0.7144, allocations: 2.205 MB / 0.9326 GB, free: 8.641 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.7145, allocations: 130.9 kB / 0.9327 GB, free: 8.512 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003287/0.7148, allocations: 167.9 kB / 0.9328 GB, free: 8.348 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002912/0.7178, allocations: 1.604 MB / 0.9344 GB, free: 6.68 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.294e-05/0.7178, allocations: 4 kB / 0.9344 GB, free: 6.676 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.718, allocations: 64 kB / 0.9345 GB, free: 6.613 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.791e-05/0.718, allocations: 43.98 kB / 0.9345 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.72, allocations: 1.151 MB / 0.9356 GB, free: 5.414 MB / 0.6856 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.01066/0.7306, allocations: 7.912 MB / 0.9434 GB, free: 12.99 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008379/0.7315, allocations: 474.4 kB / 0.9438 GB, free: 12.52 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/0.732, allocations: 326.9 kB / 0.9441 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006615/0.7327, allocations: 0.7563 MB / 0.9449 GB, free: 11.28 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.7328, allocations: 51.11 kB / 0.9449 GB, free: 11.22 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=60): time 4.118e-06/0.7328, allocations: 3.984 kB / 0.9449 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of matching and sorting (n=60): time 0.001999/0.7348, allocations: 0.9765 MB / 0.9459 GB, free: 10.23 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.7348, allocations: 59.95 kB / 0.9459 GB, free: 10.16 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002938/0.7378, allocations: 2.339 MB / 0.9482 GB, free: 7.809 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.7379, allocations: 45.7 kB / 0.9483 GB, free: 7.758 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009081/0.7388, allocations: 1.149 MB / 0.9494 GB, free: 6.598 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/0.739, allocations: 224.9 kB / 0.9496 GB, free: 6.375 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003434/0.7394, allocations: 254.6 kB / 0.9498 GB, free: 6.117 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.7395, allocations: 341.9 kB / 0.9502 GB, free: 5.777 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006514/0.7402, allocations: 361.9 kB / 0.9505 GB, free: 5.422 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009574/0.7411, allocations: 0.7541 MB / 0.9512 GB, free: 4.516 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.7426, allocations: 0.9746 MB / 0.9522 GB, free: 3.438 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.7426, allocations: 4 kB / 0.9522 GB, free: 3.434 MB / 0.7012 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002252/0.7449, allocations: 1.291 MB / 0.9535 GB, free: 2.129 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.7449, allocations: 10.97 kB / 0.9535 GB, free: 2.121 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.7449, allocations: 8 kB / 0.9535 GB, free: 2.113 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.261e-05/0.7449, allocations: 16 kB / 0.9535 GB, free: 2.098 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009861/0.7459, allocations: 252.2 kB / 0.9537 GB, free: 1.852 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.746, allocations: 19.92 kB / 0.9538 GB, free: 1.832 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.7473, allocations: 162.4 kB / 0.9539 GB, free: 1.672 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.553e-05/0.7474, allocations: 55.98 kB / 0.954 GB, free: 1.617 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001251/0.7486, allocations: 0.7563 MB / 0.9547 GB, free: 0.8555 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008706/0.7495, allocations: 0.7426 MB / 0.9554 GB, free: 15.95 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001295/0.7508, allocations: 0.9531 MB / 0.9564 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.22e-06/0.7508, allocations: 4 kB / 0.9564 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002016/0.7528, allocations: 1.258 MB / 0.9576 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.7529, allocations: 8 kB / 0.9576 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.7529, allocations: 20.75 kB / 0.9576 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.7529, allocations: 12 kB / 0.9576 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008903/0.7538, allocations: 251.6 kB / 0.9579 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.7538, allocations: 23.92 kB / 0.9579 GB, free: 13.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.7551, allocations: 119.2 kB / 0.958 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.7552, allocations: 55.98 kB / 0.9581 GB, free: 13.13 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002742/0.7555, allocations: 248.6 kB / 0.9583 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/0.7558, allocations: 233 kB / 0.9585 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.7575, allocations: 0.8863 MB / 0.9594 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.7575, allocations: 12 kB / 0.9594 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7575, allocations: 0 / 0.9594 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001001/0.7585, allocations: 0.6775 MB / 0.9601 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.7622, allocations: 2.586 MB / 0.9626 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.7622, allocations: 4.031 kB / 0.9626 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.7628, allocations: 127.8 kB / 0.9627 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.7628, allocations: 4 kB / 0.9627 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.7628, allocations: 16 kB / 0.9627 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.7628, allocations: 4 kB / 0.9627 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.7628, allocations: 3.984 kB / 0.9627 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.7647, allocations: 1.313 MB / 0.964 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006148/0.7653, allocations: 417.9 kB / 0.9644 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.7655, allocations: 12 kB / 0.9644 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008852/0.7664, allocations: 55.92 kB / 0.9645 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.805e-05/0.7665, allocations: 44.44 kB / 0.9645 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.096e-05/0.7666, allocations: 27.98 kB / 0.9645 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00207/0.7687, allocations: 1.569 MB / 0.9661 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7687, allocations: 0 / 0.9661 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002498/0.7712, allocations: 1.111 MB / 0.9672 GB, free: 3.617 MB / 0.7169 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/0.7728, allocations: 0.7598 MB / 0.9679 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002412/0.7752, allocations: 1.359 MB / 0.9692 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.7752, allocations: 4.188 kB / 0.9692 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.7757, allocations: 323 kB / 0.9695 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005043/0.7808, allocations: 1.382 MB / 0.9709 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005507/0.7863, allocations: 3.677 MB / 0.9745 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.7874, allocations: 1.59 MB / 0.976 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001658/0.789, allocations: 498.5 kB / 0.9765 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.7894, allocations: 171.4 kB / 0.9767 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.7894, allocations: 0 / 0.9767 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of Templates: time 0.07114/0.8605, allocations: 45.57 MB / 1.021 GB, free: 13.08 MB / 0.7794 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)