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/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/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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00158/0.00158, allocations: 194.3 kB / 16.14 MB, free: 6.707 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.308/1.308, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3441/0.3441, allocations: 37.98 MB / 307.3 MB, free: 10.12 MB / 254.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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 75.06 kB / 374.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1352, allocations: 56.47 MB / 431 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2684/0.4037, allocations: 28.98 MB / 460 MB, free: 35.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.4194, allocations: 14.27 MB / 474.3 MB, free: 32.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004427/0.4199, allocations: 11.22 kB / 474.3 MB, free: 32.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007302/0.4207, allocations: 220.9 kB / 474.5 MB, free: 32.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009752/0.4304, allocations: 2.913 MB / 477.4 MB, free: 31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006922/0.4374, allocations: 1.994 MB / 479.4 MB, free: 29.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001424/0.4388, allocations: 1.131 MB / 480.5 MB, free: 29.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003795/0.4392, allocations: 209 kB / 480.7 MB, free: 29.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007851/0.44, allocations: 397 kB / 481.1 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.4403, allocations: 270.7 kB / 481.4 MB, free: 29.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.4404, allocations: 17.5 kB / 481.4 MB, free: 29.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0137/0.4541, allocations: 7.118 MB / 488.5 MB, free: 27.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003094/0.4545, allocations: 81.05 kB / 488.6 MB, free: 27.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005283/0.455, allocations: 207.7 kB / 488.8 MB, free: 27.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01701/0.472, allocations: 4.403 MB / 493.2 MB, free: 25.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.4721, allocations: 0 / 493.2 MB, free: 25.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4721, allocations: 0 / 493.2 MB, free: 25.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.4721, allocations: 0 / 493.2 MB, free: 25.95 MB / 382.1 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.005506/0.4777, allocations: 1.228 MB / 494.4 MB, free: 25.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.4777, allocations: 9.094 kB / 494.4 MB, free: 25.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001779/0.4795, allocations: 210.7 kB / 494.7 MB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.48, allocations: 366.6 kB / 495 MB, free: 24.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.4801, allocations: 28.09 kB / 495 MB, free: 24.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.357e-05/0.4801, allocations: 30.59 kB / 495.1 MB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/0.4817, allocations: 0.5866 MB / 495.7 MB, free: 24.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.4818, allocations: 0.9375 kB / 495.7 MB, free: 24.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.305e-05/0.4818, allocations: 13.12 kB / 495.7 MB, free: 24.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.4818, allocations: 7.969 kB / 495.7 MB, free: 24.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.4835, allocations: 0.5237 MB / 496.2 MB, free: 24.39 MB / 382.1 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.003019/0.4865, allocations: 2.625 MB / 498.8 MB, free: 22.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.4882, allocations: 460.3 kB / 499.3 MB, free: 22.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004729/0.4887, allocations: 192.3 kB / 499.5 MB, free: 21.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04679/0.5355, allocations: 24.21 MB / 0.5114 GB, free: 20.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.5356, allocations: 37.81 kB / 0.5114 GB, free: 20.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.327e-06/0.5356, allocations: 0 / 0.5114 GB, free: 20.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002841/0.5385, allocations: 0.7807 MB / 0.5122 GB, free: 19.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.236e-05/0.5386, allocations: 117.2 kB / 0.5123 GB, free: 19.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.5389, allocations: 314.2 kB / 0.5126 GB, free: 19.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.539, allocations: 31.77 kB / 0.5126 GB, free: 19.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.5391, allocations: 199.3 kB / 0.5128 GB, free: 19.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.34e-05/0.5392, allocations: 87.58 kB / 0.5129 GB, free: 19.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.5393, allocations: 74.66 kB / 0.513 GB, free: 19.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5395, allocations: 339.6 kB / 0.5133 GB, free: 18.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.5398, allocations: 146.6 kB / 0.5134 GB, free: 18.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.5402, allocations: 233.4 kB / 0.5137 GB, free: 18.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006643/0.5409, allocations: 359.5 kB / 0.514 GB, free: 18.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.5409, allocations: 0 / 0.514 GB, free: 18.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008916/0.5418, allocations: 421 kB / 0.5144 GB, free: 18.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.5418, allocations: 5.312 kB / 0.5144 GB, free: 18.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.5418, allocations: 2.625 kB / 0.5144 GB, free: 18.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/0.5419, allocations: 3.75 kB / 0.5144 GB, free: 18.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.5422, allocations: 86.97 kB / 0.5145 GB, free: 18.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.5422, allocations: 8.656 kB / 0.5145 GB, free: 18.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.5425, allocations: 58.62 kB / 0.5146 GB, free: 18.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.891e-05/0.5426, allocations: 16.3 kB / 0.5146 GB, free: 18.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,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 (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001858/0.5428, allocations: 154.5 kB / 0.5147 GB, free: 17.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.862e-05/0.5428, allocations: 34.12 kB / 0.5148 GB, free: 17.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/0.545, allocations: 1.905 MB / 0.5166 GB, free: 16.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/0.5451, allocations: 34.77 kB / 0.5167 GB, free: 16.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5451, allocations: 1.375 kB / 0.5167 GB, free: 16.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.5451, allocations: 0 / 0.5167 GB, free: 16.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.5462, allocations: 1.011 MB / 0.5176 GB, free: 16.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.066e-06/0.5462, allocations: 5.625 kB / 0.5177 GB, free: 16.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.5465, allocations: 69.67 kB / 0.5177 GB, free: 16.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.5465, allocations: 2.125 kB / 0.5177 GB, free: 16.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.5466, allocations: 6.156 kB / 0.5177 GB, free: 16.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.5466, allocations: 9.625 kB / 0.5177 GB, free: 16.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5466, allocations: 3.062 kB / 0.5177 GB, free: 16.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.5481, allocations: 1.083 MB / 0.5188 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002444/0.5484, allocations: 161.3 kB / 0.519 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.339e-05/0.5485, allocations: 21.69 kB / 0.519 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004375/0.5489, allocations: 41.84 kB / 0.519 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.5491, allocations: 39.3 kB / 0.519 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.5492, allocations: 13.25 kB / 0.5191 GB, free: 15.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005848/0.5498, allocations: 328.1 kB / 0.5194 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5498, allocations: 0 / 0.5194 GB, free: 14.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006071/0.5559, allocations: 0.9902 MB / 0.5203 GB, free: 14.78 MB / 398.1 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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008931/0.5648, allocations: 1.179 MB / 0.5215 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.567, allocations: 0.5848 MB / 0.5221 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.567, allocations: 0 / 0.5221 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.5681, allocations: 0.5165 MB / 0.5226 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.57, allocations: 202.1 kB / 0.5228 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.5734, allocations: 1.848 MB / 0.5246 GB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000641/0.574, allocations: 0.9638 MB / 0.5255 GB, free: 9.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007275/0.5748, allocations: 270.8 kB / 0.5258 GB, free: 9.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.5749, allocations: 43.44 kB / 0.5258 GB, free: 9.543 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5749, allocations: 4 kB / 0.5258 GB, free: 9.539 MB / 398.1 MB Notification: Performance of Templates: time 0.1005/0.6754, allocations: 38.8 MB / 0.5637 GB, free: 2.734 MB / 430.1 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)