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.00102/0.001021, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001046/0.001046, allocations: 177.3 kB / 15.94 MB, free: 228 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.33/1.33, allocations: 205.4 MB / 222.1 MB, free: 5.535 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.3299/0.3299, allocations: 38.03 MB / 308.4 MB, free: 10.36 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.0005641/0.0005641, allocations: 16 kB / 376.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1365, allocations: 57.52 MB / 433.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2598/0.3963, allocations: 23.78 MB / 457.7 MB, free: 34.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.4091, allocations: 11.37 MB / 469.1 MB, free: 34.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003776/0.4095, allocations: 11.28 kB / 469.1 MB, free: 34.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007527/0.4103, allocations: 205.6 kB / 469.3 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009573/0.4198, allocations: 2.818 MB / 472.1 MB, free: 34.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005762/0.4256, allocations: 1.906 MB / 474 MB, free: 34.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009036/0.4265, allocations: 0.5343 MB / 474.5 MB, free: 33.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003364/0.4269, allocations: 205.6 kB / 474.7 MB, free: 33.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008032/0.4277, allocations: 406 kB / 475.1 MB, free: 33.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.4279, allocations: 196 kB / 475.3 MB, free: 33.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.428, allocations: 16.16 kB / 475.3 MB, free: 33.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01304/0.441, allocations: 7.011 MB / 482.4 MB, free: 32.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.4412, allocations: 78.23 kB / 482.4 MB, free: 32.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.4414, allocations: 110.7 kB / 482.5 MB, free: 32.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0058/0.4472, allocations: 2.942 MB / 485.5 MB, free: 31.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.4473, allocations: 0 / 485.5 MB, free: 31.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4473, allocations: 0 / 485.5 MB, free: 31.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.4473, allocations: 0 / 485.5 MB, free: 31.63 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.003295/0.4506, allocations: 1.161 MB / 486.6 MB, free: 30.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4506, allocations: 9.438 kB / 486.7 MB, free: 30.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001733/0.4524, allocations: 220.7 kB / 486.9 MB, free: 30.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.4529, allocations: 349.1 kB / 487.2 MB, free: 30.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.453, allocations: 26.75 kB / 487.2 MB, free: 30.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.453, allocations: 26.94 kB / 487.3 MB, free: 30.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.4546, allocations: 0.5969 MB / 487.9 MB, free: 30.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.4546, allocations: 0 / 487.9 MB, free: 30.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.4547, allocations: 22.12 kB / 487.9 MB, free: 30.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.4547, allocations: 7.078 kB / 487.9 MB, free: 30.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.4563, allocations: 0.5666 MB / 488.5 MB, free: 30.14 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.00283/0.4592, allocations: 2.635 MB / 491.1 MB, free: 27.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/0.4607, allocations: 496.8 kB / 491.6 MB, free: 27.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05076/0.5115, allocations: 24.42 MB / 0.5039 GB, free: 27.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/0.5116, allocations: 40.44 kB / 0.5039 GB, free: 27.33 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.345e-06/0.5116, allocations: 3.938 kB / 0.5039 GB, free: 27.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003178/0.5148, allocations: 0.8552 MB / 0.5048 GB, free: 26.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.148e-05/0.5149, allocations: 106 kB / 0.5049 GB, free: 26.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005052/0.5154, allocations: 307.8 kB / 0.5052 GB, free: 26.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.475e-05/0.5155, allocations: 30.77 kB / 0.5052 GB, free: 26.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.5157, allocations: 203.8 kB / 0.5054 GB, free: 26.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.5159, allocations: 78.72 kB / 0.5055 GB, free: 26.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.5159, allocations: 9.438 kB / 0.5055 GB, free: 26.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.5161, allocations: 341.9 kB / 0.5058 GB, free: 25.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.5165, allocations: 151.8 kB / 0.506 GB, free: 25.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000536/0.517, allocations: 253.7 kB / 0.5062 GB, free: 25.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004716/0.5175, allocations: 164.4 kB / 0.5064 GB, free: 25.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5175, allocations: 1.031 kB / 0.5064 GB, free: 25.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001088/0.5186, allocations: 451 kB / 0.5068 GB, free: 25.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.5187, allocations: 8.922 kB / 0.5068 GB, free: 25.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5187, allocations: 3 kB / 0.5068 GB, free: 25.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.5187, allocations: 8.312 kB / 0.5068 GB, free: 25.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.519, allocations: 91.69 kB / 0.5069 GB, free: 25.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.5191, allocations: 4.625 kB / 0.5069 GB, free: 25.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.5194, allocations: 65 kB / 0.507 GB, free: 25.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.5195, allocations: 20.17 kB / 0.507 GB, free: 25.33 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 (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 (35): * Single equations (assignments): 35 * 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.0002101/0.5197, allocations: 170.1 kB / 0.5071 GB, free: 25.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.5198, allocations: 33.12 kB / 0.5072 GB, free: 25.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/0.5224, allocations: 1.939 MB / 0.5091 GB, free: 24.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/0.5225, allocations: 30.95 kB / 0.5091 GB, free: 24.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.5225, allocations: 1.125 kB / 0.5091 GB, free: 24.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.5225, allocations: 0 / 0.5091 GB, free: 24.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.5236, allocations: 1.013 MB / 0.5101 GB, free: 23.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.5236, allocations: 0 / 0.5101 GB, free: 23.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.524, allocations: 90.55 kB / 0.5102 GB, free: 23.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.524, allocations: 2.531 kB / 0.5102 GB, free: 23.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.524, allocations: 7.062 kB / 0.5102 GB, free: 23.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.524, allocations: 6.703 kB / 0.5102 GB, free: 23.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.524, allocations: 3.938 kB / 0.5102 GB, free: 23.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.526, allocations: 1.103 MB / 0.5113 GB, free: 22.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/0.5264, allocations: 217.1 kB / 0.5115 GB, free: 22.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.883e-05/0.5265, allocations: 7.984 kB / 0.5115 GB, free: 22.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004205/0.527, allocations: 47.47 kB / 0.5115 GB, free: 22.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.5271, allocations: 34.75 kB / 0.5116 GB, free: 22.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.5272, allocations: 15.89 kB / 0.5116 GB, free: 22.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004617/0.5276, allocations: 321.2 kB / 0.5119 GB, free: 22.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5277, allocations: 0 / 0.5119 GB, free: 22.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004041/0.5317, allocations: 0.9848 MB / 0.5128 GB, free: 22 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 (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.005818/0.5375, allocations: 1.166 MB / 0.514 GB, free: 21.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.5388, allocations: 0.6177 MB / 0.5146 GB, free: 21.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.5388, allocations: 0 / 0.5146 GB, free: 21.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006566/0.5395, allocations: 0.5276 MB / 0.5151 GB, free: 21.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.5407, allocations: 202.8 kB / 0.5153 GB, free: 20.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.5432, allocations: 1.87 MB / 0.5171 GB, free: 19.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006604/0.5438, allocations: 0.9795 MB / 0.5181 GB, free: 18.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005171/0.5444, allocations: 276.2 kB / 0.5183 GB, free: 18.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.5445, allocations: 44.89 kB / 0.5184 GB, free: 18.71 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5445, allocations: 0 / 0.5184 GB, free: 18.71 MB / 398.1 MB Notification: Performance of Templates: time 0.05484/0.5993, allocations: 39.08 MB / 0.5565 GB, free: 11.98 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: