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.001315/0.001315, allocations: 103.4 kB / 16.27 MB, free: 5.977 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.001207/0.001207, allocations: 192.5 kB / 17.2 MB, free: 5.602 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.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002486/0.002486, allocations: 281.7 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.228/1.228, allocations: 178.5 MB / 0.5079 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002821/0.002822, allocations: 96.22 kB / 0.6071 GB, free: 9.305 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2139, allocations: 89.13 MB / 0.6942 GB, free: 92 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4301/0.644, allocations: 112.6 MB / 0.8041 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03678/0.6809, allocations: 20.23 MB / 0.8239 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005258/0.6862, allocations: 109.2 kB / 0.824 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004943/0.6912, allocations: 1.279 MB / 0.8253 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.013/0.7042, allocations: 3.689 MB / 0.8289 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.009432/0.7137, allocations: 3.087 MB / 0.8319 GB, free: 6.969 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01679/0.7305, allocations: 7.189 MB / 0.8389 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007352/0.7379, allocations: 2.577 MB / 0.8414 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009766/0.7477, allocations: 2.802 MB / 0.8442 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0048/0.7525, allocations: 2.121 MB / 0.8462 GB, free: 14.26 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001224/0.7538, allocations: 253.8 kB / 0.8465 GB, free: 14.26 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005318/0.7591, allocations: 1.648 MB / 0.8481 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001461/0.7606, allocations: 0.6924 MB / 0.8487 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003819/0.7644, allocations: 1.517 MB / 0.8502 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.009303/0.7737, allocations: 4.335 MB / 0.8545 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.7738, allocations: 0 / 0.8545 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7738, allocations: 4 kB / 0.8545 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001668/0.774, allocations: 0 / 0.8545 GB, free: 7.254 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.00788/0.7819, allocations: 3.227 MB / 0.8576 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.7819, allocations: 12.02 kB / 0.8576 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/0.7832, allocations: 324.8 kB / 0.8579 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004783/0.788, allocations: 2.093 MB / 0.86 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.7882, allocations: 135 kB / 0.8601 GB, free: 1.336 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004439/0.7886, allocations: 168 kB / 0.8603 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003712/0.7923, allocations: 1.612 MB / 0.8618 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/0.7924, allocations: 4 kB / 0.8619 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/0.7926, allocations: 60 kB / 0.8619 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.517e-05/0.7927, allocations: 40 kB / 0.8619 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.7953, allocations: 1.155 MB / 0.8631 GB, free: 14.23 MB / 0.6231 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.01308/0.8083, allocations: 7.982 MB / 0.8709 GB, free: 5.738 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009159/0.8093, allocations: 475.4 kB / 0.8713 GB, free: 5.266 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.8099, allocations: 330.9 kB / 0.8716 GB, free: 4.941 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007473/0.8106, allocations: 0.7485 MB / 0.8724 GB, free: 4.027 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.8107, allocations: 47.12 kB / 0.8724 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/0.8107, allocations: 0 / 0.8724 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of matching and sorting (n=60): time 0.002522/0.8132, allocations: 0.988 MB / 0.8734 GB, free: 2.977 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.8133, allocations: 59.97 kB / 0.8734 GB, free: 2.902 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003771/0.8171, allocations: 2.339 MB / 0.8757 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002244/0.8173, allocations: 45.7 kB / 0.8758 GB, free: 0.5 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.8185, allocations: 1.153 MB / 0.8769 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.8188, allocations: 220.9 kB / 0.8771 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004634/0.8193, allocations: 258.6 kB / 0.8773 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0002272/0.8195, allocations: 341.9 kB / 0.8777 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007378/0.8203, allocations: 357.9 kB / 0.878 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.8214, allocations: 0.7502 MB / 0.8787 GB, free: 13.26 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.823, allocations: 0.9785 MB / 0.8797 GB, free: 12.16 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.823, allocations: 4 kB / 0.8797 GB, free: 12.16 MB / 0.6387 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002726/0.8257, allocations: 1.295 MB / 0.881 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.8258, allocations: 11.94 kB / 0.881 GB, free: 10.85 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.8258, allocations: 8 kB / 0.881 GB, free: 10.84 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.8258, allocations: 12 kB / 0.881 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009796/0.8268, allocations: 256.2 kB / 0.8812 GB, free: 10.58 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/0.8269, allocations: 27.86 kB / 0.8813 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/0.8285, allocations: 158.4 kB / 0.8814 GB, free: 10.39 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.8286, allocations: 55.98 kB / 0.8815 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001583/0.8302, allocations: 0.757 MB / 0.8822 GB, free: 9.578 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001047/0.8312, allocations: 0.7372 MB / 0.8829 GB, free: 8.684 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001527/0.8328, allocations: 0.9602 MB / 0.8839 GB, free: 7.613 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.063e-06/0.8328, allocations: 4 kB / 0.8839 GB, free: 7.609 MB / 0.6387 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002667/0.8355, allocations: 1.254 MB / 0.8851 GB, free: 6.344 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.8355, allocations: 8.938 kB / 0.8851 GB, free: 6.336 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.8355, allocations: 12.7 kB / 0.8851 GB, free: 6.324 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.8355, allocations: 12 kB / 0.8851 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009311/0.8365, allocations: 255.6 kB / 0.8854 GB, free: 6.062 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-05/0.8365, allocations: 19.92 kB / 0.8854 GB, free: 6.043 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.8382, allocations: 123.2 kB / 0.8855 GB, free: 5.922 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.8383, allocations: 55.98 kB / 0.8856 GB, free: 5.867 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.000369/0.8386, allocations: 244 kB / 0.8858 GB, free: 5.621 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005468/0.8392, allocations: 240.9 kB / 0.886 GB, free: 5.383 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.8411, allocations: 0.8924 MB / 0.8869 GB, free: 4.48 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.8412, allocations: 8 kB / 0.8869 GB, free: 4.473 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.8412, allocations: 0 / 0.8869 GB, free: 4.473 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001133/0.8423, allocations: 0.6853 MB / 0.8876 GB, free: 3.758 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/0.8467, allocations: 2.586 MB / 0.8901 GB, free: 1.094 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.8467, allocations: 4 kB / 0.8901 GB, free: 1.09 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005413/0.8473, allocations: 123.9 kB / 0.8902 GB, free: 0.9688 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.959e-06/0.8473, allocations: 4 kB / 0.8902 GB, free: 0.9648 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/0.8474, allocations: 12 kB / 0.8902 GB, free: 0.9531 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.8474, allocations: 4 kB / 0.8902 GB, free: 0.9492 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.8474, allocations: 12.03 kB / 0.8903 GB, free: 0.9375 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/0.8499, allocations: 1.31 MB / 0.8915 GB, free: 15.6 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008885/0.8508, allocations: 421.9 kB / 0.8919 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.8511, allocations: 12 kB / 0.8919 GB, free: 15.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009731/0.852, allocations: 43.94 kB / 0.892 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.8522, allocations: 52.38 kB / 0.892 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.101e-05/0.8522, allocations: 27.98 kB / 0.8921 GB, free: 15.03 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.00271/0.855, allocations: 1.573 MB / 0.8936 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.81e-07/0.855, allocations: 3.938 kB / 0.8936 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.003247/0.8582, allocations: 1.107 MB / 0.8947 GB, free: 12.34 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.002392/0.8606, allocations: 0.7524 MB / 0.8954 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003227/0.8639, allocations: 1.448 MB / 0.8968 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.8639, allocations: 0 / 0.8968 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.8645, allocations: 323 kB / 0.8971 GB, free: 9.961 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006637/0.8712, allocations: 1.398 MB / 0.8985 GB, free: 8.625 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.8779, allocations: 3.792 MB / 0.9022 GB, free: 4.785 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.8794, allocations: 1.578 MB / 0.9038 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/0.88, allocations: 187.4 kB / 0.9039 GB, free: 2.992 MB / 0.6544 GB Notification: Performance of SimCode: time 9.42e-07/0.8801, allocations: 4 kB / 0.9039 GB, free: 2.988 MB / 0.6544 GB Notification: Performance of Templates: time 0.06374/0.9438, allocations: 39.6 MB / 0.9426 GB, free: 11.75 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)