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.00142/0.00142, allocations: 98.7 kB / 16.27 MB, free: 6.418 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.001481/0.001481, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.424/1.424, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.808/1.808, allocations: 292.3 MB / 0.5495 GB, free: 17.53 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.001506/0.001506, allocations: 67.91 kB / 0.6722 GB, free: 6.559 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2497, allocations: 114.5 MB / 0.784 GB, free: 3.895 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.5066/0.7563, allocations: 113.2 MB / 0.8946 GB, free: 2.816 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03722/0.7936, allocations: 24.03 MB / 0.9181 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006289/0.7999, allocations: 122 kB / 0.9182 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.004438/0.8044, allocations: 1.279 MB / 0.9194 GB, free: 14.41 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.01117/0.8156, allocations: 3.654 MB / 0.923 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.008207/0.8239, allocations: 3.034 MB / 0.926 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01073/0.8346, allocations: 7.096 MB / 0.9329 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004319/0.839, allocations: 2.546 MB / 0.9354 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007638/0.8466, allocations: 2.775 MB / 0.9381 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005706/0.8524, allocations: 2.1 MB / 0.9401 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.00108/0.8535, allocations: 256 kB / 0.9404 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006088/0.8596, allocations: 1.622 MB / 0.942 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.8608, allocations: 0.6851 MB / 0.9426 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.002735/0.8635, allocations: 1.504 MB / 0.9441 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.007326/0.8709, allocations: 4.284 MB / 0.9483 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.8709, allocations: 0 / 0.9483 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.858e-06/0.8709, allocations: 4 kB / 0.9483 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.344e-05/0.871, allocations: 0 / 0.9483 GB, free: 2.609 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.005616/0.8766, allocations: 3.186 MB / 0.9514 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.8767, allocations: 11.97 kB / 0.9514 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007908/0.8775, allocations: 324.3 kB / 0.9517 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.8809, allocations: 2.059 MB / 0.9537 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.363e-05/0.881, allocations: 123 kB / 0.9538 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.8812, allocations: 164 kB / 0.954 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002615/0.8838, allocations: 1.619 MB / 0.9556 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.8839, allocations: 4 kB / 0.9556 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.884, allocations: 63.94 kB / 0.9556 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.684e-05/0.8841, allocations: 48 kB / 0.9557 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.886, allocations: 1.143 MB / 0.9568 GB, free: 9.672 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.01093/0.897, allocations: 7.956 MB / 0.9646 GB, free: 1.207 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007773/0.8978, allocations: 470.6 kB / 0.965 GB, free: 0.7422 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004749/0.8983, allocations: 323.5 kB / 0.9653 GB, free: 436 kB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006699/0.8989, allocations: 0.7524 MB / 0.9661 GB, free: 15.51 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.899, allocations: 47.11 kB / 0.9661 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=60): time 2.885e-06/0.899, allocations: 0 / 0.9661 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of matching and sorting (n=60): time 0.002122/0.9011, allocations: 0.9842 MB / 0.9671 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.9012, allocations: 59.97 kB / 0.9671 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002935/0.9041, allocations: 2.281 MB / 0.9694 GB, free: 12.09 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.9043, allocations: 49.7 kB / 0.9694 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.00093/0.9052, allocations: 1.149 MB / 0.9705 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.9055, allocations: 212.9 kB / 0.9707 GB, free: 10.67 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003429/0.9058, allocations: 254.6 kB / 0.971 GB, free: 10.41 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.906, allocations: 349.9 kB / 0.9713 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006501/0.9066, allocations: 361.9 kB / 0.9717 GB, free: 9.707 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009109/0.9075, allocations: 0.7463 MB / 0.9724 GB, free: 8.805 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.9089, allocations: 0.9862 MB / 0.9733 GB, free: 7.707 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.9089, allocations: 4 kB / 0.9733 GB, free: 7.703 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002517/0.9115, allocations: 1.284 MB / 0.9746 GB, free: 6.41 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.9115, allocations: 8.156 kB / 0.9746 GB, free: 6.402 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.9115, allocations: 18 kB / 0.9746 GB, free: 6.387 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.9116, allocations: 12 kB / 0.9746 GB, free: 6.375 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009528/0.9125, allocations: 251.6 kB / 0.9749 GB, free: 6.129 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/0.9126, allocations: 19.94 kB / 0.9749 GB, free: 6.109 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.9142, allocations: 170.3 kB / 0.9751 GB, free: 5.941 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.686e-05/0.9143, allocations: 55.98 kB / 0.9751 GB, free: 5.887 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001339/0.9156, allocations: 0.7563 MB / 0.9759 GB, free: 5.125 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008984/0.9165, allocations: 0.7349 MB / 0.9766 GB, free: 4.227 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001308/0.9179, allocations: 0.9563 MB / 0.9775 GB, free: 3.156 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.938e-06/0.9179, allocations: 0 / 0.9775 GB, free: 3.156 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002309/0.9202, allocations: 1.263 MB / 0.9787 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.9202, allocations: 11.94 kB / 0.9787 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.9202, allocations: 8 kB / 0.9788 GB, free: 1.863 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.9203, allocations: 16 kB / 0.9788 GB, free: 1.848 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008843/0.9211, allocations: 247.6 kB / 0.979 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/0.9212, allocations: 19.94 kB / 0.979 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.9228, allocations: 123.4 kB / 0.9791 GB, free: 1.465 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-05/0.9228, allocations: 55.98 kB / 0.9792 GB, free: 1.41 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.0003152/0.9232, allocations: 247.8 kB / 0.9794 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004108/0.9236, allocations: 233.1 kB / 0.9797 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.9253, allocations: 0.8754 MB / 0.9805 GB, free: 48 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.9254, allocations: 8.688 kB / 0.9805 GB, free: 40 kB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.9254, allocations: 4 kB / 0.9805 GB, free: 36 kB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009946/0.9264, allocations: 0.6891 MB / 0.9812 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/0.9309, allocations: 2.561 MB / 0.9837 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.931, allocations: 4 kB / 0.9837 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005367/0.9315, allocations: 129.3 kB / 0.9838 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.9316, allocations: 4 kB / 0.9838 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/0.9316, allocations: 12 kB / 0.9838 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/0.9316, allocations: 4 kB / 0.9838 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.9316, allocations: 15.81 kB / 0.9839 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.9338, allocations: 1.305 MB / 0.9851 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009072/0.9348, allocations: 402.1 kB / 0.9855 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004657/0.9352, allocations: 16 kB / 0.9855 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.9364, allocations: 45.27 kB / 0.9856 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.9365, allocations: 44.44 kB / 0.9856 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-05/0.9366, allocations: 39.97 kB / 0.9857 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.002711/0.9394, allocations: 1.529 MB / 0.9871 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9394, allocations: 0 / 0.9871 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003486/0.9429, allocations: 1.115 MB / 0.9882 GB, free: 7.988 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.002116/0.945, allocations: 0.75 MB / 0.989 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003259/0.9483, allocations: 1.448 MB / 0.9904 GB, free: 5.957 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/0.9483, allocations: 4 kB / 0.9904 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005794/0.9489, allocations: 319 kB / 0.9907 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007226/0.9561, allocations: 1.41 MB / 0.9921 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007417/0.9636, allocations: 3.744 MB / 0.9957 GB, free: 0.5195 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001277/0.9649, allocations: 1.574 MB / 0.9973 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000686/0.9656, allocations: 183.3 kB / 0.9974 GB, free: 14.73 MB / 0.795 GB Notification: Performance of SimCode: time 1.222e-06/0.9656, allocations: 0 / 0.9974 GB, free: 14.73 MB / 0.795 GB Notification: Performance of Templates: time 0.06061/1.026, allocations: 39.47 MB / 1.036 GB, free: 7.621 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)