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.000893/0.0008932, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006564/0.006564, allocations: 170 kB / 16.26 MB, free: 6.613 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.819/1.819, allocations: 205.4 MB / 222.4 MB, free: 5.797 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.772/1.772, allocations: 292.7 MB / 0.5502 GB, free: 14.48 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.0005551/0.0005551, allocations: 20 kB / 0.6743 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3049, allocations: 116.3 MB / 0.7879 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03522/0.3402, allocations: 29.32 MB / 0.8165 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01978/0.3601, allocations: 11.87 MB / 0.8281 GB, free: 2.27 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.3625, allocations: 39.62 kB / 0.8281 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.3641, allocations: 345.9 kB / 0.8285 GB, free: 1.891 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.005219/0.3694, allocations: 1.222 MB / 0.8297 GB, free: 0.6641 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003487/0.3729, allocations: 1.031 MB / 0.8307 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006139/0.379, allocations: 4.18 MB / 0.8348 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002328/0.3814, allocations: 1.143 MB / 0.8359 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004035/0.3854, allocations: 1.48 MB / 0.8373 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003478/0.3889, allocations: 1.593 MB / 0.8389 GB, free: 7.211 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005557/0.3895, allocations: 64 kB / 0.8389 GB, free: 7.148 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002592/0.3921, allocations: 0.9319 MB / 0.8398 GB, free: 6.215 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004403/0.3926, allocations: 334.7 kB / 0.8402 GB, free: 5.887 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.3937, allocations: 0.6938 MB / 0.8408 GB, free: 5.184 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003592/0.3973, allocations: 2.091 MB / 0.8429 GB, free: 3.086 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-05/0.3973, allocations: 8 kB / 0.8429 GB, free: 3.078 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.635e-06/0.3973, allocations: 0 / 0.8429 GB, free: 3.078 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.641e-05/0.3974, allocations: 0 / 0.8429 GB, free: 3.078 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.002967/0.4003, allocations: 1.313 MB / 0.8442 GB, free: 1.711 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 8.89e-05/0.4004, allocations: 12.03 kB / 0.8442 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.4008, allocations: 147.1 kB / 0.8443 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.4024, allocations: 0.8829 MB / 0.8452 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-05/0.4025, allocations: 85.31 kB / 0.8453 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.4027, allocations: 116 kB / 0.8454 GB, free: 444 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.4039, allocations: 0.6474 MB / 0.846 GB, free: 15.75 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.4039, allocations: 0 / 0.846 GB, free: 15.75 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.161e-05/0.404, allocations: 23.94 kB / 0.846 GB, free: 15.73 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.404, allocations: 19.94 kB / 0.846 GB, free: 15.71 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009494/0.405, allocations: 480.8 kB / 0.8465 GB, free: 15.24 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.004874/0.4099, allocations: 2.875 MB / 0.8493 GB, free: 12.21 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006271/0.4105, allocations: 303.3 kB / 0.8496 GB, free: 11.91 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.4108, allocations: 165.3 kB / 0.8498 GB, free: 11.75 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003293/0.4112, allocations: 344.7 kB / 0.8501 GB, free: 11.34 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.4112, allocations: 34.84 kB / 0.8501 GB, free: 11.29 MB / 0.67 GB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/0.4112, allocations: 3.938 kB / 0.8501 GB, free: 11.29 MB / 0.67 GB Notification: Performance of matching and sorting (n=33): time 0.001368/0.4126, allocations: 0.5437 MB / 0.8507 GB, free: 10.74 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.4127, allocations: 55.41 kB / 0.8507 GB, free: 10.67 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.4138, allocations: 0.8947 MB / 0.8516 GB, free: 9.758 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.414, allocations: 57.7 kB / 0.8516 GB, free: 9.695 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.000651/0.4146, allocations: 0.5369 MB / 0.8522 GB, free: 9.148 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.4148, allocations: 118.3 kB / 0.8523 GB, free: 9.031 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.4149, allocations: 65.61 kB / 0.8523 GB, free: 8.961 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4151, allocations: 326.1 kB / 0.8527 GB, free: 8.637 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/0.4155, allocations: 197.2 kB / 0.8528 GB, free: 8.445 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.417, allocations: 1.155 MB / 0.854 GB, free: 6.922 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008475/0.4179, allocations: 471.5 kB / 0.8544 GB, free: 6.438 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.4179, allocations: 3.938 kB / 0.8544 GB, free: 6.434 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00138/0.4193, allocations: 0.6618 MB / 0.8551 GB, free: 5.762 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.4194, allocations: 144.3 kB / 0.8552 GB, free: 5.59 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.4194, allocations: 4 kB / 0.8552 GB, free: 5.586 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.4194, allocations: 7.984 kB / 0.8552 GB, free: 5.578 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.4209, allocations: 243.6 kB / 0.8554 GB, free: 5.34 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.4228, allocations: 2.961 MB / 0.8583 GB, free: 2.262 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003509/0.4263, allocations: 0.7416 MB / 0.8591 GB, free: 1.52 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.4264, allocations: 27.98 kB / 0.8591 GB, free: 1.492 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.4265, allocations: 7.938 kB / 0.8591 GB, free: 1.484 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001013/0.4275, allocations: 0.5011 MB / 0.8596 GB, free: 0.9805 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.4275, allocations: 4 kB / 0.8596 GB, free: 0.9766 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.4275, allocations: 4 kB / 0.8596 GB, free: 0.9727 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006508/0.4282, allocations: 164 kB / 0.8598 GB, free: 0.8125 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.4282, allocations: 11.94 kB / 0.8598 GB, free: 0.8008 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003468/0.4317, allocations: 0.7378 MB / 0.8605 GB, free: 64 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.26e-05/0.4318, allocations: 20 kB / 0.8605 GB, free: 44 kB / 0.67 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.0007026/0.4325, allocations: 340.7 kB / 0.8608 GB, free: 15.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.4327, allocations: 94.78 kB / 0.8609 GB, free: 15.61 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.4339, allocations: 0.5171 MB / 0.8614 GB, free: 15.08 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.4339, allocations: 4 kB / 0.8614 GB, free: 15.08 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4339, allocations: 4 kB / 0.8614 GB, free: 15.07 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.434, allocations: 192 / 0.8614 GB, free: 15.07 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.4361, allocations: 1.279 MB / 0.8627 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.4361, allocations: 3.984 kB / 0.8627 GB, free: 13.72 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.4366, allocations: 111.9 kB / 0.8628 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.4367, allocations: 4 kB / 0.8628 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.307e-05/0.4367, allocations: 11.98 kB / 0.8628 GB, free: 13.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.4381, allocations: 2.946 MB / 0.8657 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.4381, allocations: 7.938 kB / 0.8657 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009452/0.4391, allocations: 0.5776 MB / 0.8663 GB, free: 9.922 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003705/0.4395, allocations: 227.6 kB / 0.8665 GB, free: 9.68 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.36e-05/0.4396, allocations: 8 kB / 0.8665 GB, free: 9.672 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005347/0.4401, allocations: 63.88 kB / 0.8665 GB, free: 9.609 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.838e-05/0.4402, allocations: 27.89 kB / 0.8666 GB, free: 9.582 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.4e-05/0.4403, allocations: 16 kB / 0.8666 GB, free: 9.566 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00075/0.441, allocations: 0.5962 MB / 0.8672 GB, free: 8.961 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.441, allocations: 0 / 0.8672 GB, free: 8.961 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001775/0.4428, allocations: 0.5384 MB / 0.8677 GB, free: 8.422 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.0008127/0.4436, allocations: 328.7 kB / 0.868 GB, free: 8.098 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002754/0.4464, allocations: 0.859 MB / 0.8688 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4464, allocations: 4 kB / 0.8688 GB, free: 7.238 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005852/0.447, allocations: 232.3 kB / 0.8691 GB, free: 7.012 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002996/0.45, allocations: 494.7 kB / 0.8695 GB, free: 6.535 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/0.453, allocations: 1.86 MB / 0.8714 GB, free: 4.637 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.4536, allocations: 1.022 MB / 0.8724 GB, free: 3.586 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001267/0.4549, allocations: 215 kB / 0.8726 GB, free: 3.371 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.4551, allocations: 79.41 kB / 0.8726 GB, free: 3.293 MB / 0.6856 GB Notification: Performance of SimCode: time 9.92e-07/0.4551, allocations: 3.938 kB / 0.8726 GB, free: 3.289 MB / 0.6856 GB Notification: Performance of Templates: time 0.04841/0.5035, allocations: 24.56 MB / 0.8966 GB, free: 11.18 MB / 0.7169 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: