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.001257/0.001257, allocations: 104.9 kB / 16.35 MB, free: 5.879 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.001215/0.001216, allocations: 195.1 kB / 17.29 MB, free: 5.516 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.49/1.49, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.827/1.827, allocations: 292.3 MB / 0.5496 GB, free: 17.38 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.001478/0.001479, allocations: 75.89 kB / 0.6729 GB, free: 5.809 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2646, allocations: 114.5 MB / 0.7848 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.458/0.7226, allocations: 30.23 MB / 0.8143 GB, free: 30.92 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01578/0.7385, allocations: 11.53 MB / 0.8255 GB, free: 23.12 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002788/0.7413, allocations: 47.97 kB / 0.8256 GB, free: 23.09 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.00167/0.743, allocations: 426.3 kB / 0.826 GB, free: 22.83 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004992/0.7481, allocations: 1.359 MB / 0.8273 GB, free: 22.05 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003772/0.7519, allocations: 1.151 MB / 0.8285 GB, free: 21.5 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004997/0.7569, allocations: 3.516 MB / 0.8319 GB, free: 20.08 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002639/0.7595, allocations: 1.329 MB / 0.8332 GB, free: 19.66 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003956/0.7635, allocations: 1.661 MB / 0.8348 GB, free: 19.1 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004236/0.7678, allocations: 1.605 MB / 0.8364 GB, free: 18.6 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0009266/0.7687, allocations: 129.4 kB / 0.8365 GB, free: 18.59 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003447/0.7722, allocations: 1.019 MB / 0.8375 GB, free: 18.3 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0006166/0.7728, allocations: 400.1 kB / 0.8379 GB, free: 18.1 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001513/0.7743, allocations: 0.7429 MB / 0.8386 GB, free: 17.71 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.004104/0.7785, allocations: 2.196 MB / 0.8407 GB, free: 16.99 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.7785, allocations: 0 / 0.8407 GB, free: 16.99 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7785, allocations: 0 / 0.8407 GB, free: 16.99 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.233e-05/0.7785, allocations: 0 / 0.8407 GB, free: 16.99 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.003264/0.7818, allocations: 1.656 MB / 0.8424 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.7819, allocations: 14.22 kB / 0.8424 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004181/0.7823, allocations: 146.7 kB / 0.8425 GB, free: 15.89 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.7842, allocations: 0.8924 MB / 0.8434 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.869e-05/0.7842, allocations: 80.06 kB / 0.8435 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.7845, allocations: 117.4 kB / 0.8436 GB, free: 15.33 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.7855, allocations: 0.6383 MB / 0.8442 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.7855, allocations: 2.75 kB / 0.8442 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.803e-05/0.7856, allocations: 22.19 kB / 0.8442 GB, free: 15.02 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.7856, allocations: 19 kB / 0.8442 GB, free: 15.02 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008662/0.7865, allocations: 464.1 kB / 0.8447 GB, free: 14.87 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.004489/0.791, allocations: 2.864 MB / 0.8475 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005823/0.7916, allocations: 312.2 kB / 0.8478 GB, free: 12.94 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.7919, allocations: 142.9 kB / 0.8479 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002213/0.7921, allocations: 344.3 kB / 0.8482 GB, free: 12.51 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.7921, allocations: 37.44 kB / 0.8483 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.245e-06/0.7921, allocations: 0 / 0.8483 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001391/0.7935, allocations: 0.527 MB / 0.8488 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.7936, allocations: 59.81 kB / 0.8488 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.7946, allocations: 0.8962 MB / 0.8497 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.7948, allocations: 55.08 kB / 0.8498 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.7951, allocations: 492.8 kB / 0.8502 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.682e-05/0.7952, allocations: 112 kB / 0.8504 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003859/0.7956, allocations: 291.2 kB / 0.8506 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.128e-05/0.7957, allocations: 331.5 kB / 0.8509 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000381/0.7961, allocations: 191.4 kB / 0.8511 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.7972, allocations: 1.15 MB / 0.8523 GB, free: 9.484 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007855/0.798, allocations: 461.5 kB / 0.8527 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.798, allocations: 0 / 0.8527 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001407/0.7994, allocations: 0.6508 MB / 0.8533 GB, free: 8.91 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.7994, allocations: 5.594 kB / 0.8533 GB, free: 8.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.7994, allocations: 2.281 kB / 0.8533 GB, free: 8.91 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.7995, allocations: 4.281 kB / 0.8533 GB, free: 8.91 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.8009, allocations: 242.7 kB / 0.8536 GB, free: 8.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.8019, allocations: 2.956 MB / 0.8565 GB, free: 5.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003304/0.8052, allocations: 0.6976 MB / 0.8571 GB, free: 5.516 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-05/0.8053, allocations: 27.02 kB / 0.8572 GB, free: 5.508 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007838/0.8061, allocations: 371 kB / 0.8575 GB, free: 5.289 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001136/0.8073, allocations: 1.16 MB / 0.8587 GB, free: 4.035 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007748/0.8081, allocations: 455.1 kB / 0.8591 GB, free: 3.758 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.999e-06/0.8081, allocations: 5.438 kB / 0.8591 GB, free: 3.754 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001612/0.8097, allocations: 0.6504 MB / 0.8597 GB, free: 3.453 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.8097, allocations: 7.719 kB / 0.8597 GB, free: 3.453 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.8097, allocations: 3.219 kB / 0.8597 GB, free: 3.453 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.8098, allocations: 5.875 kB / 0.8597 GB, free: 3.453 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.8105, allocations: 163.1 kB / 0.8599 GB, free: 3.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.8105, allocations: 5.5 kB / 0.8599 GB, free: 3.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004489/0.815, allocations: 0.9652 MB / 0.8608 GB, free: 2.984 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.8152, allocations: 24.12 kB / 0.8609 GB, free: 2.98 MB / 0.6544 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.0005062/0.8157, allocations: 241.2 kB / 0.8611 GB, free: 2.762 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/0.816, allocations: 100.7 kB / 0.8612 GB, free: 2.707 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.8173, allocations: 0.5103 MB / 0.8617 GB, free: 2.434 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.8174, allocations: 4 kB / 0.8617 GB, free: 2.434 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.8174, allocations: 7.922 kB / 0.8617 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.8174, allocations: 0 / 0.8617 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.8194, allocations: 1.255 MB / 0.8629 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.8195, allocations: 1.406 kB / 0.8629 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000523/0.82, allocations: 112.9 kB / 0.863 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.82, allocations: 2.438 kB / 0.863 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.82, allocations: 9.875 kB / 0.8631 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.8214, allocations: 2.942 MB / 0.8659 GB, free: 14.49 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.8214, allocations: 5.062 kB / 0.8659 GB, free: 14.49 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.8226, allocations: 0.5683 MB / 0.8665 GB, free: 14.11 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000512/0.8231, allocations: 208.4 kB / 0.8667 GB, free: 13.92 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.8233, allocations: 10.77 kB / 0.8667 GB, free: 13.91 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.8237, allocations: 29.69 kB / 0.8667 GB, free: 13.9 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.968e-05/0.8238, allocations: 30.8 kB / 0.8668 GB, free: 13.88 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.8239, allocations: 17.95 kB / 0.8668 GB, free: 13.88 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008252/0.8247, allocations: 0.5951 MB / 0.8674 GB, free: 13.53 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8247, allocations: 0 / 0.8674 GB, free: 13.53 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002163/0.8269, allocations: 0.5378 MB / 0.8679 GB, free: 13.41 MB / 0.67 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.0008759/0.8278, allocations: 316 kB / 0.8682 GB, free: 13.23 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003085/0.8309, allocations: 0.8504 MB / 0.869 GB, free: 12.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.8309, allocations: 1.125 kB / 0.869 GB, free: 12.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.8315, allocations: 224.8 kB / 0.8692 GB, free: 12.81 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.8336, allocations: 423.5 kB / 0.8696 GB, free: 12.62 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/0.8363, allocations: 1.517 MB / 0.8711 GB, free: 11.7 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006193/0.8369, allocations: 1.017 MB / 0.8721 GB, free: 10.85 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001067/0.838, allocations: 206.2 kB / 0.8723 GB, free: 10.78 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.8382, allocations: 89.34 kB / 0.8724 GB, free: 10.75 MB / 0.67 GB Notification: Performance of SimCode: time 7.51e-07/0.8382, allocations: 0 / 0.8724 GB, free: 10.75 MB / 0.67 GB Notification: Performance of Templates: time 0.03968/0.8779, allocations: 25.09 MB / 0.8969 GB, free: 6.727 MB / 0.6856 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)