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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001508, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002049/0.002049, allocations: 195.7 kB / 16.53 MB, free: 6.699 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.784/1.784, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.708/1.708, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001774/0.001775, allocations: 68.25 kB / 0.6715 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3649, allocations: 114.6 MB / 0.7834 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.04594/0.4108, allocations: 30.22 MB / 0.8129 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02947/0.4404, allocations: 11.55 MB / 0.8242 GB, free: 3.559 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004048/0.4445, allocations: 43.62 kB / 0.8242 GB, free: 3.516 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002349/0.447, allocations: 424.9 kB / 0.8246 GB, free: 3.098 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.008578/0.4556, allocations: 1.367 MB / 0.8259 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005591/0.4612, allocations: 1.131 MB / 0.8271 GB, free: 0.6055 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007108/0.4683, allocations: 3.502 MB / 0.8305 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002889/0.4713, allocations: 1.322 MB / 0.8318 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004472/0.4758, allocations: 1.652 MB / 0.8334 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005004/0.4808, allocations: 1.632 MB / 0.835 GB, free: 8.457 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0009867/0.4818, allocations: 124 kB / 0.8351 GB, free: 8.336 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004023/0.4859, allocations: 1.022 MB / 0.8361 GB, free: 7.312 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007584/0.4866, allocations: 402.7 kB / 0.8365 GB, free: 6.918 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.4884, allocations: 0.7389 MB / 0.8372 GB, free: 6.176 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.004662/0.4931, allocations: 2.174 MB / 0.8393 GB, free: 3.996 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.4931, allocations: 4 kB / 0.8393 GB, free: 3.992 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.856e-06/0.4931, allocations: 0 / 0.8393 GB, free: 3.992 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.048e-05/0.4932, allocations: 0 / 0.8393 GB, free: 3.992 MB / 0.6544 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.004824/0.498, allocations: 1.659 MB / 0.8409 GB, free: 2.281 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.4981, allocations: 8.031 kB / 0.8409 GB, free: 2.273 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007699/0.4988, allocations: 147.1 kB / 0.8411 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.5009, allocations: 0.8945 MB / 0.842 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.501, allocations: 81.31 kB / 0.842 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.5013, allocations: 116 kB / 0.8421 GB, free: 0.9961 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.5024, allocations: 0.6395 MB / 0.8428 GB, free: 336 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.5024, allocations: 0 / 0.8428 GB, free: 336 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.097e-05/0.5025, allocations: 20 kB / 0.8428 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.5025, allocations: 27.86 kB / 0.8428 GB, free: 288 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008629/0.5033, allocations: 464.8 kB / 0.8433 GB, free: 15.83 MB / 0.67 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.004653/0.508, allocations: 2.875 MB / 0.8461 GB, free: 12.8 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006096/0.5086, allocations: 310.1 kB / 0.8464 GB, free: 12.49 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.5089, allocations: 153.3 kB / 0.8465 GB, free: 12.34 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003389/0.5093, allocations: 340.7 kB / 0.8468 GB, free: 11.93 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.5093, allocations: 34.84 kB / 0.8469 GB, free: 11.89 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 2.815e-06/0.5093, allocations: 0 / 0.8469 GB, free: 11.89 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001343/0.5107, allocations: 0.5236 MB / 0.8474 GB, free: 11.36 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.5108, allocations: 59.41 kB / 0.8474 GB, free: 11.29 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.5118, allocations: 0.8869 MB / 0.8483 GB, free: 10.38 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.512, allocations: 61.64 kB / 0.8484 GB, free: 10.32 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005323/0.5125, allocations: 0.541 MB / 0.8489 GB, free: 9.766 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.5126, allocations: 122.2 kB / 0.849 GB, free: 9.645 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004809/0.5131, allocations: 283 kB / 0.8493 GB, free: 9.363 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.5133, allocations: 338.1 kB / 0.8496 GB, free: 9.027 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.5137, allocations: 193.4 kB / 0.8498 GB, free: 8.836 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.5152, allocations: 1.151 MB / 0.8509 GB, free: 7.32 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008127/0.5161, allocations: 455.4 kB / 0.8513 GB, free: 6.852 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.5161, allocations: 0 / 0.8513 GB, free: 6.852 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001469/0.5175, allocations: 0.6462 MB / 0.852 GB, free: 6.199 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.5176, allocations: 8.188 kB / 0.852 GB, free: 6.191 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.5176, allocations: 4 kB / 0.852 GB, free: 6.188 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.991e-05/0.5177, allocations: 8 kB / 0.852 GB, free: 6.18 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.5192, allocations: 227.7 kB / 0.8522 GB, free: 5.957 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.5214, allocations: 2.957 MB / 0.8551 GB, free: 2.883 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003638/0.525, allocations: 0.7027 MB / 0.8558 GB, free: 2.18 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-05/0.5251, allocations: 27.98 kB / 0.8558 GB, free: 2.152 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008787/0.526, allocations: 372.5 kB / 0.8562 GB, free: 1.789 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001512/0.5275, allocations: 1.162 MB / 0.8573 GB, free: 256 kB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008738/0.5284, allocations: 449 kB / 0.8577 GB, free: 15.77 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.408e-06/0.5284, allocations: 7.922 kB / 0.8577 GB, free: 15.76 MB / 0.6856 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001644/0.5301, allocations: 0.6549 MB / 0.8584 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.5301, allocations: 8 kB / 0.8584 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.5301, allocations: 0 / 0.8584 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.5302, allocations: 8 kB / 0.8584 GB, free: 15.08 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007126/0.5309, allocations: 164.1 kB / 0.8585 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.5309, allocations: 7.938 kB / 0.8586 GB, free: 14.91 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004685/0.5356, allocations: 0.9574 MB / 0.8595 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.946e-05/0.5357, allocations: 27.98 kB / 0.8595 GB, free: 13.93 MB / 0.6856 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.0003613/0.5361, allocations: 245 kB / 0.8597 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003399/0.5364, allocations: 94.78 kB / 0.8598 GB, free: 13.59 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.5377, allocations: 0.497 MB / 0.8603 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.5377, allocations: 8 kB / 0.8603 GB, free: 13.08 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5377, allocations: 3.938 kB / 0.8603 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.5377, allocations: 3.984 kB / 0.8603 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.5399, allocations: 1.263 MB / 0.8616 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.5399, allocations: 4 kB / 0.8616 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005585/0.5404, allocations: 119.8 kB / 0.8617 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.5405, allocations: 0 / 0.8617 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.5405, allocations: 19.92 kB / 0.8617 GB, free: 11.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.542, allocations: 2.942 MB / 0.8646 GB, free: 8.543 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.542, allocations: 0 / 0.8646 GB, free: 8.543 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008838/0.5429, allocations: 0.5623 MB / 0.8651 GB, free: 7.953 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.5432, allocations: 207.7 kB / 0.8653 GB, free: 7.73 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.5433, allocations: 8 kB / 0.8653 GB, free: 7.723 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.5438, allocations: 35.89 kB / 0.8654 GB, free: 7.688 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.628e-05/0.5439, allocations: 28.05 kB / 0.8654 GB, free: 7.66 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.5439, allocations: 16 kB / 0.8654 GB, free: 7.645 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007867/0.5447, allocations: 0.5962 MB / 0.866 GB, free: 7.039 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5447, allocations: 0 / 0.866 GB, free: 7.039 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001893/0.5466, allocations: 0.542 MB / 0.8665 GB, free: 6.496 MB / 0.6856 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.0008087/0.5474, allocations: 321.1 kB / 0.8668 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002926/0.5504, allocations: 0.8621 MB / 0.8677 GB, free: 5.316 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5504, allocations: 4.125 kB / 0.8677 GB, free: 5.312 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005632/0.5509, allocations: 224.3 kB / 0.8679 GB, free: 5.094 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.5529, allocations: 419 kB / 0.8683 GB, free: 4.684 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.5556, allocations: 1.534 MB / 0.8698 GB, free: 3.113 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.5562, allocations: 1.018 MB / 0.8708 GB, free: 2.066 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.00116/0.5573, allocations: 207 kB / 0.871 GB, free: 1.859 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.5575, allocations: 87.34 kB / 0.8711 GB, free: 1.773 MB / 0.6856 GB Notification: Performance of SimCode: time 7.41e-07/0.5575, allocations: 0 / 0.8711 GB, free: 1.773 MB / 0.6856 GB Notification: Performance of Templates: time 0.04984/0.6074, allocations: 25.07 MB / 0.8955 GB, free: 9.199 MB / 0.7169 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)