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.01776/0.01776, allocations: 1.43 MB / 16.55 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1525/0.1525, allocations: 22.38 MB / 39.95 MB, free: 0.8086 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.001185/0.001185, allocations: 96.05 kB / 47.42 MB, free: 2.418 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.001243/0.001243, allocations: 189.2 kB / 55 MB, free: 6.473 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 285.3 MB, free: 1.098 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.881/0.881, allocations: 127.8 MB / 469.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002201, allocations: 129.4 kB / 0.5525 GB, free: 43.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1648, allocations: 82.36 MB / 0.633 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.002479/0.1673, allocations: 1.065 MB / 0.634 GB, free: 12.37 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006022/0.168, allocations: 228 kB / 0.6342 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.834e-05/0.168, allocations: 0 / 0.6342 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 8.777e-05/0.1681, allocations: 4 kB / 0.6342 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 9.388e-06/0.1682, allocations: 3.938 kB / 0.6342 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.1686, allocations: 51.89 kB / 0.6343 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 4.162e-05/0.1686, allocations: 11.98 kB / 0.6343 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.939e-05/0.1687, allocations: 3.984 kB / 0.6343 GB, free: 12.07 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.993e-05/0.1687, allocations: 3.938 kB / 0.6343 GB, free: 12.07 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.094e-05/0.1687, allocations: 4 kB / 0.6343 GB, free: 12.07 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-06/0.1687, allocations: 0 / 0.6343 GB, free: 12.07 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.1689, allocations: 75.91 kB / 0.6344 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.606e-05/0.169, allocations: 0 / 0.6344 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 2.195e-05/0.169, allocations: 11.94 kB / 0.6344 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.1691, allocations: 51.91 kB / 0.6344 GB, free: 11.93 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1691, allocations: 0 / 0.6344 GB, free: 11.93 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1692, allocations: 0 / 0.6344 GB, free: 11.93 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1692, allocations: 3.938 kB / 0.6345 GB, free: 11.93 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.000339/0.1695, allocations: 323.6 kB / 0.6348 GB, free: 11.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1696, allocations: 9.156 kB / 0.6348 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.1696, allocations: 4.844 kB / 0.6348 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.1698, allocations: 168.6 kB / 0.6349 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-06/0.1698, allocations: 8.312 kB / 0.6349 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.1698, allocations: 384 / 0.6349 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.1699, allocations: 38.23 kB / 0.635 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.1699, allocations: 4.188 kB / 0.635 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.1699, allocations: 3.938 kB / 0.635 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.17, allocations: 0 / 0.635 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.364e-05/0.17, allocations: 4 kB / 0.635 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.1702, allocations: 153.7 kB / 0.6351 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.54e-05/0.1703, allocations: 38.52 kB / 0.6352 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.009e-05/0.1703, allocations: 12.97 kB / 0.6352 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-06/0.1703, allocations: 0 / 0.6352 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.1703, allocations: 34.56 kB / 0.6352 GB, free: 10.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.1703, allocations: 0 / 0.6352 GB, free: 10.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001476/0.1705, allocations: 57.61 kB / 0.6353 GB, free: 10.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.1705, allocations: 51.41 kB / 0.6353 GB, free: 10.85 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.843e-05/0.1706, allocations: 97.89 kB / 0.6354 GB, free: 10.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.1706, allocations: 25.7 kB / 0.6354 GB, free: 10.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.554e-05/0.1707, allocations: 80.14 kB / 0.6355 GB, free: 10.63 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.1707, allocations: 7.891 kB / 0.6355 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.1707, allocations: 21.66 kB / 0.6355 GB, free: 10.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.303e-05/0.1708, allocations: 310.8 kB / 0.6358 GB, free: 10.29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.407e-05/0.1709, allocations: 7.938 kB / 0.6358 GB, free: 10.28 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.102e-05/0.1709, allocations: 7.984 kB / 0.6359 GB, free: 10.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.907e-05/0.1709, allocations: 25.02 kB / 0.6359 GB, free: 10.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1709, allocations: 0 / 0.6359 GB, free: 10.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.883e-05/0.171, allocations: 45.59 kB / 0.6359 GB, free: 10.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.171, allocations: 7.938 kB / 0.6359 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.171, allocations: 7.938 kB / 0.6359 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1711, allocations: 0 / 0.6359 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1711, allocations: 0 / 0.6359 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.1711, allocations: 0 / 0.6359 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.26e-05/0.1711, allocations: 3.938 kB / 0.6359 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.1711, allocations: 0 / 0.6359 GB, free: 10.17 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.796e-05/0.1712, allocations: 119.6 kB / 0.6361 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.924e-06/0.1712, allocations: 0 / 0.6361 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.652e-05/0.1712, allocations: 11.44 kB / 0.6361 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.1712, allocations: 4 kB / 0.6361 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1712, allocations: 4 kB / 0.6361 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1712, allocations: 0 / 0.6361 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.1714, allocations: 149.7 kB / 0.6362 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1714, allocations: 0 / 0.6362 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1714, allocations: 0 / 0.6362 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1714, allocations: 0 / 0.6362 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.1714, allocations: 7.938 kB / 0.6362 GB, free: 9.824 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1714, allocations: 0 / 0.6362 GB, free: 9.824 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1714, allocations: 4 kB / 0.6362 GB, free: 9.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.147e-05/0.1715, allocations: 65.12 kB / 0.6363 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.1715, allocations: 81.09 kB / 0.6364 GB, free: 9.641 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.1716, allocations: 7.922 kB / 0.6364 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.036e-06/0.1716, allocations: 4 kB / 0.6364 GB, free: 9.629 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.717e-05/0.1716, allocations: 3.969 kB / 0.6364 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.1716, allocations: 4 kB / 0.6364 GB, free: 9.621 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.141e-05/0.1716, allocations: 75.28 kB / 0.6365 GB, free: 9.547 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1717, allocations: 0 / 0.6365 GB, free: 9.547 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.1719, allocations: 20 kB / 0.6365 GB, free: 9.527 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.0001848/0.1721, allocations: 111.2 kB / 0.6366 GB, free: 9.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 7.604e-05/0.1722, allocations: 16 kB / 0.6366 GB, free: 9.395 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1722, allocations: 160 / 0.6366 GB, free: 9.395 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.207e-05/0.1722, allocations: 11.98 kB / 0.6366 GB, free: 9.383 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001444/0.1723, allocations: 4 kB / 0.6366 GB, free: 9.379 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.1726, allocations: 106.6 kB / 0.6367 GB, free: 9.246 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.1728, allocations: 0.6731 MB / 0.6374 GB, free: 8.547 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 1.992e-05/0.1728, allocations: 7.922 kB / 0.6374 GB, free: 8.539 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.78e-05/0.1729, allocations: 11.38 kB / 0.6374 GB, free: 8.527 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1729, allocations: 0 / 0.6374 GB, free: 8.527 MB / 462.1 MB Notification: Performance of Templates: time 0.0816/0.2545, allocations: 0.6116 MB / 0.638 GB, free: 7.918 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