Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7793/0.7793, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 186.1 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 221.3 MB / 441.4 MB, free: 4.672 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009087/0.0009093, allocations: 102.6 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002052/0.002052, allocations: 268.6 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.147e-05/4.158e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4898/0.4899, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8191/1.309, allocations: 358.8 MB / 1.115 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/1.309, allocations: 100.4 kB / 1.115 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.709/3.019, allocations: 437.8 MB / 1.542 GB, free: 163.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.392e-06/3.019, allocations: 2.812 kB / 1.542 GB, free: 163.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.117e-05/3.019, allocations: 35.38 kB / 1.542 GB, free: 163.3 MB / 0.698 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.00234/3.021, allocations: 1.319 MB / 1.544 GB, free: 162.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/3.021, allocations: 9.938 kB / 1.544 GB, free: 162.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/3.022, allocations: 150.7 kB / 1.544 GB, free: 162.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/3.023, allocations: 0.8281 MB / 1.545 GB, free: 162.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.649e-05/3.023, allocations: 84.81 kB / 1.545 GB, free: 162.2 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/3.024, allocations: 124.7 kB / 1.545 GB, free: 162.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008271/3.024, allocations: 0.5928 MB / 1.545 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/3.024, allocations: 3.844 kB / 1.545 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/3.024, allocations: 25.19 kB / 1.545 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/3.024, allocations: 14.66 kB / 1.545 GB, free: 162.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005871/3.025, allocations: 412.3 kB / 1.546 GB, free: 162.1 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.004195/3.029, allocations: 3.089 MB / 1.549 GB, free: 160.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/3.03, allocations: 300 kB / 1.549 GB, free: 160.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/3.03, allocations: 134.3 kB / 1.549 GB, free: 160.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002656/3.03, allocations: 352.9 kB / 1.55 GB, free: 160.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/3.03, allocations: 34.69 kB / 1.55 GB, free: 160.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.845e-06/3.03, allocations: 0 / 1.55 GB, free: 160.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.0007738/3.031, allocations: 407.3 kB / 1.55 GB, free: 160.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/3.031, allocations: 59.25 kB / 1.55 GB, free: 160.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007751/3.032, allocations: 0.7681 MB / 1.551 GB, free: 160.1 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001195/3.032, allocations: 57.95 kB / 1.551 GB, free: 160.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/3.032, allocations: 0.5429 MB / 1.551 GB, free: 159.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.028e-05/3.032, allocations: 116.9 kB / 1.551 GB, free: 159.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/3.032, allocations: 10.22 kB / 1.551 GB, free: 159.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.576e-05/3.033, allocations: 332.1 kB / 1.552 GB, free: 159.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/3.033, allocations: 156.7 kB / 1.552 GB, free: 159.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/3.034, allocations: 1.402 MB / 1.553 GB, free: 158.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/3.034, allocations: 297.4 kB / 1.554 GB, free: 158.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/3.034, allocations: 0 / 1.554 GB, free: 158.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009096/3.035, allocations: 0.6086 MB / 1.554 GB, free: 158.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000202/3.035, allocations: 0.8038 MB / 1.555 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/3.035, allocations: 2.844 kB / 1.555 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/3.035, allocations: 7.438 kB / 1.555 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/3.037, allocations: 203.9 kB / 1.555 GB, free: 157.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/3.038, allocations: 2.96 MB / 1.558 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00346/3.041, allocations: 0.9098 MB / 1.559 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.237e-05/3.041, allocations: 35.17 kB / 1.559 GB, free: 154.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/3.041, allocations: 5.406 kB / 1.559 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000729/3.042, allocations: 465.4 kB / 1.559 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/3.042, allocations: 6.25 kB / 1.559 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.436e-06/3.042, allocations: 4.531 kB / 1.559 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006229/3.043, allocations: 158 kB / 1.56 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/3.043, allocations: 9.531 kB / 1.56 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003391/3.046, allocations: 0.8992 MB / 1.56 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/3.046, allocations: 23.89 kB / 1.561 GB, free: 154.5 MB / 0.698 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 () * 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 (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004551/3.047, allocations: 180.5 kB / 1.561 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/3.047, allocations: 92.09 kB / 1.561 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/3.048, allocations: 0.4892 MB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/3.048, allocations: 7.656 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/3.048, allocations: 2.875 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/3.048, allocations: 3.891 kB / 1.561 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002226/3.05, allocations: 1.244 MB / 1.562 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/3.05, allocations: 0 / 1.562 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005348/3.051, allocations: 117 kB / 1.563 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/3.051, allocations: 7.234 kB / 1.563 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/3.051, allocations: 10.19 kB / 1.563 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009429/3.052, allocations: 2.942 MB / 1.565 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/3.052, allocations: 7 kB / 1.565 GB, free: 150.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007056/3.053, allocations: 0.6007 MB / 1.566 GB, free: 150.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004448/3.053, allocations: 223.8 kB / 1.566 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/3.053, allocations: 14.06 kB / 1.566 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007333/3.054, allocations: 73.78 kB / 1.566 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.564e-05/3.054, allocations: 26.8 kB / 1.566 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/3.054, allocations: 14.31 kB / 1.566 GB, free: 150.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00079/3.055, allocations: 0.5888 MB / 1.567 GB, free: 150.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.022e-06/3.055, allocations: 0 / 1.567 GB, free: 150.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002434/3.057, allocations: 0.6091 MB / 1.568 GB, free: 150.3 MB / 0.698 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 () * 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 (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001264/3.059, allocations: 0.5135 MB / 1.568 GB, free: 150.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002535/3.061, allocations: 0.7791 MB / 1.569 GB, free: 150 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/3.061, allocations: 0 / 1.569 GB, free: 150 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004631/3.062, allocations: 214.2 kB / 1.569 GB, free: 150 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/3.064, allocations: 478.8 kB / 1.569 GB, free: 149.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/3.067, allocations: 1.067 MB / 1.571 GB, free: 149.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005238/3.067, allocations: 1.05 MB / 1.572 GB, free: 148.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002018/3.069, allocations: 273.2 kB / 1.572 GB, free: 148.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/3.069, allocations: 63.64 kB / 1.572 GB, free: 148.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.202e-06/3.069, allocations: 0 / 1.572 GB, free: 148.5 MB / 0.698 GB Notification: Performance of Templates: time 0.04517/3.115, allocations: 29.64 MB / 1.601 GB, free: 125 MB / 0.698 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)