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.001309/0.00131, allocations: 104.6 kB / 15.98 MB, free: 6.352 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.001487/0.001487, allocations: 195.6 kB / 16.91 MB, free: 6.188 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.422/1.422, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.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.764/1.764, allocations: 292.3 MB / 0.5492 GB, free: 13.66 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.001364/0.001364, allocations: 64.73 kB / 0.6717 GB, free: 26.5 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2528, allocations: 114.5 MB / 0.7835 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1043/0.3571, allocations: 112.2 MB / 0.8931 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0374/0.3946, allocations: 23.95 MB / 0.9165 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005878/0.4005, allocations: 111.1 kB / 0.9166 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004756/0.4054, allocations: 1.088 MB / 0.9176 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.01249/0.4179, allocations: 3.41 MB / 0.921 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.4687/0.8866, allocations: 2.826 MB / 0.9237 GB, free: 37.93 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01031/0.8969, allocations: 7.152 MB / 0.9307 GB, free: 37.93 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004367/0.9014, allocations: 2.514 MB / 0.9332 GB, free: 37.66 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007812/0.9092, allocations: 2.784 MB / 0.9359 GB, free: 37.66 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004491/0.9137, allocations: 2.185 MB / 0.938 GB, free: 37.31 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001051/0.9148, allocations: 250.5 kB / 0.9383 GB, free: 37.31 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004929/0.9198, allocations: 1.643 MB / 0.9399 GB, free: 37.31 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.921, allocations: 0.6852 MB / 0.9405 GB, free: 37.21 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.003399/0.9244, allocations: 1.496 MB / 0.942 GB, free: 36.78 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.006647/0.9311, allocations: 3.408 MB / 0.9453 GB, free: 36.66 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.9311, allocations: 0 / 0.9453 GB, free: 36.66 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9311, allocations: 1.156 kB / 0.9453 GB, free: 36.66 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001495/0.9313, allocations: 0 / 0.9453 GB, free: 36.66 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.007697/0.939, allocations: 3.184 MB / 0.9484 GB, free: 35.2 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.939, allocations: 9 kB / 0.9485 GB, free: 35.2 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.9401, allocations: 321 kB / 0.9488 GB, free: 35.04 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004057/0.9441, allocations: 2.12 MB / 0.9508 GB, free: 34.46 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.552e-05/0.9443, allocations: 124.2 kB / 0.9509 GB, free: 34.46 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002623/0.9445, allocations: 170.2 kB / 0.9511 GB, free: 34.46 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002755/0.9473, allocations: 1.611 MB / 0.9527 GB, free: 34.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/0.9473, allocations: 1.375 kB / 0.9527 GB, free: 34.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.9475, allocations: 64.78 kB / 0.9527 GB, free: 34.25 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.281e-05/0.9475, allocations: 43.19 kB / 0.9528 GB, free: 34.25 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.9494, allocations: 1.144 MB / 0.9539 GB, free: 34.24 MB / 0.7325 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.01046/0.9599, allocations: 7.866 MB / 0.9616 GB, free: 30.52 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007609/0.9607, allocations: 479.4 kB / 0.962 GB, free: 30.49 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004675/0.9612, allocations: 323.8 kB / 0.9624 GB, free: 30.48 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004661/0.9617, allocations: 0.7554 MB / 0.9631 GB, free: 29.63 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.9617, allocations: 45.97 kB / 0.9631 GB, free: 29.59 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=60): time 2.314e-06/0.9617, allocations: 0 / 0.9631 GB, free: 29.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=60): time 0.00223/0.9639, allocations: 0.9862 MB / 0.9641 GB, free: 29.42 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.964, allocations: 58.22 kB / 0.9642 GB, free: 29.35 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003128/0.9671, allocations: 2.261 MB / 0.9664 GB, free: 29.11 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002568/0.9674, allocations: 48.77 kB / 0.9664 GB, free: 29.08 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007952/0.9682, allocations: 1.149 MB / 0.9675 GB, free: 28.73 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.9684, allocations: 208 kB / 0.9677 GB, free: 28.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.9688, allocations: 256.4 kB / 0.968 GB, free: 28.57 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 6.38e-05/0.9688, allocations: 344.3 kB / 0.9683 GB, free: 28.27 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006109/0.9695, allocations: 368 kB / 0.9686 GB, free: 28.26 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008109/0.9703, allocations: 0.7462 MB / 0.9694 GB, free: 27.84 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.9716, allocations: 0.9839 MB / 0.9703 GB, free: 27.51 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.9716, allocations: 2.906 kB / 0.9703 GB, free: 27.51 MB / 0.7325 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002403/0.974, allocations: 1.286 MB / 0.9716 GB, free: 27.35 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.974, allocations: 6.625 kB / 0.9716 GB, free: 27.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.974, allocations: 9.875 kB / 0.9716 GB, free: 27.35 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.9741, allocations: 17.56 kB / 0.9716 GB, free: 27.35 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009554/0.975, allocations: 252.9 kB / 0.9719 GB, free: 27.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.448e-05/0.9751, allocations: 20.81 kB / 0.9719 GB, free: 27.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.9775, allocations: 259.3 kB / 0.9721 GB, free: 27.24 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.9776, allocations: 50.44 kB / 0.9722 GB, free: 27.24 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001411/0.979, allocations: 0.7562 MB / 0.9729 GB, free: 27.16 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007473/0.9798, allocations: 0.738 MB / 0.9736 GB, free: 26.73 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001099/0.9809, allocations: 0.9473 MB / 0.9746 GB, free: 26.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.585e-06/0.9809, allocations: 7.766 kB / 0.9746 GB, free: 26.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002213/0.9831, allocations: 1.256 MB / 0.9758 GB, free: 26.22 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.9832, allocations: 10.34 kB / 0.9758 GB, free: 26.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.9832, allocations: 7.281 kB / 0.9758 GB, free: 26.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.9832, allocations: 16.61 kB / 0.9758 GB, free: 26.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008647/0.9841, allocations: 256.6 kB / 0.9761 GB, free: 26.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.9841, allocations: 23.86 kB / 0.9761 GB, free: 26.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/0.9862, allocations: 181.1 kB / 0.9763 GB, free: 26.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.119e-05/0.9863, allocations: 54.23 kB / 0.9763 GB, free: 26.16 MB / 0.7325 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.0003381/0.9866, allocations: 253.5 kB / 0.9766 GB, free: 25.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005121/0.9871, allocations: 230.5 kB / 0.9768 GB, free: 25.86 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.9889, allocations: 0.8864 MB / 0.9777 GB, free: 25.75 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.9889, allocations: 11.5 kB / 0.9777 GB, free: 25.75 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.9889, allocations: 3.891 kB / 0.9777 GB, free: 25.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008801/0.9898, allocations: 0.6836 MB / 0.9783 GB, free: 25.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004955/0.9948, allocations: 2.553 MB / 0.9808 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.9948, allocations: 0 / 0.9808 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.9954, allocations: 128.1 kB / 0.981 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.9954, allocations: 2.812 kB / 0.981 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.9954, allocations: 19.95 kB / 0.981 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.9954, allocations: 2.562 kB / 0.981 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.9954, allocations: 2.594 kB / 0.981 GB, free: 25.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.9976, allocations: 1.306 MB / 0.9823 GB, free: 24.67 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.9988, allocations: 408.7 kB / 0.9826 GB, free: 24.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003748/0.9992, allocations: 11.69 kB / 0.9827 GB, free: 24.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/1, allocations: 121 kB / 0.9828 GB, free: 24.34 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/1.001, allocations: 41.06 kB / 0.9828 GB, free: 24.34 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.879e-05/1.001, allocations: 34.94 kB / 0.9828 GB, free: 24.33 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002279/1.003, allocations: 1.515 MB / 0.9843 GB, free: 23.75 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/1.003, allocations: 0 / 0.9843 GB, free: 23.75 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003962/1.007, allocations: 1.101 MB / 0.9854 GB, free: 23.52 MB / 0.7325 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.00172/1.009, allocations: 0.7313 MB / 0.9861 GB, free: 23.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002679/1.011, allocations: 1.446 MB / 0.9875 GB, free: 22.86 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.011, allocations: 0 / 0.9875 GB, free: 22.86 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004848/1.012, allocations: 332.1 kB / 0.9878 GB, free: 22.76 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00663/1.019, allocations: 1.391 MB / 0.9892 GB, free: 22.29 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/1.025, allocations: 4.537 MB / 0.9936 GB, free: 19.29 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000839/1.025, allocations: 1.57 MB / 0.9952 GB, free: 18.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006966/1.026, allocations: 183.9 kB / 0.9953 GB, free: 18.15 MB / 0.7325 GB Notification: Performance of SimCode: time 7.62e-07/1.026, allocations: 0 / 0.9953 GB, free: 18.15 MB / 0.7325 GB Notification: Performance of Templates: time 0.04954/1.076, allocations: 39.12 MB / 1.034 GB, free: 13.77 MB / 0.7637 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)