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.001307/0.001307, allocations: 104 kB / 16.35 MB, free: 5.875 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.001379/0.001379, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002084/0.002084, allocations: 274.8 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9198/0.9198, allocations: 169.2 MB / 0.4989 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 100.8 kB / 0.5967 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1528, allocations: 86.97 MB / 0.6816 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3615/0.5144, allocations: 112.6 MB / 0.7916 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0281/0.5425, allocations: 20.25 MB / 0.8114 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004447/0.547, allocations: 107.3 kB / 0.8115 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004225/0.5513, allocations: 1.277 MB / 0.8127 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.5636, allocations: 3.687 MB / 0.8163 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.008686/0.5724, allocations: 3.129 MB / 0.8194 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009825/0.5822, allocations: 7.216 MB / 0.8264 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003995/0.5862, allocations: 2.572 MB / 0.8289 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005843/0.5921, allocations: 2.821 MB / 0.8317 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003535/0.5956, allocations: 2.124 MB / 0.8337 GB, free: 2.887 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0007302/0.5964, allocations: 256 kB / 0.834 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003788/0.6002, allocations: 1.646 MB / 0.8356 GB, free: 0.9883 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009529/0.6011, allocations: 0.6928 MB / 0.8363 GB, free: 300 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.6031, allocations: 1.516 MB / 0.8378 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00495/0.6081, allocations: 4.391 MB / 0.842 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.6081, allocations: 3.938 kB / 0.842 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.223e-06/0.6081, allocations: 4 kB / 0.8421 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.941e-05/0.6081, allocations: 0 / 0.8421 GB, free: 10.36 MB / 0.6075 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.004715/0.6129, allocations: 3.23 MB / 0.8452 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.6129, allocations: 11.97 kB / 0.8452 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006689/0.6136, allocations: 324.8 kB / 0.8455 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00338/0.617, allocations: 2.198 MB / 0.8477 GB, free: 4.461 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.539e-05/0.6171, allocations: 126.9 kB / 0.8478 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.6173, allocations: 168 kB / 0.848 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.6197, allocations: 1.608 MB / 0.8495 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.6197, allocations: 4 kB / 0.8495 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.6199, allocations: 60 kB / 0.8496 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-05/0.6199, allocations: 47.94 kB / 0.8496 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.6218, allocations: 1.147 MB / 0.8508 GB, free: 1.238 MB / 0.6075 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.01103/0.6328, allocations: 7.916 MB / 0.8585 GB, free: 8.812 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/0.6338, allocations: 466.7 kB / 0.8589 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004997/0.6343, allocations: 326.9 kB / 0.8592 GB, free: 8.027 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006131/0.6349, allocations: 0.7679 MB / 0.86 GB, free: 7.09 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.6349, allocations: 39.12 kB / 0.86 GB, free: 7.043 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=60): time 2.145e-06/0.6349, allocations: 0 / 0.86 GB, free: 7.043 MB / 0.6231 GB Notification: Performance of matching and sorting (n=60): time 0.002118/0.6371, allocations: 0.992 MB / 0.861 GB, free: 6.047 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.6371, allocations: 59.97 kB / 0.8611 GB, free: 5.977 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003129/0.6403, allocations: 2.339 MB / 0.8633 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001701/0.6405, allocations: 49.7 kB / 0.8634 GB, free: 3.57 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008948/0.6414, allocations: 1.153 MB / 0.8645 GB, free: 2.406 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.6416, allocations: 209 kB / 0.8647 GB, free: 2.199 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003435/0.6419, allocations: 254.6 kB / 0.865 GB, free: 1.941 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.642, allocations: 349.9 kB / 0.8653 GB, free: 1.594 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006334/0.6427, allocations: 365.9 kB / 0.8656 GB, free: 1.234 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008953/0.6436, allocations: 0.7424 MB / 0.8664 GB, free: 348 kB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.6449, allocations: 0.9825 MB / 0.8673 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.6449, allocations: 4 kB / 0.8673 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002249/0.6472, allocations: 1.292 MB / 0.8686 GB, free: 13.94 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.6472, allocations: 10.97 kB / 0.8686 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.6473, allocations: 12.12 kB / 0.8686 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.6473, allocations: 12 kB / 0.8686 GB, free: 13.91 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009257/0.6482, allocations: 259.7 kB / 0.8689 GB, free: 13.65 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.356e-05/0.6482, allocations: 12 kB / 0.8689 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.6495, allocations: 170.3 kB / 0.869 GB, free: 13.47 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.363e-05/0.6496, allocations: 51.98 kB / 0.8691 GB, free: 13.42 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001188/0.6508, allocations: 0.7641 MB / 0.8698 GB, free: 12.65 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008514/0.6517, allocations: 0.7388 MB / 0.8706 GB, free: 11.76 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001235/0.6529, allocations: 0.9484 MB / 0.8715 GB, free: 10.7 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.051e-06/0.6529, allocations: 4 kB / 0.8715 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00197/0.6549, allocations: 1.262 MB / 0.8727 GB, free: 9.422 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.6549, allocations: 15.98 kB / 0.8727 GB, free: 9.406 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.6549, allocations: 8 kB / 0.8727 GB, free: 9.398 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.655, allocations: 12 kB / 0.8728 GB, free: 9.387 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008534/0.6558, allocations: 247.6 kB / 0.873 GB, free: 9.145 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.909e-05/0.6558, allocations: 23.92 kB / 0.873 GB, free: 9.121 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.6571, allocations: 123.2 kB / 0.8731 GB, free: 9 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.876e-05/0.6572, allocations: 51.98 kB / 0.8732 GB, free: 8.949 MB / 0.6387 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.0002557/0.6574, allocations: 247.9 kB / 0.8734 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.6578, allocations: 236.9 kB / 0.8736 GB, free: 8.465 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.6594, allocations: 0.8858 MB / 0.8745 GB, free: 7.57 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.6594, allocations: 4 kB / 0.8745 GB, free: 7.566 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.6594, allocations: 4 kB / 0.8745 GB, free: 7.562 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001094/0.6605, allocations: 0.6814 MB / 0.8752 GB, free: 6.852 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.6643, allocations: 2.589 MB / 0.8777 GB, free: 4.188 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.6643, allocations: 7.984 kB / 0.8777 GB, free: 4.18 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005147/0.6648, allocations: 123.8 kB / 0.8778 GB, free: 4.059 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.436e-05/0.6649, allocations: 4 kB / 0.8778 GB, free: 4.055 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.6649, allocations: 23.92 kB / 0.8779 GB, free: 4.031 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.6649, allocations: 0 / 0.8779 GB, free: 4.031 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6649, allocations: 8.094 kB / 0.8779 GB, free: 4.023 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.6669, allocations: 1.313 MB / 0.8792 GB, free: 2.68 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007366/0.6676, allocations: 418 kB / 0.8796 GB, free: 2.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/0.6679, allocations: 16 kB / 0.8796 GB, free: 2.234 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008782/0.6687, allocations: 48.08 kB / 0.8796 GB, free: 2.188 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.616e-05/0.6688, allocations: 40.45 kB / 0.8797 GB, free: 2.148 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.39e-05/0.6689, allocations: 31.97 kB / 0.8797 GB, free: 2.117 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.002044/0.671, allocations: 1.569 MB / 0.8812 GB, free: 0.543 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.61e-07/0.671, allocations: 4 kB / 0.8812 GB, free: 0.5391 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002357/0.6733, allocations: 1.103 MB / 0.8823 GB, free: 15.43 MB / 0.6544 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.001471/0.6748, allocations: 0.7599 MB / 0.883 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00229/0.6771, allocations: 1.355 MB / 0.8844 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.6771, allocations: 0 / 0.8844 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0005116/0.6776, allocations: 323 kB / 0.8847 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00489/0.6825, allocations: 1.387 MB / 0.886 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005343/0.6879, allocations: 3.676 MB / 0.8896 GB, free: 8.086 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.689, allocations: 1.594 MB / 0.8912 GB, free: 6.461 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001855/0.6909, allocations: 0.4939 MB / 0.8917 GB, free: 5.969 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.6913, allocations: 179.4 kB / 0.8918 GB, free: 5.793 MB / 0.6544 GB Notification: Performance of SimCode: time 7.52e-07/0.6913, allocations: 4 kB / 0.8918 GB, free: 5.789 MB / 0.6544 GB Notification: Performance of Templates: time 0.06755/0.7588, allocations: 44.45 MB / 0.9352 GB, free: 10.02 MB / 0.7012 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)