Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008793/0.008794, allocations: 166.3 kB / 15.11 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.304/1.304, allocations: 170.8 MB / 186.6 MB, free: 1.117 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001615/0.001615, allocations: 114.6 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3085/0.3085, allocations: 38.05 MB / 303.7 MB, free: 42.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003797, allocations: 19.98 kB / 362.9 MB, free: 5.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1012, allocations: 48.7 MB / 411.6 MB, free: 4.809 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.414/6.515, allocations: 2.477 GB / 2.879 GB, free: 61.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/6.515, allocations: 85.33 kB / 2.879 GB, free: 61.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7322/7.247, allocations: 212.2 MB / 3.086 GB, free: 20.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.934e-06/7.248, allocations: 0 / 3.086 GB, free: 20.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.225e-05/7.248, allocations: 12 kB / 3.086 GB, free: 20.01 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005802/7.253, allocations: 1.185 MB / 3.087 GB, free: 18.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/7.253, allocations: 12.03 kB / 3.087 GB, free: 18.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/7.255, allocations: 203.3 kB / 3.088 GB, free: 18.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005583/7.256, allocations: 382.8 kB / 3.088 GB, free: 18.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/7.256, allocations: 28.66 kB / 3.088 GB, free: 18.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/7.256, allocations: 32 kB / 3.088 GB, free: 18.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/7.257, allocations: 0.5958 MB / 3.089 GB, free: 17.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/7.257, allocations: 0 / 3.089 GB, free: 17.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.28e-05/7.257, allocations: 16 kB / 3.089 GB, free: 17.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/7.257, allocations: 8.688 kB / 3.089 GB, free: 17.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/7.258, allocations: 0.5524 MB / 3.089 GB, free: 16.88 MB / 426.7 MB 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.002205/7.261, allocations: 2.535 MB / 3.092 GB, free: 14.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/7.262, allocations: 454.2 kB / 3.092 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4081/7.67, allocations: 51.29 MB / 3.142 GB, free: 27.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/7.67, allocations: 41.62 kB / 3.142 GB, free: 27.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 4.138e-06/7.67, allocations: 0 / 3.142 GB, free: 27.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002634/7.673, allocations: 0.7887 MB / 3.143 GB, free: 27.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/7.673, allocations: 105.9 kB / 3.143 GB, free: 27.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/7.673, allocations: 256.6 kB / 3.143 GB, free: 27.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/7.673, allocations: 32.67 kB / 3.143 GB, free: 27.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/7.673, allocations: 210.9 kB / 3.144 GB, free: 27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.831e-05/7.673, allocations: 88.95 kB / 3.144 GB, free: 26.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/7.673, allocations: 10.56 kB / 3.144 GB, free: 26.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.105e-05/7.674, allocations: 342.6 kB / 3.144 GB, free: 26.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/7.674, allocations: 140.1 kB / 3.144 GB, free: 26.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/7.674, allocations: 261.8 kB / 3.144 GB, free: 26.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/7.675, allocations: 171 kB / 3.145 GB, free: 26.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/7.675, allocations: 0 / 3.145 GB, free: 26.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008711/7.676, allocations: 458.4 kB / 3.145 GB, free: 26.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/7.676, allocations: 6.406 kB / 3.145 GB, free: 26.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/7.676, allocations: 6.812 kB / 3.145 GB, free: 26.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/7.676, allocations: 7.922 kB / 3.145 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/7.676, allocations: 97.55 kB / 3.145 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/7.676, allocations: 9.047 kB / 3.145 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003572/7.676, allocations: 65.27 kB / 3.145 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/7.676, allocations: 19.22 kB / 3.145 GB, free: 26.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002031/7.677, allocations: 169.8 kB / 3.145 GB, free: 26.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/7.677, allocations: 31.38 kB / 3.145 GB, free: 26.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/7.679, allocations: 1.901 MB / 3.147 GB, free: 26.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.786e-05/7.679, allocations: 34.02 kB / 3.147 GB, free: 26.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/7.679, allocations: 2.75 kB / 3.147 GB, free: 26.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/7.679, allocations: 0 / 3.147 GB, free: 26.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/7.68, allocations: 0.9829 MB / 3.148 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/7.68, allocations: 0 / 3.148 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/7.681, allocations: 80.88 kB / 3.148 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/7.681, allocations: 0.9062 kB / 3.148 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/7.681, allocations: 10.67 kB / 3.148 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/7.681, allocations: 2.031 kB / 3.148 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/7.681, allocations: 3.953 kB / 3.148 GB, free: 25.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/7.682, allocations: 1.073 MB / 3.149 GB, free: 25.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/7.683, allocations: 207.4 kB / 3.15 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/7.683, allocations: 5.844 kB / 3.15 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/7.683, allocations: 48.55 kB / 3.15 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.619e-05/7.683, allocations: 35.09 kB / 3.15 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/7.683, allocations: 12.05 kB / 3.15 GB, free: 25.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003146/7.683, allocations: 263.6 kB / 3.15 GB, free: 25.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/7.683, allocations: 3.5 kB / 3.15 GB, free: 25.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005764/7.689, allocations: 0.9933 MB / 3.151 GB, free: 25.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008621/7.698, allocations: 1.37 MB / 3.152 GB, free: 25.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/7.699, allocations: 0.6021 MB / 3.153 GB, free: 25.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/7.699, allocations: 3.719 kB / 3.153 GB, free: 25.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/7.7, allocations: 0.5176 MB / 3.153 GB, free: 25.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/7.701, allocations: 164.9 kB / 3.153 GB, free: 25.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1431/7.844, allocations: 75.81 MB / 3.228 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/7.845, allocations: 0.9821 MB / 3.228 GB, free: 14.33 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005833/7.845, allocations: 239.5 kB / 3.229 GB, free: 14.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/7.845, allocations: 38.75 kB / 3.229 GB, free: 14.16 MB / 426.7 MB Notification: Performance of SimCode: time 1.452e-06/7.845, allocations: 0 / 3.229 GB, free: 14.16 MB / 426.7 MB Notification: Performance of Templates: time 0.04515/7.891, allocations: 30.45 MB / 3.258 GB, free: 9.883 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)