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.001249/0.001249, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001196/0.001196, allocations: 194.2 kB / 16.14 MB, free: 6.703 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.509/1.509, allocations: 205.1 MB / 222 MB, free: 4.996 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.738/1.738, allocations: 292.2 MB / 0.5484 GB, free: 13.64 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.00131/0.00131, allocations: 64.5 kB / 0.6708 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.24, allocations: 114.6 MB / 0.7827 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03235/0.2724, allocations: 30.05 MB / 0.812 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01768/0.2902, allocations: 12.01 MB / 0.8237 GB, free: 3.82 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.2917, allocations: 39.62 kB / 0.8238 GB, free: 3.781 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.00143/0.2932, allocations: 345.9 kB / 0.8241 GB, free: 3.441 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003895/0.2971, allocations: 1.224 MB / 0.8253 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002974/0.3001, allocations: 1.03 MB / 0.8263 GB, free: 1.195 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004659/0.3048, allocations: 4.18 MB / 0.8304 GB, free: 13 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002062/0.3068, allocations: 1.165 MB / 0.8315 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00313/0.31, allocations: 1.491 MB / 0.833 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003147/0.3132, allocations: 1.616 MB / 0.8346 GB, free: 8.703 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.00067/0.3139, allocations: 72 kB / 0.8346 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002472/0.3163, allocations: 0.9436 MB / 0.8356 GB, free: 7.688 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007662/0.3171, allocations: 346.7 kB / 0.8359 GB, free: 7.348 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001586/0.3187, allocations: 0.692 MB / 0.8366 GB, free: 6.652 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003885/0.3226, allocations: 2.115 MB / 0.8386 GB, free: 4.531 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3227, allocations: 0 / 0.8386 GB, free: 4.531 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3227, allocations: 0 / 0.8386 GB, free: 4.531 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.359e-05/0.3227, allocations: 0 / 0.8386 GB, free: 4.531 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.004066/0.3268, allocations: 1.648 MB / 0.8402 GB, free: 2.828 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3269, allocations: 8.031 kB / 0.8403 GB, free: 2.82 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005314/0.3274, allocations: 151.1 kB / 0.8404 GB, free: 2.672 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.3292, allocations: 0.8945 MB / 0.8413 GB, free: 1.738 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.244e-05/0.3293, allocations: 81.31 kB / 0.8413 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/0.3295, allocations: 120 kB / 0.8415 GB, free: 1.539 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.3307, allocations: 0.6317 MB / 0.8421 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3307, allocations: 0 / 0.8421 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.456e-05/0.3308, allocations: 31.94 kB / 0.8421 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.3308, allocations: 15.94 kB / 0.8421 GB, free: 0.832 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009512/0.3317, allocations: 464.8 kB / 0.8426 GB, free: 384 kB / 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.005115/0.3369, allocations: 2.863 MB / 0.8454 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.3376, allocations: 307.9 kB / 0.8457 GB, free: 13.05 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.3379, allocations: 145.3 kB / 0.8458 GB, free: 12.91 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003419/0.3383, allocations: 344.7 kB / 0.8461 GB, free: 12.5 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.3383, allocations: 30.84 kB / 0.8462 GB, free: 12.46 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.3383, allocations: 0 / 0.8462 GB, free: 12.46 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001589/0.3399, allocations: 0.528 MB / 0.8467 GB, free: 11.93 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.34, allocations: 55.41 kB / 0.8467 GB, free: 11.86 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.3412, allocations: 0.8869 MB / 0.8476 GB, free: 10.95 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.3414, allocations: 53.7 kB / 0.8476 GB, free: 10.89 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005173/0.342, allocations: 0.5446 MB / 0.8482 GB, free: 10.34 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 9.184e-05/0.3421, allocations: 118.3 kB / 0.8483 GB, free: 10.22 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005182/0.3426, allocations: 291 kB / 0.8486 GB, free: 9.934 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3427, allocations: 334.1 kB / 0.8489 GB, free: 9.602 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004509/0.3432, allocations: 193.4 kB / 0.8491 GB, free: 9.41 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.3446, allocations: 1.151 MB / 0.8502 GB, free: 7.891 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008575/0.3454, allocations: 455.4 kB / 0.8506 GB, free: 7.422 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.3454, allocations: 0 / 0.8506 GB, free: 7.422 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001454/0.3469, allocations: 0.6502 MB / 0.8513 GB, free: 6.766 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3469, allocations: 16.02 kB / 0.8513 GB, free: 6.75 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.347, allocations: 0 / 0.8513 GB, free: 6.75 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.347, allocations: 4 kB / 0.8513 GB, free: 6.746 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.3484, allocations: 231.7 kB / 0.8515 GB, free: 6.52 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.3501, allocations: 2.965 MB / 0.8544 GB, free: 3.438 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003426/0.3536, allocations: 0.7144 MB / 0.8551 GB, free: 2.723 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.3537, allocations: 31.98 kB / 0.8551 GB, free: 2.691 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001136/0.3548, allocations: 373.2 kB / 0.8555 GB, free: 2.324 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001739/0.3566, allocations: 1.154 MB / 0.8566 GB, free: 0.793 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009622/0.3576, allocations: 464.9 kB / 0.857 GB, free: 300 kB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.877e-06/0.3576, allocations: 0 / 0.857 GB, free: 300 kB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001921/0.3595, allocations: 0.6471 MB / 0.8577 GB, free: 15.64 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3595, allocations: 4 kB / 0.8577 GB, free: 15.63 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3595, allocations: 7.984 kB / 0.8577 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.3596, allocations: 8 kB / 0.8577 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007263/0.3603, allocations: 151.8 kB / 0.8578 GB, free: 15.47 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.3603, allocations: 16.25 kB / 0.8579 GB, free: 15.45 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/0.3649, allocations: 0.9885 MB / 0.8588 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.618e-05/0.365, allocations: 27.98 kB / 0.8589 GB, free: 14.44 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.0003671/0.3654, allocations: 248.3 kB / 0.8591 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.3657, allocations: 94.78 kB / 0.8592 GB, free: 14.1 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.3669, allocations: 0.5054 MB / 0.8597 GB, free: 13.59 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3669, allocations: 4 kB / 0.8597 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3669, allocations: 0 / 0.8597 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3669, allocations: 3.984 kB / 0.8597 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.3692, allocations: 1.252 MB / 0.8609 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3692, allocations: 0 / 0.8609 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005449/0.3698, allocations: 119.8 kB / 0.861 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.3698, allocations: 4 kB / 0.861 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/0.3699, allocations: 20.06 kB / 0.861 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001557/0.3714, allocations: 2.938 MB / 0.8639 GB, free: 9.062 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3714, allocations: 0 / 0.8639 GB, free: 9.062 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009838/0.3724, allocations: 0.5735 MB / 0.8645 GB, free: 8.461 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003787/0.3728, allocations: 207.7 kB / 0.8647 GB, free: 8.238 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.373, allocations: 8 kB / 0.8647 GB, free: 8.23 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006092/0.3736, allocations: 67.8 kB / 0.8647 GB, free: 8.164 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/0.3737, allocations: 27.97 kB / 0.8648 GB, free: 8.137 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.23e-05/0.3737, allocations: 12 kB / 0.8648 GB, free: 8.125 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008908/0.3746, allocations: 0.6001 MB / 0.8654 GB, free: 7.516 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3746, allocations: 0 / 0.8654 GB, free: 7.516 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001867/0.3765, allocations: 0.5384 MB / 0.8659 GB, free: 6.977 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.0009086/0.3774, allocations: 320.8 kB / 0.8662 GB, free: 6.66 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002812/0.3802, allocations: 0.8385 MB / 0.867 GB, free: 5.824 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3803, allocations: 3.938 kB / 0.867 GB, free: 5.82 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0006003/0.3809, allocations: 224.3 kB / 0.8672 GB, free: 5.602 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/0.3836, allocations: 495.2 kB / 0.8677 GB, free: 5.121 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.3865, allocations: 1.857 MB / 0.8695 GB, free: 3.23 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008522/0.3874, allocations: 1.022 MB / 0.8705 GB, free: 2.18 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001237/0.3887, allocations: 207.1 kB / 0.8707 GB, free: 1.973 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.3889, allocations: 79.41 kB / 0.8708 GB, free: 1.895 MB / 0.6856 GB Notification: Performance of SimCode: time 1.183e-06/0.3889, allocations: 4 kB / 0.8708 GB, free: 1.891 MB / 0.6856 GB Notification: Performance of Templates: time 0.03986/0.4288, allocations: 24.68 MB / 0.8949 GB, free: 9.676 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)