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.001655/0.001655, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001323/0.001324, allocations: 195.6 kB / 16.14 MB, free: 6.684 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.495/1.495, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002668/0.002668, allocations: 279.1 kB / 290.2 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.194/1.194, allocations: 178.6 MB / 0.5068 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002736/0.002736, allocations: 100.8 kB / 0.6057 GB, free: 25.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1561, allocations: 89.16 MB / 0.6928 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3943/0.5505, allocations: 111.9 MB / 0.8021 GB, free: 18.51 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0242/0.5747, allocations: 20.34 MB / 0.8219 GB, free: 4.074 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003948/0.5787, allocations: 99.34 kB / 0.822 GB, free: 4.031 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00297/0.5817, allocations: 1.047 MB / 0.823 GB, free: 3.426 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008105/0.5899, allocations: 3.379 MB / 0.8263 GB, free: 0.9883 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006929/0.5968, allocations: 2.847 MB / 0.8291 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01173/0.6085, allocations: 9.546 MB / 0.8384 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003487/0.6121, allocations: 2.148 MB / 0.8405 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00621/0.6183, allocations: 2.388 MB / 0.8429 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004336/0.6227, allocations: 2.135 MB / 0.8449 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0006033/0.6233, allocations: 123.9 kB / 0.8451 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004423/0.6277, allocations: 1.476 MB / 0.8465 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000839/0.6286, allocations: 0.558 MB / 0.8471 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002516/0.6311, allocations: 1.375 MB / 0.8484 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006309/0.6374, allocations: 4.251 MB / 0.8525 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.6375, allocations: 0 / 0.8525 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6375, allocations: 0 / 0.8525 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.023e-05/0.6376, allocations: 0 / 0.8525 GB, free: 15.61 MB / 0.5762 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.006382/0.644, allocations: 3.223 MB / 0.8557 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.644, allocations: 8.031 kB / 0.8557 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009139/0.6449, allocations: 332.7 kB / 0.856 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004099/0.649, allocations: 2.151 MB / 0.8581 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.6492, allocations: 130.9 kB / 0.8582 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.6494, allocations: 167.9 kB / 0.8584 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00307/0.6525, allocations: 1.612 MB / 0.86 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.6526, allocations: 0 / 0.86 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/0.6527, allocations: 67.98 kB / 0.86 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.008e-05/0.6528, allocations: 43.94 kB / 0.8601 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002244/0.655, allocations: 1.147 MB / 0.8612 GB, free: 6.535 MB / 0.5762 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.01167/0.6667, allocations: 7.885 MB / 0.8689 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008652/0.6676, allocations: 466 kB / 0.8693 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000566/0.6682, allocations: 334.8 kB / 0.8697 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007131/0.6689, allocations: 0.7601 MB / 0.8704 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.6689, allocations: 43.12 kB / 0.8705 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=60): time 2.395e-06/0.6689, allocations: 4 kB / 0.8705 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=60): time 0.00218/0.6711, allocations: 0.9843 MB / 0.8714 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.6712, allocations: 55.97 kB / 0.8715 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003229/0.6744, allocations: 2.316 MB / 0.8737 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.6745, allocations: 49.7 kB / 0.8738 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.6756, allocations: 1.149 MB / 0.8749 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.6759, allocations: 212.9 kB / 0.8751 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003873/0.6763, allocations: 254.6 kB / 0.8753 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000177/0.6765, allocations: 349.9 kB / 0.8757 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007058/0.6772, allocations: 365.9 kB / 0.876 GB, free: 6.594 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.6783, allocations: 0.7463 MB / 0.8768 GB, free: 5.691 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.6799, allocations: 0.9824 MB / 0.8777 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.6799, allocations: 0 / 0.8777 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002476/0.6824, allocations: 1.295 MB / 0.879 GB, free: 3.293 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.6824, allocations: 10.34 kB / 0.879 GB, free: 3.285 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.6824, allocations: 8 kB / 0.879 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.6825, allocations: 16 kB / 0.879 GB, free: 3.262 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.6835, allocations: 259.5 kB / 0.8793 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.432e-05/0.6835, allocations: 23.92 kB / 0.8793 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.6852, allocations: 242.3 kB / 0.8795 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.539e-05/0.6853, allocations: 55.92 kB / 0.8796 GB, free: 2.691 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001419/0.6867, allocations: 0.7602 MB / 0.8803 GB, free: 1.926 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001068/0.6878, allocations: 0.7388 MB / 0.881 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001521/0.6893, allocations: 0.9523 MB / 0.882 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.463e-06/0.6893, allocations: 4 kB / 0.882 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002314/0.6916, allocations: 1.258 MB / 0.8832 GB, free: 14.69 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.6917, allocations: 8 kB / 0.8832 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6917, allocations: 8 kB / 0.8832 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.6917, allocations: 12 kB / 0.8832 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009343/0.6926, allocations: 248.2 kB / 0.8835 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.303e-05/0.6927, allocations: 23.92 kB / 0.8835 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.6943, allocations: 183.1 kB / 0.8837 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.525e-05/0.6944, allocations: 51.98 kB / 0.8837 GB, free: 14.16 MB / 0.6075 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.0003189/0.6947, allocations: 248.6 kB / 0.8839 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003692/0.6951, allocations: 236.9 kB / 0.8842 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/0.697, allocations: 0.889 MB / 0.885 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.697, allocations: 4 kB / 0.885 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.485e-06/0.697, allocations: 8 kB / 0.8851 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001138/0.6982, allocations: 0.6853 MB / 0.8857 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.7024, allocations: 2.562 MB / 0.8882 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.7024, allocations: 12.08 kB / 0.8882 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.703, allocations: 123.8 kB / 0.8884 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.703, allocations: 4 kB / 0.8884 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.419e-05/0.7031, allocations: 15.98 kB / 0.8884 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.7031, allocations: 4 kB / 0.8884 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.7031, allocations: 4 kB / 0.8884 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.7052, allocations: 1.317 MB / 0.8897 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007388/0.706, allocations: 417.9 kB / 0.8901 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.7063, allocations: 12 kB / 0.8901 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.7074, allocations: 111.7 kB / 0.8902 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.7075, allocations: 56.38 kB / 0.8902 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-05/0.7076, allocations: 31.97 kB / 0.8903 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002364/0.71, allocations: 1.55 MB / 0.8918 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.71, allocations: 0 / 0.8918 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002996/0.713, allocations: 1.099 MB / 0.8929 GB, free: 4.617 MB / 0.6075 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.002154/0.7151, allocations: 0.7359 MB / 0.8936 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002718/0.7179, allocations: 1.363 MB / 0.8949 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.7179, allocations: 0 / 0.8949 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005834/0.7185, allocations: 319 kB / 0.8952 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006275/0.7248, allocations: 1.387 MB / 0.8966 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006683/0.7314, allocations: 4.539 MB / 0.901 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.7328, allocations: 1.59 MB / 0.9025 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002148/0.735, allocations: 0.496 MB / 0.903 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.7354, allocations: 171.4 kB / 0.9032 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of SimCode: time 9.31e-07/0.7354, allocations: 0 / 0.9032 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of Templates: time 0.08146/0.8169, allocations: 45.27 MB / 0.9474 GB, free: 13.46 MB / 0.67 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)