Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001757/0.001757, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002517/0.002518, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.867/1.867, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3483/0.3483, allocations: 46.1 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 76.28 kB / 417.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.161, allocations: 62.44 MB / 479.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.002605/0.1636, allocations: 0.5411 MB / 480.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002866/0.1665, allocations: 1.474 MB / 481.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.368e-05/0.1666, allocations: 0 / 481.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.896e-05/0.1667, allocations: 0 / 481.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.488e-05/0.1667, allocations: 0 / 481.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009338/0.1677, allocations: 155.3 kB / 482.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.881e-05/0.1677, allocations: 11.92 kB / 482.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.981e-05/0.1678, allocations: 0 / 482.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.234e-05/0.1679, allocations: 4 kB / 482.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.771e-05/0.1679, allocations: 7.938 kB / 482.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.168, allocations: 4 kB / 482.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006494/0.1686, allocations: 279.6 kB / 482.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.1687, allocations: 0 / 482.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.1687, allocations: 3.938 kB / 482.4 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.1689, allocations: 91.8 kB / 482.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.169, allocations: 0 / 482.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.169, allocations: 0 / 482.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.169, allocations: 0 / 482.5 MB, free: 3.18 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004896/0.1695, allocations: 335.6 kB / 482.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.1695, allocations: 8.875 kB / 482.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.1696, allocations: 8.938 kB / 482.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.1697, allocations: 164.4 kB / 483 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.1698, allocations: 4.312 kB / 483 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.1698, allocations: 384 / 483 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.1699, allocations: 34.02 kB / 483 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1699, allocations: 0 / 483 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.1699, allocations: 0 / 483 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.17, allocations: 0 / 483 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.919e-05/0.17, allocations: 4 kB / 483 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.1702, allocations: 153.7 kB / 483.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.483e-05/0.1702, allocations: 22.55 kB / 483.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.387e-05/0.1703, allocations: 4.859 kB / 483.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.1703, allocations: 0 / 483.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.1703, allocations: 38.56 kB / 483.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.1703, allocations: 0 / 483.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.1705, allocations: 41.69 kB / 483.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.1706, allocations: 55.44 kB / 483.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.655e-05/0.1707, allocations: 97.8 kB / 483.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.1707, allocations: 25.7 kB / 483.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.1708, allocations: 80.14 kB / 483.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.1708, allocations: 8 kB / 483.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.1708, allocations: 13.66 kB / 483.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.171, allocations: 314.8 kB / 483.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.798e-05/0.171, allocations: 12.06 kB / 483.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.977e-06/0.171, allocations: 0 / 483.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.94e-05/0.1711, allocations: 16.86 kB / 483.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1711, allocations: 0 / 483.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.696e-05/0.1712, allocations: 37.7 kB / 483.9 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.1712, allocations: 7.938 kB / 483.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1712, allocations: 0 / 483.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1712, allocations: 3.984 kB / 484 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.862e-05/0.1714, allocations: 4.094 kB / 484 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1714, allocations: 7.938 kB / 484 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.687e-05/0.1714, allocations: 0 / 484 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.1714, allocations: 3.984 kB / 484 MB, free: 1.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.788e-05/0.1715, allocations: 106.1 kB / 484.1 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.1715, allocations: 7.938 kB / 484.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.1717, allocations: 48.81 kB / 484.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1717, allocations: 0 / 484.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1717, allocations: 0 / 484.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1717, allocations: 0 / 484.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.1719, allocations: 153.6 kB / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.1719, allocations: 0 / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.1719, allocations: 0 / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1719, allocations: 3.938 kB / 484.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.954e-06/0.1719, allocations: 0 / 484.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1719, allocations: 0 / 484.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1719, allocations: 7.984 kB / 484.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.172, allocations: 73 kB / 484.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.1721, allocations: 81.05 kB / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.1721, allocations: 0 / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.337e-05/0.1722, allocations: 0 / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.677e-05/0.1722, allocations: 4 kB / 484.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.1723, allocations: 0 / 484.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.176e-05/0.1723, allocations: 79.31 kB / 484.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1723, allocations: 0 / 484.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.1727, allocations: 47.98 kB / 484.6 MB, free: 0.7812 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003695/0.173, allocations: 131.2 kB / 484.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.532e-05/0.1731, allocations: 11.92 kB / 484.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1732, allocations: 7.875 kB / 484.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-05/0.1732, allocations: 29.7 kB / 484.7 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.1734, allocations: 4.219 kB / 484.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002972/0.1737, allocations: 116.4 kB / 484.9 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.174, allocations: 0.6731 MB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.837e-05/0.174, allocations: 7.438 kB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1741, allocations: 0 / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of Templates: time 0.003251/0.1773, allocations: 0.9129 MB / 486.5 MB, free: 14.82 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches