Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo", uses=false) 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/ClaRa 1.8.2-main/package.mo", uses=false) Using package ClaRa with version 1.8.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/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) Using package TILMedia with version 1.8.1 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo) Using package SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Running command: translateModel(ClaRa.Basics.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|L|N|Time|_derdummy|_dummy|dx.1.|dx.2.|dx.3.",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") translateModel(ClaRa.Basics.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|L|N|Time|_derdummy|_dummy|dx.1.|dx.2.|dx.3.",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.01505/0.01505, allocations: 1.411 MB / 16.68 MB, free: 4.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1187/0.1187, allocations: 22.59 MB / 40.31 MB, free: 1.074 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008008/0.000801, allocations: 91.17 kB / 48.06 MB, free: 2.402 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009395/0.0009395, allocations: 180.4 kB / 55.92 MB, free: 3.973 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.3 MB / 286.9 MB, free: 2.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 12.07/12.07, allocations: 127.7 MB / 472.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.0005309, allocations: 18.03 kB / 0.5567 GB, free: 42.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1856, allocations: 83.87 MB / 0.6386 GB, free: 11 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.001087/0.1867, allocations: 0.7392 MB / 0.6393 GB, free: 10.26 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005045/0.1872, allocations: 215.4 kB / 0.6395 GB, free: 10.05 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.1873, allocations: 0 / 0.6395 GB, free: 10.05 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 8.531e-05/0.1874, allocations: 7.984 kB / 0.6395 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 8.105e-06/0.1874, allocations: 4 kB / 0.6395 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.1878, allocations: 55.88 kB / 0.6396 GB, free: 9.98 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 3.456e-05/0.1878, allocations: 0 / 0.6396 GB, free: 9.98 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.1878, allocations: 4 kB / 0.6396 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.331e-05/0.1879, allocations: 3.828 kB / 0.6396 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.837e-05/0.1879, allocations: 0 / 0.6396 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.225e-06/0.1879, allocations: 0 / 0.6396 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.1881, allocations: 79.91 kB / 0.6397 GB, free: 9.898 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.299e-05/0.1881, allocations: 11.92 kB / 0.6397 GB, free: 9.887 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.033e-05/0.1882, allocations: 29.64 kB / 0.6397 GB, free: 9.852 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.1883, allocations: 47.92 kB / 0.6398 GB, free: 9.805 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1883, allocations: 0 / 0.6398 GB, free: 9.805 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1883, allocations: 3.938 kB / 0.6398 GB, free: 9.801 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.1883, allocations: 0 / 0.6398 GB, free: 9.801 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002855/0.1886, allocations: 327.8 kB / 0.6401 GB, free: 9.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1887, allocations: 9.156 kB / 0.6401 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.179e-05/0.1887, allocations: 4.844 kB / 0.6401 GB, free: 9.418 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.1888, allocations: 172.4 kB / 0.6402 GB, free: 9.211 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1888, allocations: 4.375 kB / 0.6403 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.1889, allocations: 8.312 kB / 0.6403 GB, free: 9.199 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.839e-05/0.189, allocations: 30.27 kB / 0.6403 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.189, allocations: 192 / 0.6403 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.189, allocations: 7.938 kB / 0.6403 GB, free: 9.156 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.189, allocations: 0 / 0.6403 GB, free: 9.156 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.084e-05/0.189, allocations: 11.92 kB / 0.6403 GB, free: 9.145 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.1892, allocations: 149.7 kB / 0.6405 GB, free: 8.949 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.972e-05/0.1893, allocations: 34.61 kB / 0.6405 GB, free: 8.906 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.119e-05/0.1893, allocations: 12.89 kB / 0.6405 GB, free: 8.891 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-06/0.1893, allocations: 3.984 kB / 0.6405 GB, free: 8.887 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.1893, allocations: 34.56 kB / 0.6405 GB, free: 8.844 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1893, allocations: 0 / 0.6405 GB, free: 8.844 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001303/0.1895, allocations: 57.61 kB / 0.6406 GB, free: 8.781 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.1895, allocations: 51.41 kB / 0.6406 GB, free: 8.719 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.594e-05/0.1896, allocations: 97.84 kB / 0.6407 GB, free: 8.613 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.1896, allocations: 29.86 kB / 0.6408 GB, free: 8.578 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.224e-05/0.1897, allocations: 80.14 kB / 0.6408 GB, free: 8.496 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.1897, allocations: 7.906 kB / 0.6408 GB, free: 8.488 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.1897, allocations: 9.719 kB / 0.6409 GB, free: 8.473 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1898, allocations: 314.8 kB / 0.6412 GB, free: 8.156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.1898, allocations: 7.984 kB / 0.6412 GB, free: 8.148 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.243e-05/0.1899, allocations: 4 kB / 0.6412 GB, free: 8.145 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.081e-05/0.1899, allocations: 16.86 kB / 0.6412 GB, free: 8.125 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1899, allocations: 4 kB / 0.6412 GB, free: 8.121 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.885e-05/0.19, allocations: 53.56 kB / 0.6412 GB, free: 8.062 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.19, allocations: 4 kB / 0.6412 GB, free: 8.059 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.19, allocations: 3.938 kB / 0.6412 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.19, allocations: 0 / 0.6412 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.883e-06/0.19, allocations: 3.984 kB / 0.6412 GB, free: 8.051 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-06/0.19, allocations: 0 / 0.6412 GB, free: 8.051 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.023e-05/0.1901, allocations: 4 kB / 0.6413 GB, free: 8.047 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.1901, allocations: 0 / 0.6413 GB, free: 8.047 MB / 462.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): 0 * Array equations: 1 * 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 6.526e-05/0.1901, allocations: 107.6 kB / 0.6414 GB, free: 7.934 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.1902, allocations: 12.03 kB / 0.6414 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/0.1902, allocations: 7.438 kB / 0.6414 GB, free: 7.914 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.1902, allocations: 3.938 kB / 0.6414 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1902, allocations: 3.938 kB / 0.6414 GB, free: 7.906 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1902, allocations: 0 / 0.6414 GB, free: 7.906 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.207e-05/0.1903, allocations: 149.7 kB / 0.6415 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1903, allocations: 4 kB / 0.6415 GB, free: 7.707 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1903, allocations: 0 / 0.6415 GB, free: 7.707 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1903, allocations: 0 / 0.6415 GB, free: 7.707 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.1903, allocations: 7.922 kB / 0.6415 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1903, allocations: 4 kB / 0.6415 GB, free: 7.695 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.1903, allocations: 7.969 kB / 0.6415 GB, free: 7.688 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.476e-05/0.1904, allocations: 73.06 kB / 0.6416 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.1905, allocations: 77.11 kB / 0.6417 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.1905, allocations: 3.938 kB / 0.6417 GB, free: 7.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.334e-06/0.1905, allocations: 0 / 0.6417 GB, free: 7.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.526e-06/0.1905, allocations: 0 / 0.6417 GB, free: 7.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.1905, allocations: 4 kB / 0.6417 GB, free: 7.496 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.921e-05/0.1905, allocations: 79.31 kB / 0.6418 GB, free: 7.418 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1906, allocations: 0 / 0.6418 GB, free: 7.418 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001931/0.1907, allocations: 20 kB / 0.6418 GB, free: 7.398 MB / 462.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: 1 * 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.0001547/0.1909, allocations: 119.2 kB / 0.6419 GB, free: 7.273 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 5.214e-05/0.191, allocations: 15.92 kB / 0.6419 GB, free: 7.258 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.191, allocations: 0 / 0.6419 GB, free: 7.258 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.23e-05/0.191, allocations: 8 kB / 0.6419 GB, free: 7.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.1911, allocations: 8.984 kB / 0.6419 GB, free: 7.246 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001569/0.1913, allocations: 102.7 kB / 0.642 GB, free: 7.117 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.1915, allocations: 0.6811 MB / 0.6427 GB, free: 6.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 1.36e-05/0.1915, allocations: 4 kB / 0.6427 GB, free: 6.406 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.481e-05/0.1916, allocations: 11.44 kB / 0.6427 GB, free: 6.395 MB / 462.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1916, allocations: 0 / 0.6427 GB, free: 6.395 MB / 462.1 MB Notification: Performance of Templates: time 0.1559/0.3475, allocations: 0.6035 MB / 0.6433 GB, free: 5.793 MB / 462.1 MB make -j1 -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.makefile (rm -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe ; mkfifo ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe >> ../files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.sim & ./ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Basics.Functions.TestCases.TestGenerateGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches