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.01289/0.01289, allocations: 1.433 MB / 16.55 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1267/0.1267, allocations: 22.39 MB / 39.96 MB, free: 0.9023 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.001316/0.001316, allocations: 104 kB / 47.42 MB, free: 2.543 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.001407/0.001408, allocations: 188.7 kB / 55.01 MB, free: 6.598 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.568/1.568, allocations: 222.9 MB / 285.3 MB, free: 1.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.9508/0.9508, allocations: 127.8 MB / 470 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002933/0.002933, allocations: 136.1 kB / 0.5526 GB, free: 42.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2369, allocations: 82.36 MB / 0.633 GB, free: 13.49 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.002424/0.2394, allocations: 1.065 MB / 0.634 GB, free: 12.41 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006387/0.24, allocations: 228.1 kB / 0.6342 GB, free: 12.19 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.803e-05/0.2401, allocations: 3.938 kB / 0.6342 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.2402, allocations: 3.938 kB / 0.6343 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 1.069e-05/0.2402, allocations: 4 kB / 0.6343 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004034/0.2406, allocations: 55.94 kB / 0.6343 GB, free: 12.12 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 4.644e-05/0.2407, allocations: 3.938 kB / 0.6343 GB, free: 12.12 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.205e-05/0.2407, allocations: 4 kB / 0.6343 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.223e-05/0.2408, allocations: 0 / 0.6343 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.68e-05/0.2408, allocations: 11.91 kB / 0.6343 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.2408, allocations: 0 / 0.6343 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.241, allocations: 71.92 kB / 0.6344 GB, free: 12.03 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.205e-05/0.241, allocations: 4 kB / 0.6344 GB, free: 12.03 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 2.173e-05/0.2411, allocations: 7.938 kB / 0.6344 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.2412, allocations: 51.91 kB / 0.6345 GB, free: 11.97 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.2412, allocations: 3.984 kB / 0.6345 GB, free: 11.96 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2412, allocations: 0 / 0.6345 GB, free: 11.96 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2412, allocations: 4 kB / 0.6345 GB, free: 11.96 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.0003796/0.2416, allocations: 319.6 kB / 0.6348 GB, free: 11.6 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.2417, allocations: 9.156 kB / 0.6348 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.2417, allocations: 4.844 kB / 0.6348 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.2419, allocations: 172.5 kB / 0.6349 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.2419, allocations: 4.375 kB / 0.635 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.2419, allocations: 4.375 kB / 0.635 GB, free: 11.37 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.242, allocations: 30.27 kB / 0.635 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2421, allocations: 4.125 kB / 0.635 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2421, allocations: 3.938 kB / 0.635 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.2421, allocations: 7.984 kB / 0.635 GB, free: 11.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.102e-05/0.2421, allocations: 4 kB / 0.635 GB, free: 11.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001832/0.2423, allocations: 153.7 kB / 0.6352 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.195e-05/0.2424, allocations: 38.52 kB / 0.6352 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.086e-05/0.2424, allocations: 8.891 kB / 0.6352 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.2425, allocations: 3.984 kB / 0.6352 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.2425, allocations: 30.56 kB / 0.6352 GB, free: 11.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.2425, allocations: 0 / 0.6352 GB, free: 11.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001705/0.2427, allocations: 61.64 kB / 0.6353 GB, free: 10.95 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.2427, allocations: 55.41 kB / 0.6353 GB, free: 10.88 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.123e-05/0.2428, allocations: 97.83 kB / 0.6354 GB, free: 10.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.2428, allocations: 25.7 kB / 0.6355 GB, free: 10.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.2429, allocations: 84.14 kB / 0.6355 GB, free: 10.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.2429, allocations: 7.906 kB / 0.6355 GB, free: 10.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/0.2429, allocations: 9.719 kB / 0.6356 GB, free: 10.64 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.243, allocations: 318.8 kB / 0.6359 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.429e-05/0.243, allocations: 4 kB / 0.6359 GB, free: 10.31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.227e-05/0.2431, allocations: 11.94 kB / 0.6359 GB, free: 10.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.206e-05/0.2431, allocations: 17 kB / 0.6359 GB, free: 10.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2431, allocations: 8 kB / 0.6359 GB, free: 10.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.094e-05/0.2432, allocations: 49.59 kB / 0.6359 GB, free: 10.22 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.2432, allocations: 4 kB / 0.6359 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.2432, allocations: 3.938 kB / 0.636 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.2432, allocations: 0 / 0.636 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.2432, allocations: 3.938 kB / 0.636 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.2432, allocations: 0 / 0.636 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.048e-05/0.2433, allocations: 4 kB / 0.636 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.2433, allocations: 0 / 0.636 GB, free: 10.2 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 8.071e-05/0.2434, allocations: 111.6 kB / 0.6361 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.2434, allocations: 4 kB / 0.6361 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.483e-05/0.2434, allocations: 11.42 kB / 0.6361 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2434, allocations: 0 / 0.6361 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2434, allocations: 0 / 0.6361 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2434, allocations: 0 / 0.6361 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.2435, allocations: 153.6 kB / 0.6362 GB, free: 9.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2436, allocations: 4 kB / 0.6362 GB, free: 9.867 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.2436, allocations: 0 / 0.6362 GB, free: 9.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.2436, allocations: 4 kB / 0.6362 GB, free: 9.863 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.2436, allocations: 7.938 kB / 0.6362 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.2436, allocations: 0 / 0.6362 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2436, allocations: 0 / 0.6362 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.619e-05/0.2437, allocations: 69.12 kB / 0.6363 GB, free: 9.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.2437, allocations: 81.05 kB / 0.6364 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.2438, allocations: 3.938 kB / 0.6364 GB, free: 9.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.284e-06/0.2438, allocations: 0 / 0.6364 GB, free: 9.668 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.2438, allocations: 0 / 0.6364 GB, free: 9.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.2438, allocations: 12.02 kB / 0.6364 GB, free: 9.656 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.28e-05/0.2438, allocations: 79.28 kB / 0.6365 GB, free: 9.578 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2438, allocations: 0 / 0.6365 GB, free: 9.578 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002033/0.244, allocations: 20 kB / 0.6365 GB, free: 9.559 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.0001915/0.2442, allocations: 115.2 kB / 0.6366 GB, free: 9.438 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 7.427e-05/0.2443, allocations: 8 kB / 0.6366 GB, free: 9.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2443, allocations: 0 / 0.6366 GB, free: 9.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.594e-05/0.2443, allocations: 16.16 kB / 0.6366 GB, free: 9.414 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.2445, allocations: 0 / 0.6366 GB, free: 9.414 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002239/0.2447, allocations: 106.4 kB / 0.6367 GB, free: 9.285 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.245, allocations: 0.6811 MB / 0.6374 GB, free: 8.578 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 1.862e-05/0.245, allocations: 4 kB / 0.6374 GB, free: 8.574 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.673e-05/0.245, allocations: 11.38 kB / 0.6374 GB, free: 8.562 MB / 462.1 MB Notification: Performance of SimCode: time 2e-07/0.245, allocations: 0 / 0.6374 GB, free: 8.562 MB / 462.1 MB Notification: Performance of Templates: time 0.003071/0.2481, allocations: 0.6175 MB / 0.638 GB, free: 7.945 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Basics.Functions.TestCases.TestGenerateGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches