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.001183/0.001183, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.4 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.2142/0.2142, allocations: 46.1 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 64.7 kB / 418.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1738/0.176, allocations: 62.46 MB / 480.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002837/0.1789, allocations: 0.5191 MB / 481.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006712/0.1796, allocations: 166.2 kB / 481.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.179e-05/0.1796, allocations: 0 / 481.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.117e-05/0.1797, allocations: 0 / 481.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003737/0.1801, allocations: 31.78 kB / 481.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.951e-06/0.1801, allocations: 4 kB / 481.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.299e-05/0.1802, allocations: 23.86 kB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.201e-05/0.1803, allocations: 0 / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.775e-05/0.1803, allocations: 15.91 kB / 481.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.848e-05/0.1804, allocations: 15.92 kB / 481.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.1805, allocations: 8 kB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.1807, allocations: 51.95 kB / 481.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.1807, allocations: 0 / 481.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.402e-05/0.1807, allocations: 15.86 kB / 481.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.1809, allocations: 39.89 kB / 481.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1809, allocations: 0 / 481.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1809, allocations: 0 / 481.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1809, allocations: 0 / 481.6 MB, free: 4.402 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.0004721/0.1814, allocations: 343.8 kB / 481.9 MB, free: 4.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1815, allocations: 8.031 kB / 481.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.1815, allocations: 16.78 kB / 481.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.1817, allocations: 164.3 kB / 482.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.1818, allocations: 4.375 kB / 482.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.1818, allocations: 384 / 482.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.182, allocations: 66.17 kB / 482.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.182, allocations: 192 / 482.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.1821, allocations: 7.922 kB / 482.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1821, allocations: 4 kB / 482.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.1823, allocations: 51.95 kB / 482.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002813/0.1826, allocations: 165.7 kB / 482.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.1828, allocations: 86.58 kB / 482.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.158e-05/0.1829, allocations: 28.84 kB / 482.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005548/0.1835, allocations: 255.3 kB / 482.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.1836, allocations: 38.55 kB / 482.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.524e-06/0.1836, allocations: 4 kB / 482.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003857/0.184, allocations: 105.7 kB / 482.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.1841, allocations: 55.41 kB / 483 MB, free: 2.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.834e-05/0.1842, allocations: 93.84 kB / 483 MB, free: 2.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1842, allocations: 25.7 kB / 483.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.1843, allocations: 80.14 kB / 483.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.1843, allocations: 31.56 kB / 483.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.1844, allocations: 25.7 kB / 483.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1846, allocations: 315 kB / 483.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.848e-05/0.1847, allocations: 23.98 kB / 483.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.692e-05/0.1848, allocations: 20.25 kB / 483.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.185, allocations: 52.84 kB / 483.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.185, allocations: 0 / 483.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002362/0.1852, allocations: 81.62 kB / 483.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.1853, allocations: 4 kB / 483.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.1853, allocations: 3.938 kB / 483.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1853, allocations: 4 kB / 483.7 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.1855, allocations: 19.98 kB / 483.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1855, allocations: 0 / 483.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.824e-05/0.1856, allocations: 11.84 kB / 483.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.1856, allocations: 7.938 kB / 483.7 MB, free: 1.961 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.0001348/0.1858, allocations: 117.8 kB / 483.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.013e-05/0.1858, allocations: 0 / 483.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003203/0.1861, allocations: 105.5 kB / 484 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1862, allocations: 0 / 484 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.1862, allocations: 4 kB / 484 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.1862, allocations: 4 kB / 484 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.1864, allocations: 173.6 kB / 484.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1864, allocations: 0 / 484.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.1866, allocations: 20.36 kB / 484.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.1866, allocations: 0 / 484.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1866, allocations: 7.938 kB / 484.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1867, allocations: 0 / 484.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1867, allocations: 3.938 kB / 484.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.1869, allocations: 113 kB / 484.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.187, allocations: 81.02 kB / 484.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.1871, allocations: 7.938 kB / 484.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.145e-05/0.1871, allocations: 4 kB / 484.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.1872, allocations: 3.984 kB / 484.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.1872, allocations: 4 kB / 484.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.702e-05/0.1872, allocations: 79.28 kB / 484.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1873, allocations: 0 / 484.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.1877, allocations: 20.09 kB / 484.5 MB, free: 1.125 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.0002316/0.1879, allocations: 111.1 kB / 484.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002377/0.1882, allocations: 59.91 kB / 484.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1882, allocations: 0 / 484.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.204e-05/0.1883, allocations: 31.98 kB / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.1885, allocations: 5.062 kB / 484.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005123/0.1891, allocations: 166.5 kB / 484.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.1894, allocations: 0.6846 MB / 485.5 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.075e-05/0.1895, allocations: 15.44 kB / 485.5 MB, free: 16 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1895, allocations: 0 / 485.5 MB, free: 16 MB / 366.1 MB Notification: Performance of Templates: time 0.003838/0.1934, allocations: 0.8127 MB / 486.4 MB, free: 15.18 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