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.00167/0.00167, allocations: 104.5 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.001749/0.001749, allocations: 193.2 kB / 16.91 MB, free: 6.195 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.452/1.452, allocations: 205.1 MB / 222.8 MB, free: 4.699 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.677/1.677, allocations: 292.3 MB / 0.5492 GB, free: 13.55 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.001488/0.001489, allocations: 69.34 kB / 0.6717 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2179, allocations: 114.6 MB / 0.7835 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02916/0.2471, allocations: 29.98 MB / 0.8128 GB, free: 15.75 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01745/0.2646, allocations: 11.58 MB / 0.8241 GB, free: 4.148 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.2666, allocations: 39.62 kB / 0.8241 GB, free: 4.109 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.2679, allocations: 369.9 kB / 0.8245 GB, free: 3.746 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003889/0.2718, allocations: 1.26 MB / 0.8257 GB, free: 2.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002763/0.2746, allocations: 1.034 MB / 0.8267 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.00417/0.2788, allocations: 3.517 MB / 0.8302 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.2804, allocations: 1.298 MB / 0.8314 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002655/0.2831, allocations: 1.683 MB / 0.8331 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.2856, allocations: 1.651 MB / 0.8347 GB, free: 9.27 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0004135/0.2861, allocations: 124 kB / 0.8348 GB, free: 9.148 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002146/0.2882, allocations: 1.014 MB / 0.8358 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004608/0.2887, allocations: 410.7 kB / 0.8362 GB, free: 7.73 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0009549/0.2897, allocations: 0.7389 MB / 0.8369 GB, free: 6.988 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001949/0.2916, allocations: 1.583 MB / 0.8385 GB, free: 5.402 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.2917, allocations: 11.94 kB / 0.8385 GB, free: 5.391 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2917, allocations: 0 / 0.8385 GB, free: 5.391 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.57e-05/0.2917, allocations: 0 / 0.8385 GB, free: 5.391 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.002841/0.2945, allocations: 1.655 MB / 0.8401 GB, free: 3.684 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2946, allocations: 12.03 kB / 0.8401 GB, free: 3.672 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003652/0.295, allocations: 151.1 kB / 0.8402 GB, free: 3.523 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.2966, allocations: 0.8906 MB / 0.8411 GB, free: 2.586 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.2966, allocations: 89.3 kB / 0.8412 GB, free: 2.5 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001955/0.2968, allocations: 120 kB / 0.8413 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.2979, allocations: 0.6356 MB / 0.8419 GB, free: 1.719 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.2979, allocations: 0 / 0.8419 GB, free: 1.719 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.298, allocations: 24 kB / 0.842 GB, free: 1.695 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.298, allocations: 23.94 kB / 0.842 GB, free: 1.672 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008809/0.2989, allocations: 464.8 kB / 0.8424 GB, free: 1.215 MB / 0.6544 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.004505/0.3034, allocations: 2.848 MB / 0.8452 GB, free: 14.21 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.304, allocations: 307.2 kB / 0.8455 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.3043, allocations: 145.3 kB / 0.8456 GB, free: 13.76 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.3046, allocations: 352.7 kB / 0.846 GB, free: 13.34 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.3047, allocations: 30.84 kB / 0.846 GB, free: 13.3 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 1.904e-06/0.3047, allocations: 4 kB / 0.846 GB, free: 13.3 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001326/0.306, allocations: 0.5197 MB / 0.8465 GB, free: 12.77 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.3061, allocations: 59.34 kB / 0.8466 GB, free: 12.7 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009822/0.307, allocations: 0.8946 MB / 0.8474 GB, free: 11.79 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.3072, allocations: 57.7 kB / 0.8475 GB, free: 11.73 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004732/0.3077, allocations: 0.5407 MB / 0.848 GB, free: 11.18 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 8.622e-05/0.3078, allocations: 110.3 kB / 0.8481 GB, free: 11.07 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004078/0.3082, allocations: 291 kB / 0.8484 GB, free: 10.78 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3083, allocations: 334.1 kB / 0.8487 GB, free: 10.45 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.3087, allocations: 193.4 kB / 0.8489 GB, free: 10.25 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.3101, allocations: 1.151 MB / 0.85 GB, free: 8.734 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008317/0.3109, allocations: 451.4 kB / 0.8505 GB, free: 8.27 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3109, allocations: 4 kB / 0.8505 GB, free: 8.266 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001353/0.3123, allocations: 0.654 MB / 0.8511 GB, free: 7.605 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3123, allocations: 4 kB / 0.8511 GB, free: 7.602 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3123, allocations: 4 kB / 0.8511 GB, free: 7.598 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.3123, allocations: 4 kB / 0.8511 GB, free: 7.594 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.3138, allocations: 235.8 kB / 0.8514 GB, free: 7.363 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.3155, allocations: 2.958 MB / 0.8542 GB, free: 4.289 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/0.319, allocations: 0.726 MB / 0.8549 GB, free: 3.562 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.994e-05/0.3191, allocations: 23.98 kB / 0.855 GB, free: 3.539 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007773/0.3199, allocations: 369.3 kB / 0.8553 GB, free: 3.176 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001332/0.3212, allocations: 1.162 MB / 0.8565 GB, free: 1.637 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007571/0.322, allocations: 456.9 kB / 0.8569 GB, free: 1.148 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.016e-06/0.322, allocations: 0 / 0.8569 GB, free: 1.148 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001468/0.3235, allocations: 0.6473 MB / 0.8575 GB, free: 0.4961 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3235, allocations: 8 kB / 0.8575 GB, free: 500 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3235, allocations: 4 kB / 0.8575 GB, free: 496 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.484e-06/0.3235, allocations: 4 kB / 0.8575 GB, free: 492 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007015/0.3242, allocations: 163.8 kB / 0.8577 GB, free: 328 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3242, allocations: 11.92 kB / 0.8577 GB, free: 316 kB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004387/0.3286, allocations: 0.9924 MB / 0.8587 GB, free: 15.31 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-05/0.3288, allocations: 31.98 kB / 0.8587 GB, free: 15.28 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.0003271/0.3291, allocations: 242 kB / 0.8589 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.3293, allocations: 94.78 kB / 0.859 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.3305, allocations: 0.5131 MB / 0.8595 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.3305, allocations: 4 kB / 0.8595 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3306, allocations: 0 / 0.8595 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3306, allocations: 4.172 kB / 0.8595 GB, free: 14.42 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.3326, allocations: 1.252 MB / 0.8608 GB, free: 13.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/0.3326, allocations: 7.984 kB / 0.8608 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005364/0.3331, allocations: 111.9 kB / 0.8609 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3332, allocations: 0 / 0.8609 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.3332, allocations: 19.92 kB / 0.8609 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.3346, allocations: 2.942 MB / 0.8638 GB, free: 9.906 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3346, allocations: 4.031 kB / 0.8638 GB, free: 9.902 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009057/0.3355, allocations: 0.5577 MB / 0.8643 GB, free: 9.316 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002982/0.3358, allocations: 211.8 kB / 0.8645 GB, free: 9.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.336, allocations: 8 kB / 0.8645 GB, free: 9.082 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005808/0.3366, allocations: 59.78 kB / 0.8646 GB, free: 9.023 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/0.3366, allocations: 31.95 kB / 0.8646 GB, free: 8.992 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.3367, allocations: 12 kB / 0.8646 GB, free: 8.98 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007219/0.3374, allocations: 0.5962 MB / 0.8652 GB, free: 8.375 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2e-07/0.3374, allocations: 4 kB / 0.8652 GB, free: 8.371 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001414/0.3388, allocations: 0.5306 MB / 0.8657 GB, free: 7.84 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.0006797/0.3395, allocations: 340.2 kB / 0.8661 GB, free: 7.508 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002696/0.3422, allocations: 0.8617 MB / 0.8669 GB, free: 6.645 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3422, allocations: 0.625 kB / 0.8669 GB, free: 6.645 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005681/0.3428, allocations: 224.3 kB / 0.8671 GB, free: 6.426 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/0.3448, allocations: 423.6 kB / 0.8675 GB, free: 6.016 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.3476, allocations: 1.884 MB / 0.8694 GB, free: 4.086 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/0.3482, allocations: 1.025 MB / 0.8704 GB, free: 3.031 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.3484, allocations: 79.42 kB / 0.8704 GB, free: 2.953 MB / 0.6856 GB Notification: Performance of SimCode: time 5.11e-07/0.3484, allocations: 0 / 0.8704 GB, free: 2.953 MB / 0.6856 GB Notification: Performance of Templates: time 0.04005/0.3885, allocations: 36.17 MB / 0.9058 GB, free: 15.04 MB / 0.7325 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)