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.0007326/0.0007326, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004636/0.004637, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.352/1.352, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.3069/0.3069, allocations: 38.04 MB / 308.8 MB, free: 10.35 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.0006552/0.000655, allocations: 16 kB / 377.1 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1025, allocations: 57.51 MB / 434.6 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2201/0.3226, allocations: 28.28 MB / 462.8 MB, free: 34.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.3379, allocations: 14.05 MB / 476.9 MB, free: 31.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000732/0.3387, allocations: 14.53 kB / 476.9 MB, free: 31.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009355/0.3397, allocations: 212.3 kB / 477.1 MB, free: 31.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.35, allocations: 2.924 MB / 480 MB, free: 30.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00651/0.3565, allocations: 1.969 MB / 482 MB, free: 29.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.3579, allocations: 1.132 MB / 483.1 MB, free: 29.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004026/0.3583, allocations: 213.5 kB / 483.3 MB, free: 29.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000774/0.3591, allocations: 391 kB / 483.7 MB, free: 29.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.3595, allocations: 264.4 kB / 484 MB, free: 29.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.3595, allocations: 19.25 kB / 484 MB, free: 29.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01188/0.3714, allocations: 7.111 MB / 491.1 MB, free: 27.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.3717, allocations: 87.09 kB / 491.2 MB, free: 27.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004523/0.3722, allocations: 227.9 kB / 491.4 MB, free: 27.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01213/0.3843, allocations: 4.371 MB / 495.8 MB, free: 26.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3843, allocations: 0 / 495.8 MB, free: 26.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3844, allocations: 0 / 495.8 MB, free: 26.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.3844, allocations: 0 / 495.8 MB, free: 26.17 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.004873/0.3893, allocations: 1.161 MB / 497 MB, free: 25.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3893, allocations: 12.67 kB / 497 MB, free: 25.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00176/0.3911, allocations: 216.3 kB / 497.2 MB, free: 25.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.3916, allocations: 360 kB / 497.5 MB, free: 25.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.3917, allocations: 28.22 kB / 497.6 MB, free: 25.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.3917, allocations: 26.66 kB / 497.6 MB, free: 25.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.3932, allocations: 0.6046 MB / 498.2 MB, free: 24.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3933, allocations: 11.03 kB / 498.2 MB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.3933, allocations: 13.84 kB / 498.2 MB, free: 24.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.3933, allocations: 10.53 kB / 498.2 MB, free: 24.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.395, allocations: 0.5598 MB / 498.8 MB, free: 24.65 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.002809/0.3978, allocations: 2.642 MB / 0.4897 GB, free: 22.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.3994, allocations: 497.8 kB / 0.4902 GB, free: 22.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004474/0.3999, allocations: 202.6 kB / 0.4903 GB, free: 22.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04647/0.4463, allocations: 24.42 MB / 0.5142 GB, free: 20.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.4464, allocations: 40.72 kB / 0.5142 GB, free: 20.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.585e-06/0.4464, allocations: 1.406 kB / 0.5142 GB, free: 20.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002713/0.4492, allocations: 0.8533 MB / 0.5151 GB, free: 19.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.4492, allocations: 109.4 kB / 0.5152 GB, free: 19.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.4496, allocations: 308.3 kB / 0.5155 GB, free: 19.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.4496, allocations: 33.64 kB / 0.5155 GB, free: 19.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.4497, allocations: 212.4 kB / 0.5157 GB, free: 19.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.4498, allocations: 76.97 kB / 0.5158 GB, free: 19.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.227e-05/0.4498, allocations: 35.39 kB / 0.5158 GB, free: 19.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4499, allocations: 345.3 kB / 0.5161 GB, free: 18.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003633/0.4503, allocations: 157 kB / 0.5163 GB, free: 18.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/0.4507, allocations: 253.6 kB / 0.5165 GB, free: 18.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007326/0.4515, allocations: 385.2 kB / 0.5169 GB, free: 18.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-06/0.4515, allocations: 1.344 kB / 0.5169 GB, free: 18.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009341/0.4524, allocations: 452.2 kB / 0.5173 GB, free: 18.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.4524, allocations: 6.688 kB / 0.5173 GB, free: 18.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4524, allocations: 3.094 kB / 0.5173 GB, free: 18.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.4525, allocations: 6.984 kB / 0.5173 GB, free: 18.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.4528, allocations: 90.92 kB / 0.5174 GB, free: 18.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.4528, allocations: 8.125 kB / 0.5174 GB, free: 18.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.4531, allocations: 65.83 kB / 0.5175 GB, free: 18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.4532, allocations: 15 kB / 0.5175 GB, free: 18 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.0001834/0.4534, allocations: 170.3 kB / 0.5177 GB, free: 17.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.4534, allocations: 33.5 kB / 0.5177 GB, free: 17.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002416/0.4559, allocations: 1.934 MB / 0.5196 GB, free: 16.72 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/0.4559, allocations: 33.52 kB / 0.5196 GB, free: 16.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4559, allocations: 0 / 0.5196 GB, free: 16.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4559, allocations: 3.984 kB / 0.5196 GB, free: 16.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008811/0.4568, allocations: 1.013 MB / 0.5206 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.4568, allocations: 3.125 kB / 0.5206 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.4571, allocations: 83.69 kB / 0.5207 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.4571, allocations: 2.906 kB / 0.5207 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.4572, allocations: 6.781 kB / 0.5207 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.4572, allocations: 3.938 kB / 0.5207 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4572, allocations: 1.719 kB / 0.5207 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.4584, allocations: 1.114 MB / 0.5218 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.4586, allocations: 216.6 kB / 0.522 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.4586, allocations: 7.219 kB / 0.522 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.4589, allocations: 47.28 kB / 0.5221 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.318e-05/0.459, allocations: 39.78 kB / 0.5221 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.4591, allocations: 16.55 kB / 0.5221 GB, free: 15.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002827/0.4593, allocations: 327.7 kB / 0.5224 GB, free: 14.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4594, allocations: 0 / 0.5224 GB, free: 14.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003715/0.4631, allocations: 0.9869 MB / 0.5234 GB, free: 14.65 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.005959/0.469, allocations: 1.173 MB / 0.5245 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.4701, allocations: 0.6082 MB / 0.5251 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4701, allocations: 4 kB / 0.5251 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006421/0.4708, allocations: 0.5243 MB / 0.5257 GB, free: 12.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.472, allocations: 209.7 kB / 0.5259 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.4743, allocations: 1.883 MB / 0.5277 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.4749, allocations: 0.9638 MB / 0.5286 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004648/0.4754, allocations: 278.6 kB / 0.5289 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.4755, allocations: 39.44 kB / 0.5289 GB, free: 9.062 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4755, allocations: 0 / 0.5289 GB, free: 9.062 MB / 398.1 MB Notification: Performance of Templates: time 0.05201/0.5275, allocations: 38.74 MB / 0.5668 GB, free: 2.32 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: