Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001362/0.001362, allocations: 104 kB / 16.36 MB, free: 6.301 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.0015/0.0015, allocations: 192.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.727/1.727, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001402, allocations: 71.03 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1953, allocations: 114.6 MB / 0.7848 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.437/0.6323, allocations: 113.2 MB / 0.8954 GB, free: 2.496 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03818/0.6706, allocations: 24.02 MB / 0.9188 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006673/0.6773, allocations: 121.4 kB / 0.9189 GB, free: 15.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005302/0.6827, allocations: 1.269 MB / 0.9202 GB, free: 14.11 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01244/0.6952, allocations: 3.661 MB / 0.9237 GB, free: 11.19 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.008006/0.7032, allocations: 3.063 MB / 0.9267 GB, free: 8.906 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01012/0.7133, allocations: 7.127 MB / 0.9337 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003905/0.7173, allocations: 2.549 MB / 0.9362 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006592/0.7239, allocations: 2.782 MB / 0.9389 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00412/0.728, allocations: 2.108 MB / 0.941 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0009913/0.7291, allocations: 259.9 kB / 0.9412 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004583/0.7336, allocations: 1.63 MB / 0.9428 GB, free: 8.527 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0009159/0.7346, allocations: 0.6812 MB / 0.9435 GB, free: 7.844 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.002159/0.7368, allocations: 1.493 MB / 0.9449 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.006859/0.7436, allocations: 4.346 MB / 0.9492 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.7437, allocations: 0 / 0.9492 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7437, allocations: 0 / 0.9492 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001032/0.7438, allocations: 0 / 0.9492 GB, free: 1.984 MB / 0.7325 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.005679/0.7495, allocations: 3.182 MB / 0.9523 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.7495, allocations: 8.031 kB / 0.9523 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007888/0.7503, allocations: 324.3 kB / 0.9526 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003775/0.7541, allocations: 2.16 MB / 0.9547 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.489e-05/0.7542, allocations: 131 kB / 0.9548 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002213/0.7545, allocations: 164 kB / 0.955 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002738/0.7572, allocations: 1.608 MB / 0.9565 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.762e-05/0.7573, allocations: 0 / 0.9565 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.7574, allocations: 71.92 kB / 0.9566 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.209e-05/0.7575, allocations: 43.94 kB / 0.9567 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001924/0.7594, allocations: 1.143 MB / 0.9578 GB, free: 8.961 MB / 0.7481 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.01117/0.7706, allocations: 7.891 MB / 0.9655 GB, free: 0.5586 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007543/0.7714, allocations: 478.6 kB / 0.9659 GB, free: 88 kB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004833/0.7719, allocations: 330.9 kB / 0.9662 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006163/0.7725, allocations: 0.7524 MB / 0.967 GB, free: 14.84 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.7725, allocations: 47.06 kB / 0.967 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=60): time 2.805e-06/0.7725, allocations: 0 / 0.967 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of matching and sorting (n=60): time 0.002116/0.7747, allocations: 0.9843 MB / 0.968 GB, free: 13.8 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.7747, allocations: 55.97 kB / 0.968 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002932/0.7777, allocations: 2.277 MB / 0.9703 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001759/0.7778, allocations: 49.7 kB / 0.9703 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008579/0.7787, allocations: 1.149 MB / 0.9714 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.7789, allocations: 220.9 kB / 0.9716 GB, free: 10 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003288/0.7793, allocations: 250.7 kB / 0.9719 GB, free: 9.75 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.7794, allocations: 349.9 kB / 0.9722 GB, free: 9.402 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006304/0.78, allocations: 365.8 kB / 0.9726 GB, free: 9.043 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008913/0.7809, allocations: 0.7463 MB / 0.9733 GB, free: 8.141 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.7823, allocations: 0.9823 MB / 0.9743 GB, free: 7.047 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/0.7823, allocations: 4 kB / 0.9743 GB, free: 7.043 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002273/0.7846, allocations: 1.288 MB / 0.9755 GB, free: 5.746 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.7846, allocations: 8 kB / 0.9755 GB, free: 5.738 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.7847, allocations: 8 kB / 0.9755 GB, free: 5.73 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.584e-05/0.7847, allocations: 19.06 kB / 0.9756 GB, free: 5.715 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000945/0.7856, allocations: 251.6 kB / 0.9758 GB, free: 5.469 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.436e-05/0.7857, allocations: 21.86 kB / 0.9758 GB, free: 5.449 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.7871, allocations: 170.6 kB / 0.976 GB, free: 5.281 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.845e-05/0.7872, allocations: 55.92 kB / 0.976 GB, free: 5.227 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001291/0.7885, allocations: 0.7563 MB / 0.9768 GB, free: 4.465 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009398/0.7895, allocations: 0.7387 MB / 0.9775 GB, free: 3.562 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001284/0.7908, allocations: 0.9524 MB / 0.9784 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.869e-06/0.7908, allocations: 0 / 0.9784 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002318/0.7931, allocations: 1.266 MB / 0.9797 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7932, allocations: 8 kB / 0.9797 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.7932, allocations: 8 kB / 0.9797 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.7932, allocations: 16 kB / 0.9797 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008988/0.7941, allocations: 244.2 kB / 0.9799 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.7941, allocations: 23.92 kB / 0.9799 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.7957, allocations: 123.2 kB / 0.9801 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.814e-05/0.7958, allocations: 55.98 kB / 0.9801 GB, free: 0.75 MB / 0.7637 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.0003078/0.7962, allocations: 247.8 kB / 0.9803 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004116/0.7966, allocations: 233.1 kB / 0.9806 GB, free: 276 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.7983, allocations: 0.8746 MB / 0.9814 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.7983, allocations: 8 kB / 0.9814 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.7983, allocations: 4 kB / 0.9814 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009722/0.7993, allocations: 0.6853 MB / 0.9821 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003901/0.8032, allocations: 2.557 MB / 0.9846 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.8033, allocations: 4 kB / 0.9846 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/0.8038, allocations: 139.8 kB / 0.9847 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.8038, allocations: 4 kB / 0.9847 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.8039, allocations: 15.98 kB / 0.9848 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.8039, allocations: 4.562 kB / 0.9848 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.8039, allocations: 7.938 kB / 0.9848 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.8062, allocations: 1.301 MB / 0.986 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007214/0.8069, allocations: 406 kB / 0.9864 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.8071, allocations: 15.44 kB / 0.9864 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009332/0.8081, allocations: 51.94 kB / 0.9865 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.996e-05/0.8082, allocations: 40.45 kB / 0.9865 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.057e-05/0.8083, allocations: 35.97 kB / 0.9866 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.002156/0.8104, allocations: 1.529 MB / 0.9881 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.067e-06/0.8104, allocations: 0 / 0.9881 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.002667/0.8131, allocations: 1.114 MB / 0.9891 GB, free: 7.332 MB / 0.7794 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.001644/0.8148, allocations: 0.7402 MB / 0.9899 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002515/0.8173, allocations: 1.354 MB / 0.9912 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.8173, allocations: 4 kB / 0.9912 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005182/0.8178, allocations: 323 kB / 0.9915 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006181/0.824, allocations: 1.407 MB / 0.9929 GB, free: 3.758 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006404/0.8305, allocations: 3.697 MB / 0.9965 GB, free: 8 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.8316, allocations: 1.57 MB / 0.998 GB, free: 14.4 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006215/0.8322, allocations: 179.4 kB / 0.9982 GB, free: 14.23 MB / 0.795 GB Notification: Performance of SimCode: time 8.71e-07/0.8323, allocations: 0 / 0.9982 GB, free: 14.23 MB / 0.795 GB Notification: Performance of Templates: time 0.05887/0.8911, allocations: 39.45 MB / 1.037 GB, free: 7.148 MB / 0.8262 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)