Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") 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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 100.2 kB / 16.98 MB, free: 5.938 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.00171/0.00171, allocations: 187.6 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2039/0.2039, allocations: 44.22 MB / 337.1 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 10.03 kB / 409.5 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1108, allocations: 61.92 MB / 471.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.01525/0.1261, allocations: 14.62 MB / 486.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00594/0.1321, allocations: 3.821 MB / 489.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008499/0.133, allocations: 19.81 kB / 489.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009623/0.1339, allocations: 234.8 kB / 490.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.1358, allocations: 0.627 MB / 490.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002144/0.138, allocations: 0.768 MB / 491.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/0.1395, allocations: 0.8601 MB / 492.4 MB, free: 8.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004955/0.14, allocations: 353.2 kB / 492.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006875/0.1407, allocations: 470.4 kB / 493.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004036/0.1411, allocations: 330.6 kB / 493.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.917e-05/0.1412, allocations: 24 kB / 493.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.1422, allocations: 0.5111 MB / 494.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1424, allocations: 135.5 kB / 494.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1426, allocations: 145.4 kB / 494.3 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008855/0.1435, allocations: 0.7679 MB / 495.1 MB, free: 5.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.1435, allocations: 0 / 495.1 MB, free: 5.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1435, allocations: 4 kB / 495.1 MB, free: 5.977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.1435, allocations: 0 / 495.1 MB, free: 5.977 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001377/0.1449, allocations: 0.8859 MB / 496 MB, free: 5.035 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1449, allocations: 8.031 kB / 496 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.1452, allocations: 83.23 kB / 496.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006749/0.1459, allocations: 468.6 kB / 496.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.146, allocations: 37 kB / 496.6 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.146, allocations: 40 kB / 496.6 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009281/0.147, allocations: 0.6533 MB / 497.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.147, allocations: 0 / 497.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.854e-05/0.1471, allocations: 24 kB / 497.3 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.1471, allocations: 15.95 kB / 497.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007636/0.1478, allocations: 0.5308 MB / 497.8 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003468/0.1513, allocations: 3.159 MB / 0.4893 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.1517, allocations: 226.7 kB / 0.4895 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003042/0.152, allocations: 336.4 kB / 0.4898 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004004/0.1524, allocations: 306.7 kB / 0.4901 GB, free: 14.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.422e-06/0.1524, allocations: 0 / 0.4901 GB, free: 14.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009783/0.1534, allocations: 0.6151 MB / 0.4907 GB, free: 14.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.1536, allocations: 294.7 kB / 0.491 GB, free: 13.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006389/0.1542, allocations: 0.5497 MB / 0.4915 GB, free: 13.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.738e-05/0.1543, allocations: 33.7 kB / 0.4915 GB, free: 13.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002949/0.1546, allocations: 347 kB / 0.4919 GB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.765e-05/0.1547, allocations: 90.73 kB / 0.492 GB, free: 12.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.1547, allocations: 12 kB / 0.492 GB, free: 12.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.1549, allocations: 366.8 kB / 0.4923 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1552, allocations: 153 kB / 0.4925 GB, free: 12.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.1557, allocations: 393.4 kB / 0.4928 GB, free: 11.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003508/0.156, allocations: 229.6 kB / 0.4931 GB, free: 11.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.1561, allocations: 4 kB / 0.4931 GB, free: 11.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001055/0.1571, allocations: 0.6272 MB / 0.4937 GB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00118/0.1583, allocations: 2.134 MB / 0.4958 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.1583, allocations: 8 kB / 0.4958 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/0.1584, allocations: 8 kB / 0.4958 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.1598, allocations: 199.7 kB / 0.496 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004953/0.1604, allocations: 0.6288 MB / 0.4966 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.1608, allocations: 83.2 kB / 0.4967 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/0.1609, allocations: 32.08 kB / 0.4967 GB, free: 7.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.1609, allocations: 6.344 kB / 0.4967 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000806/0.1617, allocations: 0.5482 MB / 0.4972 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1618, allocations: 11.98 kB / 0.4972 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.1618, allocations: 15.95 kB / 0.4973 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.1622, allocations: 111.8 kB / 0.4974 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.1622, allocations: 11.94 kB / 0.4974 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003867/0.1626, allocations: 67.69 kB / 0.4974 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.985e-05/0.1626, allocations: 31.98 kB / 0.4975 GB, free: 6.773 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * 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.0003876/0.163, allocations: 302.6 kB / 0.4978 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.061e-05/0.1631, allocations: 63.25 kB / 0.4978 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.1645, allocations: 0.7815 MB / 0.4986 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.1646, allocations: 4 kB / 0.4986 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1646, allocations: 4 kB / 0.4986 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.1646, allocations: 7.984 kB / 0.4986 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005953/0.1652, allocations: 0.5403 MB / 0.4991 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1652, allocations: 0 / 0.4991 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006113/0.1658, allocations: 119.8 kB / 0.4992 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1658, allocations: 0 / 0.4992 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.1659, allocations: 23.98 kB / 0.4993 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003376/0.1662, allocations: 0.5898 MB / 0.4998 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1662, allocations: 3.938 kB / 0.4998 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007545/0.167, allocations: 0.5518 MB / 0.5004 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.1673, allocations: 224.1 kB / 0.5006 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.571e-05/0.1674, allocations: 16.09 kB / 0.5006 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.1677, allocations: 19.98 kB / 0.5006 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.1678, allocations: 27.95 kB / 0.5007 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.1678, allocations: 23.98 kB / 0.5007 GB, free: 3.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004713/0.1683, allocations: 411.1 kB / 0.5011 GB, free: 2.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1683, allocations: 0 / 0.5011 GB, free: 2.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001187/0.1695, allocations: 431.5 kB / 0.5015 GB, free: 2.559 MB / 382.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.0007198/0.1702, allocations: 337 kB / 0.5018 GB, free: 2.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.1726, allocations: 0.9569 MB / 0.5027 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1726, allocations: 0.6875 kB / 0.5027 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009538/0.1735, allocations: 392.2 kB / 0.5031 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.1748, allocations: 252.8 kB / 0.5034 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2565/0.4313, allocations: 1.279 MB / 0.5046 GB, free: 31.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.4318, allocations: 0.9061 MB / 0.5055 GB, free: 30.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000871/0.4327, allocations: 210.2 kB / 0.5057 GB, free: 30.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.4329, allocations: 76.34 kB / 0.5058 GB, free: 30.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.362e-06/0.4329, allocations: 0 / 0.5058 GB, free: 30.3 MB / 382.1 MB Notification: Performance of Templates: time 0.02936/0.4623, allocations: 14.18 MB / 0.5196 GB, free: 27.07 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches