Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004056/0.004055, allocations: 348.3 kB / 15.95 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.446/3.446, allocations: 341.5 MB / 358.2 MB, free: 28.63 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003656/0.003656, allocations: 216.2 kB / 397.9 MB, free: 6.016 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5772/0.5772, allocations: 76.1 MB / 0.5014 GB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006272/0.0006273, allocations: 11.98 kB / 0.5592 GB, free: 60.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08591, allocations: 48.71 MB / 0.6067 GB, free: 11.54 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.0224/0.1084, allocations: 15.89 MB / 0.6223 GB, free: 11.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008922/0.1174, allocations: 4.12 MB / 0.6263 GB, free: 7.457 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008838/0.1183, allocations: 23.75 kB / 0.6263 GB, free: 7.434 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.1195, allocations: 210.7 kB / 0.6265 GB, free: 7.227 MB / 298.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002718/0.1223, allocations: 0.6681 MB / 0.6272 GB, free: 6.555 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003488/0.1258, allocations: 0.7491 MB / 0.6279 GB, free: 5.812 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002956/0.1288, allocations: 1.583 MB / 0.6294 GB, free: 4.227 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009489/0.1298, allocations: 341 kB / 0.6298 GB, free: 3.887 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.1313, allocations: 494 kB / 0.6302 GB, free: 3.402 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.1325, allocations: 418.2 kB / 0.6306 GB, free: 2.992 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.1327, allocations: 24 kB / 0.6307 GB, free: 2.969 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.1345, allocations: 495.4 kB / 0.6311 GB, free: 2.484 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003634/0.1349, allocations: 123.5 kB / 0.6313 GB, free: 2.363 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003128/0.1352, allocations: 145.4 kB / 0.6314 GB, free: 2.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.137, allocations: 0.7405 MB / 0.6321 GB, free: 1.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1371, allocations: 4 kB / 0.6321 GB, free: 1.469 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1371, allocations: 0 / 0.6321 GB, free: 1.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.1371, allocations: 0 / 0.6321 GB, free: 1.469 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00212/0.1392, allocations: 0.8781 MB / 0.633 GB, free: 0.5352 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.1393, allocations: 8.031 kB / 0.633 GB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005017/0.1398, allocations: 83.23 kB / 0.6331 GB, free: 456 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.141, allocations: 484.6 kB / 0.6335 GB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.17e-05/0.141, allocations: 37 kB / 0.6336 GB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1412, allocations: 43.95 kB / 0.6336 GB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.1427, allocations: 0.6299 MB / 0.6342 GB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.1427, allocations: 4 kB / 0.6342 GB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.1428, allocations: 20 kB / 0.6342 GB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.1429, allocations: 12 kB / 0.6343 GB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.1442, allocations: 0.5229 MB / 0.6348 GB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005687/0.1499, allocations: 3.087 MB / 0.6378 GB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.1506, allocations: 216.5 kB / 0.638 GB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.1509, allocations: 122.3 kB / 0.6381 GB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002197/0.1531, allocations: 1.04 MB / 0.6391 GB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004483/0.1536, allocations: 192.9 kB / 0.6393 GB, free: 9.633 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.028e-06/0.1537, allocations: 0 / 0.6393 GB, free: 9.633 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001163/0.1548, allocations: 394.4 kB / 0.6397 GB, free: 9.234 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.155, allocations: 162.2 kB / 0.6398 GB, free: 9.039 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008599/0.1558, allocations: 498.7 kB / 0.6403 GB, free: 8.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.247e-05/0.1559, allocations: 33.7 kB / 0.6403 GB, free: 8.504 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003752/0.1563, allocations: 362.6 kB / 0.6407 GB, free: 8.145 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.1564, allocations: 75 kB / 0.6408 GB, free: 8.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.1565, allocations: 12 kB / 0.6408 GB, free: 8.059 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.1567, allocations: 362.8 kB / 0.6411 GB, free: 7.695 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.157, allocations: 113 kB / 0.6412 GB, free: 7.586 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005731/0.1576, allocations: 413.3 kB / 0.6416 GB, free: 7.043 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.1581, allocations: 219 kB / 0.6418 GB, free: 6.824 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/0.1582, allocations: 4 kB / 0.6418 GB, free: 6.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001672/0.1599, allocations: 0.5986 MB / 0.6424 GB, free: 6.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003639/0.1603, allocations: 402.6 kB / 0.6428 GB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.1603, allocations: 8 kB / 0.6428 GB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.697e-05/0.1603, allocations: 12 kB / 0.6428 GB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002507/0.1629, allocations: 223.6 kB / 0.643 GB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006997/0.1636, allocations: 0.6327 MB / 0.6437 GB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/0.1644, allocations: 79.38 kB / 0.6437 GB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.927e-05/0.1645, allocations: 35.98 kB / 0.6438 GB, free: 4.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1645, allocations: 4 kB / 0.6438 GB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001356/0.1659, allocations: 0.5403 MB / 0.6443 GB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.166, allocations: 8 kB / 0.6443 GB, free: 4.113 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.166, allocations: 16 kB / 0.6443 GB, free: 4.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007751/0.1668, allocations: 123.8 kB / 0.6444 GB, free: 3.977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.744e-05/0.1668, allocations: 23.86 kB / 0.6445 GB, free: 3.953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005951/0.1674, allocations: 67.95 kB / 0.6445 GB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-05/0.1675, allocations: 32 kB / 0.6446 GB, free: 3.855 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005071/0.168, allocations: 306.6 kB / 0.6448 GB, free: 3.539 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.1682, allocations: 51.44 kB / 0.6449 GB, free: 3.488 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002039/0.1702, allocations: 0.6638 MB / 0.6455 GB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.1703, allocations: 0 / 0.6455 GB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.1703, allocations: 0 / 0.6455 GB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/0.1707, allocations: 188.1 kB / 0.6457 GB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.1709, allocations: 12 kB / 0.6457 GB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.1713, allocations: 16 kB / 0.6457 GB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.674e-05/0.1714, allocations: 19.97 kB / 0.6458 GB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001272/0.1726, allocations: 0.5179 MB / 0.6463 GB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001431/0.1741, allocations: 0.6983 MB / 0.647 GB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003293/0.1745, allocations: 132 kB / 0.6471 GB, free: 1.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007136/0.1752, allocations: 354.8 kB / 0.6474 GB, free: 0.8516 MB / 314.7 MB Notification: Performance of Backend: time 3.376e-06/0.1752, allocations: 0 / 0.6474 GB, free: 0.8516 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.3021/0.4773, allocations: 1.032 MB / 0.6484 GB, free: 48.01 MB / 314.7 MB Notification: Performance of SimCode: time 0.003437/0.4808, allocations: 1.775 MB / 0.6502 GB, free: 46.89 MB / 314.7 MB Notification: Performance of Templates: time 0.03409/0.5149, allocations: 11.89 MB / 0.6618 GB, free: 42.84 MB / 314.7 MB