Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001237/0.001237, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.444/1.444, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3006/0.3006, allocations: 39.93 MB / 309.7 MB, free: 9.246 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.2. 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.001743/0.001743, allocations: 67.91 kB / 377.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.101, allocations: 56.88 MB / 434.5 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.203/0.304, allocations: 28.12 MB / 462.6 MB, free: 36.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01238/0.3164, allocations: 13.29 MB / 475.9 MB, free: 30.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003473/0.3169, allocations: 10.19 kB / 475.9 MB, free: 30.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000734/0.3176, allocations: 250.9 kB / 476.2 MB, free: 30.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00789/0.3255, allocations: 3.65 MB / 479.8 MB, free: 28.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005229/0.3308, allocations: 2.377 MB / 482.2 MB, free: 27.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008436/0.3316, allocations: 0.8915 MB / 483.1 MB, free: 27.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.3319, allocations: 244.5 kB / 483.3 MB, free: 27.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005623/0.3325, allocations: 426.4 kB / 483.7 MB, free: 26.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.3328, allocations: 276.9 kB / 484 MB, free: 26.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.3328, allocations: 32.03 kB / 484 MB, free: 26.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01148/0.3443, allocations: 7.06 MB / 491.1 MB, free: 24.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.3445, allocations: 97.27 kB / 491.2 MB, free: 24.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.3447, allocations: 216.2 kB / 491.4 MB, free: 24.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009216/0.3539, allocations: 4.406 MB / 495.8 MB, free: 23.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.354, allocations: 5 kB / 495.8 MB, free: 23.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.354, allocations: 0 / 495.8 MB, free: 23.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.354, allocations: 0 / 495.8 MB, free: 23.52 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.003827/0.3578, allocations: 1.226 MB / 497 MB, free: 22.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3579, allocations: 12.83 kB / 497 MB, free: 22.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001691/0.3596, allocations: 210.4 kB / 497.3 MB, free: 22.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.36, allocations: 365.5 kB / 497.6 MB, free: 22.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.3601, allocations: 26.62 kB / 497.6 MB, free: 22.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.3601, allocations: 27.66 kB / 497.7 MB, free: 22.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.3616, allocations: 0.5879 MB / 498.3 MB, free: 22.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3616, allocations: 0 / 498.3 MB, free: 22.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.981e-05/0.3616, allocations: 16.47 kB / 498.3 MB, free: 22.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3616, allocations: 8.656 kB / 498.3 MB, free: 22.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.3632, allocations: 0.5279 MB / 498.8 MB, free: 21.97 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.002651/0.3659, allocations: 2.63 MB / 0.4897 GB, free: 19.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.3674, allocations: 470.2 kB / 0.4901 GB, free: 19.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004174/0.3679, allocations: 186.2 kB / 0.4903 GB, free: 19.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04701/0.4149, allocations: 24.21 MB / 0.5139 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.415, allocations: 37.28 kB / 0.514 GB, free: 1.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.415, allocations: 0 / 0.514 GB, free: 1.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.002685/0.4177, allocations: 0.785 MB / 0.5147 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.4177, allocations: 109.5 kB / 0.5149 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.418, allocations: 310.2 kB / 0.5151 GB, free: 292 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.4181, allocations: 31.08 kB / 0.5152 GB, free: 256 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.4182, allocations: 207.4 kB / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.146e-05/0.4183, allocations: 86.86 kB / 0.5155 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.4184, allocations: 73.09 kB / 0.5155 GB, free: 15.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4185, allocations: 341.7 kB / 0.5159 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000395/0.4189, allocations: 135.4 kB / 0.516 GB, free: 15.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.4194, allocations: 236.1 kB / 0.5162 GB, free: 15.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008154/0.4202, allocations: 354.6 kB / 0.5165 GB, free: 15.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4203, allocations: 4.875 kB / 0.5166 GB, free: 15.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001044/0.4213, allocations: 433.8 kB / 0.517 GB, free: 14.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4213, allocations: 6.781 kB / 0.517 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4213, allocations: 6.406 kB / 0.517 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4214, allocations: 5.156 kB / 0.517 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.4217, allocations: 84.19 kB / 0.5171 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.4217, allocations: 8.531 kB / 0.5171 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002988/0.422, allocations: 41.16 kB / 0.5171 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.4221, allocations: 15.16 kB / 0.5171 GB, free: 14.82 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.0001824/0.4223, allocations: 166.4 kB / 0.5173 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.342e-05/0.4224, allocations: 32.72 kB / 0.5173 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/0.4247, allocations: 1.896 MB / 0.5192 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-05/0.4247, allocations: 32.08 kB / 0.5192 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4247, allocations: 0 / 0.5192 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4248, allocations: 7.922 kB / 0.5192 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009666/0.4257, allocations: 1.019 MB / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4257, allocations: 0 / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.426, allocations: 68 kB / 0.5203 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.4261, allocations: 2.969 kB / 0.5203 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.4261, allocations: 12.72 kB / 0.5203 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4261, allocations: 3.938 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4261, allocations: 0 / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.4275, allocations: 1.08 MB / 0.5213 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.4276, allocations: 163.1 kB / 0.5215 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.12e-05/0.4277, allocations: 29.3 kB / 0.5215 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.428, allocations: 23.14 kB / 0.5215 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.655e-05/0.428, allocations: 32.14 kB / 0.5216 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.4281, allocations: 18.45 kB / 0.5216 GB, free: 11.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000319/0.4284, allocations: 329.5 kB / 0.5219 GB, free: 11.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4284, allocations: 0 / 0.5219 GB, free: 11.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003936/0.4324, allocations: 0.9897 MB / 0.5229 GB, free: 10.88 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.004969/0.4373, allocations: 1.174 MB / 0.524 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.4389, allocations: 0.607 MB / 0.5246 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4389, allocations: 0 / 0.5246 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006754/0.4396, allocations: 0.5165 MB / 0.5251 GB, free: 8.578 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4408, allocations: 222.5 kB / 0.5253 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.4429, allocations: 1.523 MB / 0.5268 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.4433, allocations: 0.956 MB / 0.5277 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000446/0.4438, allocations: 278.8 kB / 0.528 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.784e-05/0.4439, allocations: 39.44 kB / 0.5281 GB, free: 5.539 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4439, allocations: 0 / 0.5281 GB, free: 5.539 MB / 398.1 MB Notification: Performance of Templates: time 0.05433/0.4982, allocations: 39.41 MB / 0.5665 GB, free: 14.12 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)