Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001243/0.001243, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.674/1.674, allocations: 251.9 MB / 0.51 GB, free: 4.867 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.0007899/0.0007902, allocations: 19.98 kB / 0.6241 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7034/0.7042, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.0226/0.7268, allocations: 19.84 MB / 0.7473 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01552/0.7424, allocations: 8.616 MB / 0.7558 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.7439, allocations: 27.75 kB / 0.7558 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.7456, allocations: 0.5096 MB / 0.7563 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004058/0.7497, allocations: 1.094 MB / 0.7574 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007913/0.7576, allocations: 2.451 MB / 0.7597 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002787/0.7604, allocations: 1.206 MB / 0.7609 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009434/0.7613, allocations: 0.5806 MB / 0.7615 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.7627, allocations: 0.6423 MB / 0.7621 GB, free: 8.414 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007623/0.7635, allocations: 0.5057 MB / 0.7626 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.008e-05/0.7635, allocations: 28 kB / 0.7626 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00225/0.7658, allocations: 0.901 MB / 0.7635 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.766, allocations: 155.3 kB / 0.7637 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.7662, allocations: 197.1 kB / 0.7639 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.7675, allocations: 1.025 MB / 0.7649 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.7675, allocations: 0 / 0.7649 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.805e-06/0.7675, allocations: 0 / 0.7649 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.14e-05/0.7675, allocations: 0 / 0.7649 GB, free: 5.598 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002198/0.7697, allocations: 1.239 MB / 0.7661 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.7698, allocations: 8.031 kB / 0.7661 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.77, allocations: 122.6 kB / 0.7662 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.771, allocations: 0.6484 MB / 0.7668 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.044e-05/0.7711, allocations: 49.31 kB / 0.7669 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.7712, allocations: 64 kB / 0.7669 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.7722, allocations: 0.6546 MB / 0.7676 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.7723, allocations: 7.938 kB / 0.7676 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-05/0.7723, allocations: 20 kB / 0.7676 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.7723, allocations: 20 kB / 0.7676 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007466/0.7731, allocations: 448.9 kB / 0.768 GB, free: 2.195 MB / 0.5762 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.003457/0.7766, allocations: 2.538 MB / 0.7705 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/0.7773, allocations: 367.8 kB / 0.7709 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003199/0.7776, allocations: 340.3 kB / 0.7712 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005628/0.7782, allocations: 321.5 kB / 0.7715 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.7782, allocations: 3.938 kB / 0.7715 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001382/0.7796, allocations: 0.7714 MB / 0.7723 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.7797, allocations: 247.2 kB / 0.7725 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009222/0.7807, allocations: 0.832 MB / 0.7733 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.032e-05/0.7807, allocations: 41.64 kB / 0.7734 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003563/0.7811, allocations: 436.4 kB / 0.7738 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.7812, allocations: 122.3 kB / 0.7739 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.7813, allocations: 8 kB / 0.7739 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.7814, allocations: 334 kB / 0.7742 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/0.7818, allocations: 197.1 kB / 0.7744 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.7823, allocations: 367.5 kB / 0.7748 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004444/0.7827, allocations: 259.7 kB / 0.775 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.7827, allocations: 4 kB / 0.775 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001179/0.7839, allocations: 0.7253 MB / 0.7757 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005319/0.7845, allocations: 1.078 MB / 0.7768 GB, free: 8.734 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.7845, allocations: 4 kB / 0.7768 GB, free: 8.73 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.7845, allocations: 8 kB / 0.7768 GB, free: 8.723 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.7855, allocations: 179.7 kB / 0.7769 GB, free: 8.547 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.7866, allocations: 1.778 MB / 0.7787 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006866/0.7873, allocations: 107.4 kB / 0.7788 GB, free: 6.594 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.796e-05/0.7874, allocations: 27.98 kB / 0.7788 GB, free: 6.566 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.7874, allocations: 7.953 kB / 0.7788 GB, free: 6.559 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001024/0.7884, allocations: 0.6386 MB / 0.7794 GB, free: 5.914 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.7885, allocations: 7.984 kB / 0.7794 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.331e-06/0.7885, allocations: 4 kB / 0.7795 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004939/0.789, allocations: 136.1 kB / 0.7796 GB, free: 5.77 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.789, allocations: 4 kB / 0.7796 GB, free: 5.766 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.7895, allocations: 103.3 kB / 0.7797 GB, free: 5.664 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.035e-05/0.7896, allocations: 27.98 kB / 0.7797 GB, free: 5.637 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004343/0.79, allocations: 344.3 kB / 0.78 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.7902, allocations: 94.83 kB / 0.7801 GB, free: 5.191 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.7914, allocations: 0.6787 MB / 0.7808 GB, free: 4.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.7914, allocations: 7.938 kB / 0.7808 GB, free: 4.492 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.7914, allocations: 4 kB / 0.7808 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.7914, allocations: 7.922 kB / 0.7808 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.7935, allocations: 1.515 MB / 0.7823 GB, free: 2.895 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.7935, allocations: 0 / 0.7823 GB, free: 2.895 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.7939, allocations: 95.86 kB / 0.7824 GB, free: 2.801 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.7939, allocations: 8.125 kB / 0.7824 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.7939, allocations: 19.98 kB / 0.7824 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008234/0.7948, allocations: 1.766 MB / 0.7841 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7948, allocations: 4.031 kB / 0.7841 GB, free: 0.9336 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.7963, allocations: 1.163 MB / 0.7853 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.7965, allocations: 219.8 kB / 0.7855 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.7967, allocations: 19.94 kB / 0.7855 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005258/0.7972, allocations: 55.92 kB / 0.7856 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.7974, allocations: 43.92 kB / 0.7856 GB, free: 15.36 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.7974, allocations: 16 kB / 0.7856 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007781/0.7982, allocations: 0.5588 MB / 0.7862 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7982, allocations: 0 / 0.7862 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001323/0.7995, allocations: 451.2 kB / 0.7866 GB, free: 14.34 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007687/0.8003, allocations: 343.9 kB / 0.7869 GB, free: 14 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002113/0.8024, allocations: 1.024 MB / 0.7879 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.8024, allocations: 0 / 0.7879 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.8031, allocations: 355.8 kB / 0.7883 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.8053, allocations: 363.2 kB / 0.7886 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.8086, allocations: 1.714 MB / 0.7903 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007777/0.8094, allocations: 1.013 MB / 0.7913 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0006676/0.8101, allocations: 154.2 kB / 0.7914 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.8102, allocations: 67.41 kB / 0.7915 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of SimCode: time 1.463e-06/0.8102, allocations: 4 kB / 0.7915 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of Templates: time 0.02932/0.8396, allocations: 15.49 MB / 0.8066 GB, free: 9.941 MB / 0.6231 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: