Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008466/0.0008464, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.0009523/0.0009525, allocations: 172.7 kB / 15.95 MB, free: 208 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.312/1.312, allocations: 205.4 MB / 222.1 MB, free: 5.496 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.265/0.265, allocations: 38.04 MB / 308.4 MB, free: 10.44 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.000537/0.0005371, allocations: 16 kB / 376.4 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09304, allocations: 57.53 MB / 434 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.1899/0.2829, allocations: 26.15 MB / 460.1 MB, free: 34.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01192/0.2949, allocations: 12.4 MB / 472.5 MB, free: 33.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000283/0.2952, allocations: 7.062 kB / 472.5 MB, free: 33.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005491/0.2958, allocations: 203.8 kB / 472.7 MB, free: 33.37 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006407/0.3022, allocations: 2.847 MB / 475.6 MB, free: 32.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004439/0.3067, allocations: 1.827 MB / 477.4 MB, free: 32.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008923/0.3076, allocations: 0.9884 MB / 478.4 MB, free: 31.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.3079, allocations: 198.3 kB / 478.6 MB, free: 31.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005743/0.3084, allocations: 385.5 kB / 479 MB, free: 31.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.3087, allocations: 264.5 kB / 479.2 MB, free: 31.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.3088, allocations: 15.91 kB / 479.2 MB, free: 31.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01046/0.3192, allocations: 6.816 MB / 486 MB, free: 30 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.3194, allocations: 82.03 kB / 486.1 MB, free: 29.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.3197, allocations: 106.4 kB / 486.2 MB, free: 29.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005116/0.3248, allocations: 2.958 MB / 489.2 MB, free: 29.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.3248, allocations: 3.312 kB / 489.2 MB, free: 29.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3248, allocations: 0 / 489.2 MB, free: 29.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.3248, allocations: 0 / 489.2 MB, free: 29.51 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.003165/0.328, allocations: 1.184 MB / 490.4 MB, free: 28.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.328, allocations: 6.531 kB / 490.4 MB, free: 28.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.3297, allocations: 216.4 kB / 490.6 MB, free: 28.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3301, allocations: 350.7 kB / 490.9 MB, free: 28.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.3301, allocations: 30.12 kB / 491 MB, free: 28.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.3301, allocations: 32.94 kB / 491 MB, free: 28.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.3315, allocations: 0.6079 MB / 491.6 MB, free: 28.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3316, allocations: 3.938 kB / 491.6 MB, free: 28.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.3316, allocations: 22 kB / 491.6 MB, free: 28.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3316, allocations: 10.36 kB / 491.6 MB, free: 28.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.3331, allocations: 0.5893 MB / 492.2 MB, free: 28.01 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.002426/0.3355, allocations: 2.646 MB / 494.9 MB, free: 25.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.3369, allocations: 0.4995 MB / 495.4 MB, free: 25.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004216/0.3373, allocations: 218.2 kB / 495.6 MB, free: 25.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03981/0.3772, allocations: 24.43 MB / 0.5078 GB, free: 24.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.3772, allocations: 36.91 kB / 0.5079 GB, free: 24.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.074e-06/0.3772, allocations: 0 / 0.5079 GB, free: 24.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002651/0.3799, allocations: 0.8859 MB / 0.5087 GB, free: 24.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.38, allocations: 106.7 kB / 0.5088 GB, free: 24.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.3803, allocations: 312.7 kB / 0.5091 GB, free: 23.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.3803, allocations: 31.05 kB / 0.5092 GB, free: 23.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.3805, allocations: 202.8 kB / 0.5093 GB, free: 23.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.3805, allocations: 85.36 kB / 0.5094 GB, free: 23.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.3805, allocations: 9.531 kB / 0.5094 GB, free: 23.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3807, allocations: 341.5 kB / 0.5098 GB, free: 23.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.3811, allocations: 168.4 kB / 0.5099 GB, free: 23.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.3815, allocations: 264.8 kB / 0.5102 GB, free: 22.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000376/0.3819, allocations: 186.2 kB / 0.5104 GB, free: 22.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3819, allocations: 0.9062 kB / 0.5104 GB, free: 22.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009053/0.3828, allocations: 481.1 kB / 0.5108 GB, free: 22.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3828, allocations: 5.25 kB / 0.5108 GB, free: 22.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3828, allocations: 2.688 kB / 0.5108 GB, free: 22.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3828, allocations: 4.531 kB / 0.5108 GB, free: 22.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000326/0.3832, allocations: 99.28 kB / 0.5109 GB, free: 22.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.3832, allocations: 7.469 kB / 0.5109 GB, free: 22.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.3835, allocations: 69.61 kB / 0.511 GB, free: 22.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.3835, allocations: 19.34 kB / 0.511 GB, free: 22.54 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: 4 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.3837, allocations: 163.7 kB / 0.5112 GB, free: 22.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.561e-05/0.3838, allocations: 40.39 kB / 0.5112 GB, free: 22.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.3859, allocations: 1.969 MB / 0.5131 GB, free: 21.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/0.386, allocations: 32.56 kB / 0.5132 GB, free: 21.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.386, allocations: 0 / 0.5132 GB, free: 21.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.386, allocations: 0 / 0.5132 GB, free: 21.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008114/0.3868, allocations: 1.01 MB / 0.5141 GB, free: 20.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3868, allocations: 3.125 kB / 0.5142 GB, free: 20.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.3871, allocations: 90.89 kB / 0.5142 GB, free: 20.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.3871, allocations: 6.641 kB / 0.5142 GB, free: 20.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.3871, allocations: 7.438 kB / 0.5143 GB, free: 20.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.3871, allocations: 0 / 0.5143 GB, free: 20.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3871, allocations: 4 kB / 0.5143 GB, free: 20.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3884, allocations: 1.131 MB / 0.5154 GB, free: 19.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.3886, allocations: 219.6 kB / 0.5156 GB, free: 19.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.559e-05/0.3886, allocations: 10.61 kB / 0.5156 GB, free: 19.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.3889, allocations: 52.66 kB / 0.5156 GB, free: 19.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.598e-05/0.389, allocations: 35.06 kB / 0.5157 GB, free: 19.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.3891, allocations: 8.25 kB / 0.5157 GB, free: 19.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003004/0.3894, allocations: 324.1 kB / 0.516 GB, free: 19.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3894, allocations: 0 / 0.516 GB, free: 19.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003244/0.3926, allocations: 0.9944 MB / 0.517 GB, free: 19.16 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: 18 ($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) * 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.003836/0.3965, allocations: 1.164 MB / 0.5181 GB, free: 18.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3975, allocations: 0.648 MB / 0.5187 GB, free: 18.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3976, allocations: 0 / 0.5187 GB, free: 18.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.3981, allocations: 0.5407 MB / 0.5192 GB, free: 18.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/0.3991, allocations: 223.6 kB / 0.5195 GB, free: 18.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.4009, allocations: 1.869 MB / 0.5213 GB, free: 16.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.4013, allocations: 0.9641 MB / 0.5222 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003677/0.4016, allocations: 274.8 kB / 0.5225 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.194e-05/0.4017, allocations: 43.44 kB / 0.5225 GB, free: 15.36 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4017, allocations: 0 / 0.5225 GB, free: 15.36 MB / 398.1 MB Notification: Performance of Templates: time 0.04658/0.4483, allocations: 39.2 MB / 0.5608 GB, free: 8.152 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) Environment - environmentSimulation: