Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001635/0.001635, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, 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 2.502/2.502, allocations: 227.4 MB / 246.9 MB, free: 9.031 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3711/0.3711, allocations: 46.1 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002593/0.002592, allocations: 72.98 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1829, allocations: 62.45 MB / 479.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002773/0.1857, allocations: 0.5825 MB / 480.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006511/0.1864, allocations: 171.5 kB / 480.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.075e-05/0.1865, allocations: 4 kB / 480.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.212e-05/0.1865, allocations: 3.938 kB / 480.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002789/0.1868, allocations: 15.92 kB / 480.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.478e-06/0.1868, allocations: 0 / 480.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.14e-05/0.1869, allocations: 27.86 kB / 480.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.423e-05/0.187, allocations: 0 / 480.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.096e-05/0.187, allocations: 15.91 kB / 480.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.39e-05/0.1871, allocations: 15.92 kB / 480.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.1871, allocations: 0 / 480.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001681/0.1873, allocations: 51.95 kB / 480.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.1873, allocations: 4 kB / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.1873, allocations: 19.86 kB / 480.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.1875, allocations: 27.95 kB / 480.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.1875, allocations: 0 / 480.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1875, allocations: 0 / 480.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.1875, allocations: 0 / 480.9 MB, free: 4.746 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004115/0.1879, allocations: 339.8 kB / 481.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.188, allocations: 8.031 kB / 481.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/0.188, allocations: 8.844 kB / 481.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.1882, allocations: 172.3 kB / 481.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1882, allocations: 384 / 481.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.1882, allocations: 8.375 kB / 481.4 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.1884, allocations: 58.19 kB / 481.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1884, allocations: 192 / 481.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.1885, allocations: 7.875 kB / 481.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1885, allocations: 0 / 481.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.1886, allocations: 55.95 kB / 481.5 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002399/0.1889, allocations: 165.7 kB / 481.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.1891, allocations: 82.59 kB / 481.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.118e-05/0.1892, allocations: 32.84 kB / 481.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004319/0.1896, allocations: 251.3 kB / 482 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.1897, allocations: 38.56 kB / 482.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.1897, allocations: 0 / 482.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003353/0.19, allocations: 109.6 kB / 482.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.1901, allocations: 55.41 kB / 482.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.243e-05/0.1902, allocations: 93.86 kB / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1902, allocations: 29.7 kB / 482.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.409e-05/0.1902, allocations: 80.14 kB / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.929e-05/0.1903, allocations: 35.53 kB / 482.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.026e-05/0.1904, allocations: 21.72 kB / 482.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1905, allocations: 318.8 kB / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.789e-05/0.1906, allocations: 20.12 kB / 482.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.763e-05/0.1906, allocations: 23.92 kB / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.1908, allocations: 45.42 kB / 482.9 MB, free: 2.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1908, allocations: 3.938 kB / 482.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001809/0.191, allocations: 89.61 kB / 483 MB, free: 2.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.191, allocations: 4 kB / 483 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.191, allocations: 3.938 kB / 483 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.191, allocations: 0 / 483 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.1912, allocations: 16 kB / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1912, allocations: 0 / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.922e-05/0.1913, allocations: 19.78 kB / 483 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.1913, allocations: 4 kB / 483 MB, free: 2.309 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 (10): * Single equations (assignments): 10 * 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 0.0001079/0.1914, allocations: 117.8 kB / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.1914, allocations: 4 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002727/0.1917, allocations: 97.52 kB / 483.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1917, allocations: 4 kB / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1917, allocations: 0 / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1918, allocations: 3.984 kB / 483.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.1919, allocations: 181.6 kB / 483.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.192, allocations: 0 / 483.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.947e-05/0.1921, allocations: 12 kB / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1921, allocations: 0 / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1921, allocations: 3.938 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1921, allocations: 4 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1921, allocations: 0 / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.1923, allocations: 109.2 kB / 483.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.1924, allocations: 89.02 kB / 483.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.1924, allocations: 4.031 kB / 483.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.394e-05/0.1925, allocations: 7.938 kB / 483.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.1925, allocations: 7.984 kB / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.1925, allocations: 8 kB / 483.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.072e-05/0.1926, allocations: 75.28 kB / 483.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1926, allocations: 0 / 483.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.1929, allocations: 12 kB / 483.7 MB, free: 1.48 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0002174/0.1931, allocations: 127.2 kB / 483.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001824/0.1933, allocations: 47.98 kB / 483.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1933, allocations: 0 / 483.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.581e-05/0.1934, allocations: 35.92 kB / 484 MB, free: 1.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.1936, allocations: 4 kB / 484 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.1941, allocations: 172.4 kB / 484.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.1945, allocations: 0.6887 MB / 484.8 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.055e-05/0.1945, allocations: 15.44 kB / 484.8 MB, free: 336 kB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1945, allocations: 0 / 484.8 MB, free: 336 kB / 350.1 MB Notification: Performance of Templates: time 0.003203/0.1977, allocations: 0.8049 MB / 485.6 MB, free: 15.52 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches