Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.772/1.772, allocations: 292.3 MB / 308.1 MB, free: 4.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 192.4 kB / 376.9 MB, free: 1.789 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.825/1.825, allocations: 205 MB / 0.6354 GB, free: 9.754 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001017/0.001016, allocations: 97.94 kB / 0.748 GB, free: 61.35 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 55.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2888, allocations: 114.5 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02967/0.3185, allocations: 30.04 MB / 1.012 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.01828/0.3368, allocations: 12.01 MB / 1.023 GB, free: 196 kB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002009/0.3389, allocations: 43.62 kB / 1.023 GB, free: 152 kB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.5662/0.9051, allocations: 345.1 kB / 1.024 GB, free: 63.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.005592/0.9108, allocations: 1.222 MB / 1.025 GB, free: 63.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.003449/0.9143, allocations: 1.03 MB / 1.026 GB, free: 63.38 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.006478/0.9208, allocations: 4.195 MB / 1.03 GB, free: 63.37 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002291/0.9231, allocations: 1.162 MB / 1.031 GB, free: 63.3 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0038/0.9269, allocations: 1.527 MB / 1.033 GB, free: 63.27 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00449/0.9314, allocations: 1.609 MB / 1.034 GB, free: 63.08 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.000729/0.9322, allocations: 70.97 kB / 1.034 GB, free: 63.08 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003616/0.9358, allocations: 0.9378 MB / 1.035 GB, free: 63.08 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0006554/0.9365, allocations: 354.3 kB / 1.035 GB, free: 63.04 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.001662/0.9382, allocations: 0.6876 MB / 1.036 GB, free: 62.86 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.004608/0.9428, allocations: 2.114 MB / 1.038 GB, free: 62.63 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.9428, allocations: 4.016 kB / 1.038 GB, free: 62.63 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.242e-06/0.9428, allocations: 0 / 1.038 GB, free: 62.63 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.526e-05/0.9428, allocations: 0.875 kB / 1.038 GB, free: 62.63 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003645/0.9465, allocations: 1.645 MB / 1.04 GB, free: 61.8 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.9466, allocations: 10.16 kB / 1.04 GB, free: 61.8 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004293/0.947, allocations: 148.7 kB / 1.04 GB, free: 61.74 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/0.9491, allocations: 0.9022 MB / 1.041 GB, free: 61.38 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.351e-05/0.9492, allocations: 82.12 kB / 1.041 GB, free: 61.37 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.9495, allocations: 117.8 kB / 1.041 GB, free: 61.37 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.9508, allocations: 0.6333 MB / 1.042 GB, free: 61.27 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.9509, allocations: 7.094 kB / 1.042 GB, free: 61.26 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.885e-05/0.9509, allocations: 25.67 kB / 1.042 GB, free: 61.26 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.9509, allocations: 15.31 kB / 1.042 GB, free: 61.26 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009419/0.9519, allocations: 460.3 kB / 1.042 GB, free: 61.26 MB / 0.7448 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.004753/0.9567, allocations: 2.857 MB / 1.045 GB, free: 59.97 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006521/0.9573, allocations: 306.5 kB / 1.045 GB, free: 59.95 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.9576, allocations: 151.8 kB / 1.045 GB, free: 59.93 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002713/0.9579, allocations: 346.9 kB / 1.046 GB, free: 59.55 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.958, allocations: 41.03 kB / 1.046 GB, free: 59.51 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=33): time 3.417e-06/0.958, allocations: 0 / 1.046 GB, free: 59.51 MB / 0.7448 GB Notification: Performance of matching and sorting (n=33): time 0.001408/0.9594, allocations: 0.5274 MB / 1.046 GB, free: 59.42 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.9594, allocations: 55.62 kB / 1.046 GB, free: 59.36 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.9606, allocations: 0.889 MB / 1.047 GB, free: 59.2 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.9608, allocations: 58.11 kB / 1.047 GB, free: 59.17 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004683/0.9612, allocations: 0.5311 MB / 1.048 GB, free: 58.99 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.741e-05/0.9613, allocations: 114.6 kB / 1.048 GB, free: 58.92 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/0.9617, allocations: 293 kB / 1.048 GB, free: 58.9 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.537e-05/0.9618, allocations: 323.8 kB / 1.048 GB, free: 58.59 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.9622, allocations: 199.7 kB / 1.049 GB, free: 58.58 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.9633, allocations: 1.15 MB / 1.05 GB, free: 57.63 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/0.9641, allocations: 457.7 kB / 1.05 GB, free: 57.54 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.9641, allocations: 0 / 1.05 GB, free: 57.54 MB / 0.7448 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001238/0.9653, allocations: 0.6594 MB / 1.051 GB, free: 57.44 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.9653, allocations: 6.062 kB / 1.051 GB, free: 57.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.9654, allocations: 3.25 kB / 1.051 GB, free: 57.44 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.9654, allocations: 13.92 kB / 1.051 GB, free: 57.43 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.9667, allocations: 227.8 kB / 1.051 GB, free: 57.43 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.9678, allocations: 2.961 MB / 1.054 GB, free: 54.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00334/0.9712, allocations: 0.7201 MB / 1.055 GB, free: 54.43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.19e-05/0.9712, allocations: 30.97 kB / 1.055 GB, free: 54.43 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006678/0.9719, allocations: 365.6 kB / 1.055 GB, free: 54.35 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001156/0.9731, allocations: 1.158 MB / 1.056 GB, free: 53.36 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006884/0.9738, allocations: 460.9 kB / 1.057 GB, free: 53.25 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.504e-06/0.9738, allocations: 0 / 1.057 GB, free: 53.25 MB / 0.7448 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001308/0.9751, allocations: 0.654 MB / 1.057 GB, free: 53.16 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.9751, allocations: 10.06 kB / 1.057 GB, free: 53.15 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.9751, allocations: 2.906 kB / 1.057 GB, free: 53.15 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.341e-06/0.9752, allocations: 6.062 kB / 1.057 GB, free: 53.15 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.9758, allocations: 161.4 kB / 1.057 GB, free: 53.15 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.9758, allocations: 3.891 kB / 1.057 GB, free: 53.15 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004325/0.9801, allocations: 0.9921 MB / 1.058 GB, free: 53.09 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.9802, allocations: 30.22 kB / 1.058 GB, free: 53.09 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002541/0.9804, allocations: 234.9 kB / 1.059 GB, free: 52.91 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.9806, allocations: 103.9 kB / 1.059 GB, free: 52.85 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/0.9817, allocations: 0.5068 MB / 1.059 GB, free: 52.79 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.9817, allocations: 3.375 kB / 1.059 GB, free: 52.79 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.9817, allocations: 0 / 1.059 GB, free: 52.79 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.9817, allocations: 3.281 kB / 1.059 GB, free: 52.79 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.9837, allocations: 1.249 MB / 1.06 GB, free: 52.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.9837, allocations: 3.844 kB / 1.06 GB, free: 52.43 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.9842, allocations: 117.5 kB / 1.061 GB, free: 52.43 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.9843, allocations: 3.094 kB / 1.061 GB, free: 52.43 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.905e-05/0.9843, allocations: 11.25 kB / 1.061 GB, free: 52.43 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009017/0.9852, allocations: 2.937 MB / 1.063 GB, free: 49.5 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.9852, allocations: 3.969 kB / 1.063 GB, free: 49.5 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.9866, allocations: 1.472 MB / 1.065 GB, free: 48.65 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.9869, allocations: 214 kB / 1.065 GB, free: 48.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.678e-05/0.987, allocations: 6.781 kB / 1.065 GB, free: 48.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.9875, allocations: 62.7 kB / 1.065 GB, free: 48.48 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.282e-05/0.9876, allocations: 29.91 kB / 1.065 GB, free: 48.48 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.9877, allocations: 15.8 kB / 1.065 GB, free: 48.48 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0007618/0.9884, allocations: 0.594 MB / 1.066 GB, free: 48.38 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9884, allocations: 1.031 kB / 1.066 GB, free: 48.38 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0022/0.9906, allocations: 0.5479 MB / 1.066 GB, free: 48.3 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008319/0.9915, allocations: 336.5 kB / 1.067 GB, free: 48.17 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.002335/0.9938, allocations: 0.8349 MB / 1.067 GB, free: 48.16 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.9938, allocations: 3.938 kB / 1.067 GB, free: 48.16 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0005367/0.9944, allocations: 227.8 kB / 1.068 GB, free: 48.16 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.9969, allocations: 0.491 MB / 1.068 GB, free: 48.12 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.9996, allocations: 2.066 MB / 1.07 GB, free: 46.98 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/1, allocations: 1.036 MB / 1.071 GB, free: 46.26 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.001092/1.001, allocations: 212.5 kB / 1.071 GB, free: 46.21 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/1.001, allocations: 78.23 kB / 1.071 GB, free: 46.21 MB / 0.7448 GB Notification: Performance of SimCode: time 2.9e-07/1.001, allocations: 0 / 1.071 GB, free: 46.21 MB / 0.7448 GB Notification: Performance of Templates: time 0.04256/1.044, allocations: 25.18 MB / 1.096 GB, free: 44.55 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)