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.006543/0.006543, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001454/0.001454, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002005/0.002005, allocations: 279.2 kB / 290.8 MB, free: 1.789 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9186/0.9186, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003108/0.003108, allocations: 95.84 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1874, allocations: 86.98 MB / 0.7664 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.426/0.6135, allocations: 112.6 MB / 0.8764 GB, free: 15.48 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03074/0.6442, allocations: 20.25 MB / 0.8961 GB, free: 14.15 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004199/0.6485, allocations: 111.3 kB / 0.8962 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003266/0.6518, allocations: 1.273 MB / 0.8975 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.009408/0.6612, allocations: 3.688 MB / 0.9011 GB, free: 9.055 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.00778/0.669, allocations: 3.128 MB / 0.9041 GB, free: 5.98 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.01079/0.6798, allocations: 7.21 MB / 0.9112 GB, free: 14.75 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004422/0.6843, allocations: 2.574 MB / 0.9137 GB, free: 12.11 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006979/0.6913, allocations: 2.895 MB / 0.9165 GB, free: 9.215 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004158/0.6954, allocations: 2.124 MB / 0.9186 GB, free: 7.082 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.000941/0.6964, allocations: 252 kB / 0.9188 GB, free: 6.836 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004303/0.7007, allocations: 1.646 MB / 0.9205 GB, free: 5.188 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.7018, allocations: 0.7006 MB / 0.9211 GB, free: 4.484 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002737/0.7045, allocations: 1.512 MB / 0.9226 GB, free: 2.965 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.00709/0.7116, allocations: 4.407 MB / 0.9269 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.7117, allocations: 0 / 0.9269 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.894e-06/0.7117, allocations: 0 / 0.9269 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001399/0.7118, allocations: 0 / 0.9269 GB, free: 14.55 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.00643/0.7183, allocations: 3.222 MB / 0.9301 GB, free: 11.26 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.7183, allocations: 8.031 kB / 0.9301 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007838/0.7191, allocations: 332.7 kB / 0.9304 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.7226, allocations: 2.203 MB / 0.9325 GB, free: 8.648 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.456e-05/0.7228, allocations: 126.9 kB / 0.9327 GB, free: 8.523 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000225/0.723, allocations: 171.9 kB / 0.9328 GB, free: 8.355 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.7256, allocations: 1.608 MB / 0.9344 GB, free: 6.684 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.7256, allocations: 4 kB / 0.9344 GB, free: 6.68 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.7258, allocations: 60 kB / 0.9345 GB, free: 6.621 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.354e-05/0.7258, allocations: 47.98 kB / 0.9345 GB, free: 6.574 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.7278, allocations: 1.147 MB / 0.9356 GB, free: 5.422 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.01039/0.7382, allocations: 7.912 MB / 0.9433 GB, free: 13 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008031/0.739, allocations: 475.5 kB / 0.9438 GB, free: 12.53 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005052/0.7396, allocations: 330.9 kB / 0.9441 GB, free: 12.2 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000621/0.7402, allocations: 0.7641 MB / 0.9449 GB, free: 11.27 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.7402, allocations: 43.11 kB / 0.9449 GB, free: 11.22 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=60): time 2.514e-06/0.7402, allocations: 0 / 0.9449 GB, free: 11.22 MB / 0.7012 GB Notification: Performance of matching and sorting (n=60): time 0.002033/0.7423, allocations: 0.9843 MB / 0.9459 GB, free: 10.23 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.7423, allocations: 59.95 kB / 0.9459 GB, free: 10.16 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/0.7452, allocations: 2.335 MB / 0.9482 GB, free: 7.812 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.7454, allocations: 49.7 kB / 0.9483 GB, free: 7.758 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000954/0.7463, allocations: 1.146 MB / 0.9494 GB, free: 6.602 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.7466, allocations: 216.9 kB / 0.9496 GB, free: 6.387 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.7469, allocations: 254.6 kB / 0.9498 GB, free: 6.129 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.7471, allocations: 353.9 kB / 0.9502 GB, free: 5.777 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006446/0.7477, allocations: 357.9 kB / 0.9505 GB, free: 5.426 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009288/0.7487, allocations: 0.7463 MB / 0.9512 GB, free: 4.527 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.7501, allocations: 0.9824 MB / 0.9522 GB, free: 3.438 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.7501, allocations: 4 kB / 0.9522 GB, free: 3.434 MB / 0.7012 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002248/0.7523, allocations: 1.295 MB / 0.9535 GB, free: 2.129 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.7524, allocations: 10.19 kB / 0.9535 GB, free: 2.121 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.7524, allocations: 8 kB / 0.9535 GB, free: 2.113 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.7524, allocations: 16 kB / 0.9535 GB, free: 2.098 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009704/0.7534, allocations: 247.6 kB / 0.9537 GB, free: 1.855 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.7534, allocations: 19.92 kB / 0.9537 GB, free: 1.836 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.7548, allocations: 166.6 kB / 0.9539 GB, free: 1.672 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.563e-05/0.7549, allocations: 51.98 kB / 0.954 GB, free: 1.621 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001298/0.7562, allocations: 0.7602 MB / 0.9547 GB, free: 0.8555 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009166/0.7571, allocations: 0.7387 MB / 0.9554 GB, free: 15.96 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00134/0.7585, allocations: 0.9491 MB / 0.9563 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.162e-06/0.7585, allocations: 4 kB / 0.9563 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002204/0.7607, allocations: 1.262 MB / 0.9576 GB, free: 13.62 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.7607, allocations: 8 kB / 0.9576 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.7608, allocations: 8.047 kB / 0.9576 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.7608, allocations: 23.92 kB / 0.9576 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008997/0.7617, allocations: 243.6 kB / 0.9578 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-05/0.7617, allocations: 24.42 kB / 0.9579 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.7631, allocations: 123.2 kB / 0.958 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.695e-05/0.7632, allocations: 51.98 kB / 0.958 GB, free: 13.14 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.0002793/0.7635, allocations: 248.6 kB / 0.9583 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.7639, allocations: 237 kB / 0.9585 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/0.7655, allocations: 0.892 MB / 0.9594 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.7656, allocations: 8 kB / 0.9594 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.7656, allocations: 0 / 0.9594 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001019/0.7666, allocations: 0.6892 MB / 0.9601 GB, free: 11.03 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/0.7705, allocations: 2.578 MB / 0.9626 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.7706, allocations: 0 / 0.9626 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005434/0.7711, allocations: 127.8 kB / 0.9627 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.816e-06/0.7711, allocations: 8.094 kB / 0.9627 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.7712, allocations: 16 kB / 0.9627 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.7712, allocations: 7.984 kB / 0.9627 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7712, allocations: 0 / 0.9627 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.7733, allocations: 1.317 MB / 0.964 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008702/0.7742, allocations: 417.9 kB / 0.9644 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004176/0.7746, allocations: 12 kB / 0.9644 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.7757, allocations: 47.88 kB / 0.9645 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.7758, allocations: 48.44 kB / 0.9645 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-05/0.7759, allocations: 31.98 kB / 0.9645 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002479/0.7784, allocations: 1.569 MB / 0.9661 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.6e-07/0.7784, allocations: 0 / 0.9661 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003242/0.7817, allocations: 1.107 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.001782/0.7835, allocations: 0.7663 MB / 0.9679 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002697/0.7862, allocations: 1.355 MB / 0.9692 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.7862, allocations: 4 kB / 0.9692 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005781/0.7868, allocations: 327 kB / 0.9695 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00639/0.7932, allocations: 1.381 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.006374/0.7996, 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.001306/0.8009, allocations: 1.59 MB / 0.976 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001742/0.8026, allocations: 0.4983 MB / 0.9765 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/0.803, allocations: 167.4 kB / 0.9767 GB, free: 9.98 MB / 0.7325 GB Notification: Performance of SimCode: time 6.01e-07/0.803, allocations: 0 / 0.9767 GB, free: 9.98 MB / 0.7325 GB Notification: Performance of Templates: time 0.07088/0.8739, allocations: 44.83 MB / 1.02 GB, free: 13.81 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)