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.02627/0.02627, allocations: 1.422 MB / 17.2 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.2489/0.2489, allocations: 22.37 MB / 40.6 MB, free: 0.7891 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.001495/0.001495, allocations: 117.1 kB / 48.08 MB, free: 2.48 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.002037/0.002037, allocations: 184.5 kB / 55.65 MB, free: 6.543 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.673/2.673, allocations: 222.9 MB / 286 MB, free: 1.449 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 1.665/1.665, allocations: 127.8 MB / 470.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003534/0.003534, allocations: 124.8 kB / 0.5532 GB, free: 42.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3394, allocations: 82.37 MB / 0.6336 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.003953/0.3434, allocations: 1.061 MB / 0.6347 GB, free: 12.47 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008575/0.3443, allocations: 224.1 kB / 0.6349 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.89e-05/0.3444, allocations: 0 / 0.6349 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.3445, allocations: 7.938 kB / 0.6349 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 1.096e-05/0.3446, allocations: 0 / 0.6349 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.3451, allocations: 51.94 kB / 0.6349 GB, free: 12.2 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 6.47e-05/0.3451, allocations: 15.88 kB / 0.6349 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.808e-05/0.3452, allocations: 3.938 kB / 0.6349 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.986e-05/0.3452, allocations: 4 kB / 0.6349 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.923e-05/0.3453, allocations: 3.984 kB / 0.6349 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.3453, allocations: 0 / 0.6349 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002476/0.3455, allocations: 71.92 kB / 0.635 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.3456, allocations: 3.984 kB / 0.635 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.01e-05/0.3456, allocations: 15.94 kB / 0.635 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.3458, allocations: 31.94 kB / 0.6351 GB, free: 12.05 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.3458, allocations: 0 / 0.6351 GB, free: 12.05 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3458, allocations: 0 / 0.6351 GB, free: 12.05 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.3458, allocations: 0 / 0.6351 GB, free: 12.05 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.0005152/0.3464, allocations: 319.6 kB / 0.6354 GB, free: 11.68 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.204e-05/0.3464, allocations: 9.156 kB / 0.6354 GB, free: 11.68 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.628e-05/0.3465, allocations: 4.844 kB / 0.6354 GB, free: 11.67 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.3468, allocations: 176.5 kB / 0.6356 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.3468, allocations: 4.375 kB / 0.6356 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.3468, allocations: 4.359 kB / 0.6356 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.347, allocations: 38.25 kB / 0.6356 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.347, allocations: 192 / 0.6356 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.347, allocations: 3.938 kB / 0.6356 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.347, allocations: 4 kB / 0.6356 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.9e-05/0.3471, allocations: 7.984 kB / 0.6356 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.3473, allocations: 149.6 kB / 0.6358 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.3475, allocations: 42.55 kB / 0.6358 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.955e-05/0.3475, allocations: 12.89 kB / 0.6358 GB, free: 11.13 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.3475, allocations: 0 / 0.6358 GB, free: 11.13 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.3475, allocations: 34.56 kB / 0.6358 GB, free: 11.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3476, allocations: 0 / 0.6358 GB, free: 11.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002069/0.3478, allocations: 49.67 kB / 0.6359 GB, free: 11.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.3478, allocations: 51.41 kB / 0.6359 GB, free: 10.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.348, allocations: 105.9 kB / 0.636 GB, free: 10.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.348, allocations: 25.7 kB / 0.6361 GB, free: 10.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.184e-05/0.348, allocations: 84.08 kB / 0.6361 GB, free: 10.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.3481, allocations: 3.906 kB / 0.6361 GB, free: 10.74 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.3481, allocations: 13.72 kB / 0.6362 GB, free: 10.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3483, allocations: 314.8 kB / 0.6365 GB, free: 10.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.351e-05/0.3483, allocations: 7.984 kB / 0.6365 GB, free: 10.39 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.671e-05/0.3484, allocations: 8 kB / 0.6365 GB, free: 10.39 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.465e-05/0.3484, allocations: 25 kB / 0.6365 GB, free: 10.36 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3484, allocations: 0 / 0.6365 GB, free: 10.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001071/0.3485, allocations: 45.61 kB / 0.6365 GB, free: 10.31 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.3486, allocations: 7.984 kB / 0.6366 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3486, allocations: 7.875 kB / 0.6366 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3486, allocations: 4 kB / 0.6366 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.247e-06/0.3486, allocations: 0 / 0.6366 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.3487, allocations: 3.938 kB / 0.6366 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.667e-05/0.3487, allocations: 0 / 0.6366 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.3487, allocations: 0 / 0.6366 GB, free: 10.29 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 0.000131/0.3488, allocations: 115.6 kB / 0.6367 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.3489, allocations: 0 / 0.6367 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.3489, allocations: 7.438 kB / 0.6367 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.3489, allocations: 0 / 0.6367 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.3489, allocations: 7.984 kB / 0.6367 GB, free: 10.15 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3489, allocations: 0 / 0.6367 GB, free: 10.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.3491, allocations: 149.7 kB / 0.6368 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3491, allocations: 192 / 0.6368 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.3491, allocations: 0 / 0.6368 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.3492, allocations: 0 / 0.6368 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.3492, allocations: 19.84 kB / 0.6369 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3492, allocations: 0 / 0.6369 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3492, allocations: 0 / 0.6369 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.3493, allocations: 73.11 kB / 0.6369 GB, free: 9.844 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.3494, allocations: 77.11 kB / 0.637 GB, free: 9.75 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.3494, allocations: 3.938 kB / 0.637 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.202e-05/0.3494, allocations: 3.938 kB / 0.637 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.3495, allocations: 4 kB / 0.637 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.3495, allocations: 4.031 kB / 0.637 GB, free: 9.734 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.854e-05/0.3495, allocations: 75.28 kB / 0.6371 GB, free: 9.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3495, allocations: 0 / 0.6371 GB, free: 9.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.3499, allocations: 23.98 kB / 0.6371 GB, free: 9.637 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.0002991/0.3502, allocations: 107.2 kB / 0.6372 GB, free: 9.523 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.3504, allocations: 19.98 kB / 0.6372 GB, free: 9.504 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3504, allocations: 0 / 0.6372 GB, free: 9.504 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.476e-05/0.3504, allocations: 8.156 kB / 0.6372 GB, free: 9.496 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.3507, allocations: 4 kB / 0.6372 GB, free: 9.492 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003702/0.3511, allocations: 124.4 kB / 0.6374 GB, free: 9.336 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.3515, allocations: 0.6809 MB / 0.638 GB, free: 8.629 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.3515, allocations: 15.31 kB / 0.638 GB, free: 8.613 MB / 462.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3515, allocations: 0 / 0.638 GB, free: 8.613 MB / 462.1 MB Notification: Performance of Templates: time 0.003545/0.3551, allocations: 0.6557 MB / 0.6387 GB, free: 7.957 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=480 -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