Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.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.TestValveLinear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.0007692/0.0007724, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0007905/0.0007906, allocations: 168.7 kB / 15.95 MB, free: 204 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.409/1.409, allocations: 205.4 MB / 222.1 MB, free: 5.629 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.3757/0.3757, allocations: 39.99 MB / 310.4 MB, free: 9.633 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.0005679/0.000568, allocations: 16 kB / 378.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1336, allocations: 57.97 MB / 436.8 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.289/0.4227, allocations: 26.16 MB / 463 MB, free: 34.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.4364, allocations: 12.39 MB / 475.4 MB, free: 31.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006368/0.4371, allocations: 18.41 kB / 475.4 MB, free: 31.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007565/0.4379, allocations: 199.5 kB / 475.6 MB, free: 31.58 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.009084/0.447, allocations: 2.83 MB / 478.4 MB, free: 30.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006871/0.4539, allocations: 1.839 MB / 480.2 MB, free: 29.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.4553, allocations: 0.9855 MB / 481.2 MB, free: 29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003651/0.4556, allocations: 208.1 kB / 481.4 MB, free: 28.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000794/0.4564, allocations: 392.6 kB / 481.8 MB, free: 28.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.4568, allocations: 258.3 kB / 482.1 MB, free: 28.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.404e-05/0.4568, allocations: 18.53 kB / 482.1 MB, free: 28.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01334/0.4702, allocations: 6.813 MB / 488.9 MB, free: 27.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.4704, allocations: 77.33 kB / 489 MB, free: 27.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.4706, allocations: 106.9 kB / 489.1 MB, free: 27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007046/0.4777, allocations: 2.959 MB / 492 MB, free: 26.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.4777, allocations: 0 / 492 MB, free: 26.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.739e-06/0.4778, allocations: 0.5156 kB / 492 MB, free: 26.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.4778, allocations: 0 / 492 MB, free: 26.42 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.005886/0.4837, allocations: 1.181 MB / 493.2 MB, free: 25.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.4837, allocations: 9.906 kB / 493.2 MB, free: 25.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001811/0.4855, allocations: 216.8 kB / 493.4 MB, free: 25.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006051/0.4862, allocations: 351.7 kB / 493.8 MB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.154e-05/0.4862, allocations: 26.44 kB / 493.8 MB, free: 25.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.4863, allocations: 26.75 kB / 493.8 MB, free: 25.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.4879, allocations: 0.6185 MB / 494.5 MB, free: 25.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4879, allocations: 3.031 kB / 494.5 MB, free: 25.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.488, allocations: 11.64 kB / 494.5 MB, free: 25.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.488, allocations: 9.062 kB / 494.5 MB, free: 25.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.4896, allocations: 0.5929 MB / 495.1 MB, free: 24.91 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.003286/0.4929, allocations: 2.645 MB / 497.7 MB, free: 22.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.4947, allocations: 0.4988 MB / 498.2 MB, free: 22.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.4953, allocations: 218.9 kB / 498.4 MB, free: 22.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04811/0.5434, allocations: 24.42 MB / 0.5106 GB, free: 21.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/0.5435, allocations: 36.03 kB / 0.5106 GB, free: 20.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 4.609e-06/0.5435, allocations: 4 kB / 0.5106 GB, free: 20.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003171/0.5467, allocations: 0.8836 MB / 0.5115 GB, free: 20.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.5468, allocations: 117.5 kB / 0.5116 GB, free: 20.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004687/0.5473, allocations: 308.6 kB / 0.5119 GB, free: 20.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/0.5473, allocations: 34.83 kB / 0.5119 GB, free: 20.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.5475, allocations: 203.1 kB / 0.5121 GB, free: 20 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.7e-05/0.5476, allocations: 77.89 kB / 0.5122 GB, free: 19.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.5476, allocations: 5.062 kB / 0.5122 GB, free: 19.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.5478, allocations: 354.8 kB / 0.5125 GB, free: 19.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.5483, allocations: 165.1 kB / 0.5127 GB, free: 19.51 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.5488, allocations: 260.4 kB / 0.5129 GB, free: 19.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.5492, allocations: 182.2 kB / 0.5131 GB, free: 19.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.5493, allocations: 5.125 kB / 0.5131 GB, free: 19.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00113/0.5504, allocations: 487.8 kB / 0.5136 GB, free: 18.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.5504, allocations: 7.438 kB / 0.5136 GB, free: 18.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.5505, allocations: 2.969 kB / 0.5136 GB, free: 18.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.5505, allocations: 4.062 kB / 0.5136 GB, free: 18.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.5509, allocations: 99.38 kB / 0.5137 GB, free: 18.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.5509, allocations: 1.562 kB / 0.5137 GB, free: 18.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.5513, allocations: 74.67 kB / 0.5138 GB, free: 18.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.5513, allocations: 14.72 kB / 0.5138 GB, free: 18.92 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.0002484/0.5516, allocations: 166.9 kB / 0.5139 GB, free: 18.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.384e-05/0.5517, allocations: 32.06 kB / 0.514 GB, free: 18.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/0.5544, allocations: 1.972 MB / 0.5159 GB, free: 17.63 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-05/0.5545, allocations: 32.19 kB / 0.5159 GB, free: 17.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.5545, allocations: 0 / 0.5159 GB, free: 17.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.5545, allocations: 0 / 0.5159 GB, free: 17.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.5557, allocations: 1.023 MB / 0.5169 GB, free: 16.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.5558, allocations: 1.125 kB / 0.5169 GB, free: 16.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.5561, allocations: 95.8 kB / 0.517 GB, free: 16.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.5561, allocations: 2.5 kB / 0.517 GB, free: 16.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.5562, allocations: 6.594 kB / 0.517 GB, free: 16.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.5562, allocations: 5.156 kB / 0.517 GB, free: 16.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.5562, allocations: 0 / 0.517 GB, free: 16.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.5578, allocations: 1.126 MB / 0.5181 GB, free: 16.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.5581, allocations: 224.8 kB / 0.5184 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.472e-05/0.5582, allocations: 11.31 kB / 0.5184 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003403/0.5586, allocations: 45.83 kB / 0.5184 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.5587, allocations: 41.09 kB / 0.5184 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.5587, allocations: 13.44 kB / 0.5185 GB, free: 15.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003941/0.5591, allocations: 325.1 kB / 0.5188 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5592, allocations: 0 / 0.5188 GB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00508/0.5642, allocations: 0.9961 MB / 0.5197 GB, free: 15.53 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.008492/0.5728, allocations: 1.158 MB / 0.5209 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.5743, allocations: 0.6418 MB / 0.5215 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.5743, allocations: 0 / 0.5215 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007712/0.5751, allocations: 0.5373 MB / 0.522 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.5766, allocations: 205.7 kB / 0.5222 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.579, allocations: 1.873 MB / 0.524 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/0.5796, allocations: 0.9758 MB / 0.525 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005619/0.5802, allocations: 282.1 kB / 0.5253 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.5803, allocations: 35.44 kB / 0.5253 GB, free: 10.55 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5803, allocations: 0 / 0.5253 GB, free: 10.55 MB / 398.1 MB Notification: Performance of Templates: time 0.06096/0.6413, allocations: 39.2 MB / 0.5636 GB, free: 3.344 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) Environment - environmentSimulation: