Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001325/0.001325, 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.001733/0.001733, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.635/1.635, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.713/1.713, allocations: 251.7 MB / 0.5092 GB, free: 3.129 MB / 414.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.001509/0.001509, allocations: 76.38 kB / 0.6223 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5845/0.586, allocations: 104.7 MB / 0.7245 GB, free: 12.89 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03222/0.6183, allocations: 26.61 MB / 0.7505 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01877/0.6372, allocations: 10.39 MB / 0.7606 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002391/0.6396, allocations: 35.69 kB / 0.7607 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.6414, allocations: 373.4 kB / 0.761 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004688/0.6461, allocations: 1.199 MB / 0.7622 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003632/0.6497, allocations: 1.009 MB / 0.7632 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004891/0.6546, allocations: 2.614 MB / 0.7657 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002129/0.6568, allocations: 0.9536 MB / 0.7667 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003111/0.6599, allocations: 1.172 MB / 0.7678 GB, free: 408 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.6628, allocations: 1.04 MB / 0.7688 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004378/0.6633, allocations: 80 kB / 0.7689 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003225/0.6665, allocations: 0.9553 MB / 0.7698 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004293/0.667, allocations: 267 kB / 0.7701 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001233/0.6682, allocations: 0.5443 MB / 0.7706 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003255/0.6715, allocations: 1.597 MB / 0.7722 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.6715, allocations: 0 / 0.7722 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6716, allocations: 0 / 0.7722 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.936e-05/0.6716, allocations: 0 / 0.7722 GB, free: 11.91 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002832/0.6744, allocations: 1.386 MB / 0.7735 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.6745, allocations: 8.031 kB / 0.7735 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00034/0.6748, allocations: 115.7 kB / 0.7737 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.676, allocations: 0.6622 MB / 0.7743 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.289e-05/0.6761, allocations: 61 kB / 0.7744 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/0.6762, allocations: 88 kB / 0.7744 GB, free: 9.496 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.6773, allocations: 0.553 MB / 0.775 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.6773, allocations: 0 / 0.775 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.974e-05/0.6774, allocations: 24 kB / 0.775 GB, free: 8.895 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.6774, allocations: 12 kB / 0.775 GB, free: 8.883 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007957/0.6782, allocations: 399.7 kB / 0.7754 GB, free: 8.492 MB / 0.5919 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.004409/0.6826, allocations: 2.54 MB / 0.7779 GB, free: 5.816 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005661/0.6832, allocations: 270.5 kB / 0.7781 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.6835, allocations: 132.8 kB / 0.7783 GB, free: 5.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004156/0.6839, allocations: 344.4 kB / 0.7786 GB, free: 5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.684, allocations: 46.5 kB / 0.7786 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=29): time 2.725e-06/0.684, allocations: 0 / 0.7786 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29): time 0.001317/0.6853, allocations: 465.6 kB / 0.7791 GB, free: 4.484 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.6854, allocations: 55.41 kB / 0.7791 GB, free: 4.418 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00092/0.6863, allocations: 0.7591 MB / 0.7799 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.6865, allocations: 45.7 kB / 0.7799 GB, free: 3.598 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004054/0.6869, allocations: 429.1 kB / 0.7803 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.687, allocations: 102.6 kB / 0.7804 GB, free: 3.074 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003585/0.6873, allocations: 198.5 kB / 0.7806 GB, free: 2.871 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001934/0.6875, allocations: 329.9 kB / 0.7809 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003848/0.6879, allocations: 164.1 kB / 0.7811 GB, free: 2.379 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.6891, allocations: 0.7829 MB / 0.7819 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008323/0.69, allocations: 403.6 kB / 0.7822 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.69, allocations: 0 / 0.7822 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001382/0.6914, allocations: 0.5574 MB / 0.7828 GB, free: 428 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.6914, allocations: 11.94 kB / 0.7828 GB, free: 416 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.6914, allocations: 192 / 0.7828 GB, free: 416 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.6915, allocations: 12 kB / 0.7828 GB, free: 404 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.6928, allocations: 191.7 kB / 0.783 GB, free: 212 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.6944, allocations: 2.363 MB / 0.7853 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.6976, allocations: 0.6401 MB / 0.7859 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.6978, allocations: 27.98 kB / 0.7859 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007386/0.6985, allocations: 317.2 kB / 0.7863 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001138/0.6997, allocations: 0.7934 MB / 0.787 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007123/0.7004, allocations: 400.3 kB / 0.7874 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.326e-06/0.7004, allocations: 0 / 0.7874 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of matching and sorting (n=62) (initialization_lambda0): time 0.001339/0.7018, allocations: 0.5583 MB / 0.788 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.7018, allocations: 7.938 kB / 0.788 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.7018, allocations: 4.312 kB / 0.788 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.7018, allocations: 8 kB / 0.788 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005838/0.7024, allocations: 139.8 kB / 0.7881 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.7024, allocations: 4 kB / 0.7881 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00397/0.7064, allocations: 0.894 MB / 0.789 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.684e-05/0.7065, allocations: 23.98 kB / 0.789 GB, free: 9.68 MB / 0.6075 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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003302/0.7068, allocations: 224.7 kB / 0.7892 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.7071, allocations: 86.91 kB / 0.7893 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/0.7083, allocations: 465.5 kB / 0.7897 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/0.7083, allocations: 4 kB / 0.7898 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.7083, allocations: 192 / 0.7898 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.7083, allocations: 3.984 kB / 0.7898 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.7102, allocations: 1.139 MB / 0.7909 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.7103, allocations: 4 kB / 0.7909 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.7108, allocations: 111.8 kB / 0.791 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.7108, allocations: 4 kB / 0.791 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.7108, allocations: 8 kB / 0.791 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.712, allocations: 2.356 MB / 0.7933 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.7121, allocations: 7.969 kB / 0.7933 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008304/0.7129, allocations: 0.5132 MB / 0.7938 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002814/0.7132, allocations: 199.9 kB / 0.794 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.726e-05/0.7133, allocations: 4 kB / 0.794 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.7137, allocations: 23.97 kB / 0.794 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.499e-05/0.7138, allocations: 31.89 kB / 0.794 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.7138, allocations: 12 kB / 0.7941 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006138/0.7144, allocations: 0.5146 MB / 0.7946 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7144, allocations: 4 kB / 0.7946 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001534/0.716, allocations: 467.2 kB / 0.795 GB, free: 3.305 MB / 0.6075 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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007473/0.7167, allocations: 313.4 kB / 0.7953 GB, free: 3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002471/0.7192, allocations: 0.7415 MB / 0.796 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.7192, allocations: 0 / 0.796 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.7198, allocations: 204 kB / 0.7962 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.7217, allocations: 374.2 kB / 0.7966 GB, free: 1.703 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.7245, allocations: 1.292 MB / 0.7978 GB, free: 380 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008216/0.7253, allocations: 0.9618 MB / 0.7988 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001379/0.7267, allocations: 177.9 kB / 0.799 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.727, allocations: 67.42 kB / 0.799 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of SimCode: time 1.863e-06/0.727, allocations: 0 / 0.799 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of Templates: time 0.03718/0.7642, allocations: 20.48 MB / 0.819 GB, free: 10.98 MB / 0.6387 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)