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.001094/0.001094, allocations: 100.1 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.001221/0.001221, allocations: 177.3 kB / 15.95 MB, free: 216 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.265/1.265, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.2635/0.2635, allocations: 40 MB / 310.4 MB, free: 9.617 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.0004968/0.0004969, allocations: 16 kB / 378.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09102, allocations: 57.96 MB / 436.8 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1905/0.2816, allocations: 23.78 MB / 460.5 MB, free: 34.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.2918, allocations: 11.36 MB / 471.9 MB, free: 33.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.2922, allocations: 11.28 kB / 471.9 MB, free: 33.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005938/0.2928, allocations: 209.1 kB / 472.1 MB, free: 33.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006673/0.2995, allocations: 2.817 MB / 474.9 MB, free: 32.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004663/0.3041, allocations: 1.906 MB / 476.8 MB, free: 31.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007358/0.3049, allocations: 0.539 MB / 477.4 MB, free: 31.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003183/0.3052, allocations: 199 kB / 477.6 MB, free: 31.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006492/0.3059, allocations: 402.7 kB / 478 MB, free: 31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.3061, allocations: 196.8 kB / 478.2 MB, free: 30.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.3061, allocations: 15.19 kB / 478.2 MB, free: 30.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01058/0.3167, allocations: 7.012 MB / 485.2 MB, free: 29.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.3169, allocations: 76.62 kB / 485.3 MB, free: 29.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.317, allocations: 105.8 kB / 485.4 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004909/0.3219, allocations: 2.942 MB / 488.3 MB, free: 28.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.322, allocations: 3.312 kB / 488.3 MB, free: 28.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.322, allocations: 4 kB / 488.3 MB, free: 28.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.322, allocations: 0 / 488.3 MB, free: 28.7 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.00349/0.3255, allocations: 1.165 MB / 489.5 MB, free: 27.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3256, allocations: 9.031 kB / 489.5 MB, free: 27.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001669/0.3272, allocations: 215.2 kB / 489.7 MB, free: 27.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.3277, allocations: 350 kB / 490 MB, free: 27.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.3277, allocations: 32.38 kB / 490.1 MB, free: 27.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.3278, allocations: 25.72 kB / 490.1 MB, free: 27.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.3292, allocations: 0.6036 MB / 490.7 MB, free: 27.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3292, allocations: 0 / 490.7 MB, free: 27.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.112e-05/0.3293, allocations: 14.06 kB / 490.7 MB, free: 27.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.3293, allocations: 5.938 kB / 490.7 MB, free: 27.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.3308, allocations: 0.5663 MB / 491.3 MB, free: 27.19 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.002507/0.3333, allocations: 2.639 MB / 493.9 MB, free: 24.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.3348, allocations: 496.2 kB / 494.4 MB, free: 24.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04532/0.3801, allocations: 24.42 MB / 0.5067 GB, free: 23.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.3802, allocations: 36.03 kB / 0.5067 GB, free: 23.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.286e-06/0.3802, allocations: 0 / 0.5067 GB, free: 23.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002829/0.383, allocations: 0.8522 MB / 0.5075 GB, free: 23.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.3831, allocations: 109.4 kB / 0.5076 GB, free: 23.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.3835, allocations: 308.6 kB / 0.5079 GB, free: 23.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.3835, allocations: 34.92 kB / 0.508 GB, free: 23.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.3836, allocations: 198.7 kB / 0.5082 GB, free: 22.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.493e-05/0.3837, allocations: 86.42 kB / 0.5082 GB, free: 22.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.64e-05/0.3837, allocations: 5.125 kB / 0.5083 GB, free: 22.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3839, allocations: 345.8 kB / 0.5086 GB, free: 22.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/0.3842, allocations: 152.2 kB / 0.5087 GB, free: 22.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003941/0.3846, allocations: 242.7 kB / 0.509 GB, free: 22.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.385, allocations: 176.9 kB / 0.5091 GB, free: 22.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3851, allocations: 0 / 0.5091 GB, free: 22.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009386/0.386, allocations: 458.8 kB / 0.5096 GB, free: 21.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.386, allocations: 5.906 kB / 0.5096 GB, free: 21.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.386, allocations: 2.156 kB / 0.5096 GB, free: 21.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3861, allocations: 4.5 kB / 0.5096 GB, free: 21.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.3864, allocations: 88.14 kB / 0.5097 GB, free: 21.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.3864, allocations: 8.719 kB / 0.5097 GB, free: 21.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.3867, allocations: 61.28 kB / 0.5097 GB, free: 21.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.3868, allocations: 19.09 kB / 0.5097 GB, free: 21.79 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.0001882/0.387, allocations: 169.8 kB / 0.5099 GB, free: 21.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.234e-05/0.3871, allocations: 36.66 kB / 0.5099 GB, free: 21.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.3891, allocations: 1.934 MB / 0.5118 GB, free: 20.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/0.3892, allocations: 36.41 kB / 0.5119 GB, free: 20.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3892, allocations: 0 / 0.5119 GB, free: 20.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.3892, allocations: 3.125 kB / 0.5119 GB, free: 20.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000864/0.39, allocations: 1.01 MB / 0.5129 GB, free: 19.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3901, allocations: 7.953 kB / 0.5129 GB, free: 19.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.3904, allocations: 80.66 kB / 0.5129 GB, free: 19.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3904, allocations: 3.156 kB / 0.5129 GB, free: 19.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.3904, allocations: 6.25 kB / 0.5129 GB, free: 19.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.3904, allocations: 5.578 kB / 0.513 GB, free: 19.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3904, allocations: 4 kB / 0.513 GB, free: 19.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.3917, allocations: 1.091 MB / 0.514 GB, free: 19.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3919, allocations: 216.3 kB / 0.5142 GB, free: 18.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.315e-05/0.392, allocations: 14.09 kB / 0.5142 GB, free: 18.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.3923, allocations: 47.44 kB / 0.5143 GB, free: 18.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.687e-05/0.3924, allocations: 34.44 kB / 0.5143 GB, free: 18.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.3925, allocations: 8 kB / 0.5143 GB, free: 18.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003369/0.3928, allocations: 325.3 kB / 0.5146 GB, free: 18.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3928, allocations: 3.938 kB / 0.5146 GB, free: 18.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00309/0.3959, allocations: 0.999 MB / 0.5156 GB, free: 18.42 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.004566/0.4005, allocations: 1.157 MB / 0.5167 GB, free: 17.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.4016, allocations: 0.6223 MB / 0.5174 GB, free: 17.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4016, allocations: 1.812 kB / 0.5174 GB, free: 17.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005627/0.4022, allocations: 0.5213 MB / 0.5179 GB, free: 17.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.4033, allocations: 205.1 kB / 0.5181 GB, free: 17.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.4051, allocations: 1.867 MB / 0.5199 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.4055, allocations: 0.9836 MB / 0.5208 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003874/0.4059, allocations: 280.2 kB / 0.5211 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.721e-05/0.406, allocations: 35.44 kB / 0.5211 GB, free: 14.39 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.406, allocations: 0 / 0.5211 GB, free: 14.39 MB / 398.1 MB Notification: Performance of Templates: time 0.05328/0.4593, allocations: 39.07 MB / 0.5593 GB, free: 7.305 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: