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.001014/0.001014, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001151/0.001151, allocations: 172.7 kB / 15.95 MB, free: 208 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.695/1.695, allocations: 205.4 MB / 222.1 MB, free: 5.523 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.5/1.5, allocations: 252 MB / 0.5102 GB, free: 4.742 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.0007123/0.0007124, allocations: 12 kB / 0.6243 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5264/0.5272, allocations: 106.3 MB / 0.7281 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02706/0.5543, allocations: 24.42 MB / 0.752 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01835/0.5727, allocations: 9.865 MB / 0.7616 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.5745, allocations: 35.62 kB / 0.7616 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.5756, allocations: 262.2 kB / 0.7619 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004111/0.5798, allocations: 0.9209 MB / 0.7628 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002969/0.5828, allocations: 0.8709 MB / 0.7636 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004034/0.5868, allocations: 2.719 MB / 0.7663 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.5881, allocations: 0.764 MB / 0.767 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002518/0.5907, allocations: 1.016 MB / 0.768 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001943/0.5926, allocations: 0.9771 MB / 0.769 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001754/0.5928, allocations: 40 kB / 0.769 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.5949, allocations: 0.8305 MB / 0.7698 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003216/0.5953, allocations: 211.1 kB / 0.77 GB, free: 360 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004257/0.5957, allocations: 201.3 kB / 0.7702 GB, free: 152 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00143/0.5971, allocations: 1.115 MB / 0.7713 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.537e-06/0.5971, allocations: 4 kB / 0.7713 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.595e-06/0.5972, allocations: 0 / 0.7713 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.242e-05/0.5972, allocations: 0 / 0.7713 GB, free: 15.03 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.002149/0.5993, allocations: 1.16 MB / 0.7725 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.5994, allocations: 12.03 kB / 0.7725 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.5997, allocations: 114.7 kB / 0.7726 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009844/0.6007, allocations: 0.6278 MB / 0.7732 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.333e-05/0.6008, allocations: 57 kB / 0.7732 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.6009, allocations: 84 kB / 0.7733 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000997/0.6019, allocations: 0.5646 MB / 0.7739 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.6019, allocations: 4 kB / 0.7739 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.718e-05/0.602, allocations: 20 kB / 0.7739 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.602, allocations: 12 kB / 0.7739 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007931/0.6028, allocations: 419.6 kB / 0.7743 GB, free: 11.84 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.003793/0.6066, allocations: 2.525 MB / 0.7768 GB, free: 9.18 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.6072, allocations: 277.4 kB / 0.777 GB, free: 8.902 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/0.6074, allocations: 137.5 kB / 0.7772 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003313/0.6078, allocations: 344.4 kB / 0.7775 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.6078, allocations: 38.56 kB / 0.7775 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=29): time 2.535e-06/0.6078, allocations: 0 / 0.7775 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29): time 0.001098/0.6089, allocations: 482.9 kB / 0.778 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.609, allocations: 59.34 kB / 0.7781 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008682/0.6099, allocations: 0.7475 MB / 0.7788 GB, free: 7.004 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.361e-05/0.6099, allocations: 45.7 kB / 0.7788 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003826/0.6103, allocations: 433.5 kB / 0.7792 GB, free: 6.527 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.679e-05/0.6104, allocations: 102.5 kB / 0.7793 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.6105, allocations: 15.94 kB / 0.7794 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.6106, allocations: 333.9 kB / 0.7797 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000302/0.6109, allocations: 153 kB / 0.7798 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009394/0.6119, allocations: 0.779 MB / 0.7806 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004069/0.6123, allocations: 233.1 kB / 0.7808 GB, free: 4.727 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.6123, allocations: 4 kB / 0.7808 GB, free: 4.723 MB / 0.5919 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009821/0.6133, allocations: 0.5535 MB / 0.7813 GB, free: 4.16 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.6134, allocations: 146.9 kB / 0.7815 GB, free: 3.988 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.6134, allocations: 4 kB / 0.7815 GB, free: 3.984 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.6135, allocations: 4 kB / 0.7815 GB, free: 3.98 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.6146, allocations: 203.8 kB / 0.7817 GB, free: 3.781 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.616, allocations: 2.368 MB / 0.784 GB, free: 1.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002692/0.6187, allocations: 0.6867 MB / 0.7847 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.308e-05/0.6188, allocations: 31.97 kB / 0.7847 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.6188, allocations: 4 kB / 0.7847 GB, free: 0.5938 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008361/0.6196, allocations: 446.2 kB / 0.7851 GB, free: 160 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.6196, allocations: 0 / 0.7851 GB, free: 160 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/0.6197, allocations: 4 kB / 0.7851 GB, free: 156 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005263/0.6202, allocations: 139.8 kB / 0.7853 GB, free: 16 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.6202, allocations: 4 kB / 0.7853 GB, free: 12 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/0.6228, allocations: 0.6868 MB / 0.7859 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.6229, allocations: 23.98 kB / 0.786 GB, free: 15.3 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 (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004962/0.6234, allocations: 289.5 kB / 0.7862 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.6235, allocations: 78.97 kB / 0.7863 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.6245, allocations: 485.6 kB / 0.7868 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.6246, allocations: 4 kB / 0.7868 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.6246, allocations: 4 kB / 0.7868 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.6246, allocations: 3.953 kB / 0.7868 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.6265, allocations: 1.143 MB / 0.7879 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.6265, allocations: 0 / 0.7879 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004694/0.627, allocations: 107.8 kB / 0.788 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.627, allocations: 8.125 kB / 0.788 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.6271, allocations: 8 kB / 0.788 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/0.6285, allocations: 2.348 MB / 0.7903 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6285, allocations: 3.938 kB / 0.7903 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008562/0.6294, allocations: 0.5363 MB / 0.7908 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.6298, allocations: 199.9 kB / 0.791 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.6299, allocations: 15.98 kB / 0.7911 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004684/0.6304, allocations: 51.89 kB / 0.7911 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.6305, allocations: 27.95 kB / 0.7911 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.942e-05/0.6306, allocations: 15.98 kB / 0.7911 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007596/0.6313, allocations: 0.499 MB / 0.7916 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6313, allocations: 3.938 kB / 0.7916 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001859/0.6332, allocations: 471.1 kB / 0.7921 GB, free: 8.809 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 (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009864/0.6342, allocations: 320.9 kB / 0.7924 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002542/0.6368, allocations: 0.7125 MB / 0.7931 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6368, allocations: 3.938 kB / 0.7931 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005219/0.6373, allocations: 208.7 kB / 0.7933 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.6395, allocations: 419.4 kB / 0.7937 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.6422, allocations: 1.506 MB / 0.7952 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006753/0.6429, allocations: 0.9735 MB / 0.7961 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001117/0.6441, allocations: 178 kB / 0.7963 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.6442, allocations: 67.41 kB / 0.7963 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of SimCode: time 1.032e-06/0.6443, allocations: 0 / 0.7963 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of Templates: time 0.03736/0.6816, allocations: 19.46 MB / 0.8153 GB, free: 1.227 MB / 0.6231 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: