Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo): time 0.01126/0.01126, allocations: 1.798 MB / 21.36 MB, free: 3.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007872/0.0007872, allocations: 83.84 kB / 25.15 MB, free: 7.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008521/0.0008521, allocations: 166.7 kB / 29.06 MB, free: 3.66 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9057/0.9057, allocations: 177.2 MB / 210 MB, free: 3.555 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 0.5997/0.5997, allocations: 102.5 MB / 369.5 MB, free: 376 kB / 330.7 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package SMArtInt with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: translateModel(ClaRa.Basics.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="CPUtime|EventCounter|L|N|Time|_derdummy|_dummy|dx.[0-9,]+.",fileNamePrefix="ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") translateModel(ClaRa.Basics.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="CPUtime|EventCounter|L|N|Time|_derdummy|_dummy|dx.[0-9,]+.",fileNamePrefix="ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 469.9 MB, free: 18.98 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.899e-05, allocations: 4.391 kB / 469.9 MB, free: 18.97 MB / 410.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.00179/0.001819, allocations: 1.055 MB / 471 MB, free: 18.32 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.0005267/0.002346, allocations: 201 kB / 471.2 MB, free: 18.21 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.058e-05/0.002377, allocations: 1.219 kB / 471.2 MB, free: 18.21 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 9.078e-05/0.002468, allocations: 0 / 471.2 MB, free: 18.21 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 1.231e-05/0.00248, allocations: 0 / 471.2 MB, free: 18.21 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005065/0.002986, allocations: 83.67 kB / 471.3 MB, free: 18.18 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 5.432e-05/0.003041, allocations: 6.281 kB / 471.3 MB, free: 18.18 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 3.791e-05/0.003079, allocations: 5.016 kB / 471.3 MB, free: 18.17 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 3.835e-05/0.003117, allocations: 3.375 kB / 471.3 MB, free: 18.17 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 1.975e-05/0.003137, allocations: 3.5 kB / 471.3 MB, free: 18.17 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.003148, allocations: 0 / 471.3 MB, free: 18.17 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.003335, allocations: 96.55 kB / 471.4 MB, free: 18.14 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 2.987e-05/0.003365, allocations: 6.875 kB / 471.4 MB, free: 18.14 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 1.67e-05/0.003382, allocations: 0.5625 kB / 471.4 MB, free: 18.14 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.003529, allocations: 66.81 kB / 471.4 MB, free: 18.12 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.003531, allocations: 1.875 kB / 471.4 MB, free: 18.12 MB / 410.8 MB Notification: Performance of FrontEnd: time 9.32e-07/0.003532, allocations: 3.938 kB / 471.5 MB, free: 18.12 MB / 410.8 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.003536, allocations: 0 / 471.5 MB, free: 18.12 MB / 410.8 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.0002659/0.003802, allocations: 348.3 kB / 471.8 MB, free: 17.75 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.003842, allocations: 10.16 kB / 471.8 MB, free: 17.75 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/0.003883, allocations: 2.766 kB / 471.8 MB, free: 17.75 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.003991, allocations: 116.7 kB / 471.9 MB, free: 17.61 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.004001, allocations: 384 / 471.9 MB, free: 17.61 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.004011, allocations: 8.641 kB / 471.9 MB, free: 17.61 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.815e-05/0.004099, allocations: 29.5 kB / 472 MB, free: 17.58 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.004108, allocations: 5.5 kB / 472 MB, free: 17.57 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.004117, allocations: 384 / 472 MB, free: 17.57 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.879e-05/0.004146, allocations: 6.688 kB / 472 MB, free: 17.57 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.604e-05/0.004162, allocations: 9.125 kB / 472 MB, free: 17.57 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.004291, allocations: 121.7 kB / 472.1 MB, free: 17.43 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 7.719e-05/0.004368, allocations: 28.94 kB / 472.1 MB, free: 17.39 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.004383, allocations: 10.62 kB / 472.1 MB, free: 17.38 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.919e-06/0.004388, allocations: 0 / 472.1 MB, free: 17.38 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.583e-05/0.004404, allocations: 33.39 kB / 472.2 MB, free: 17.34 MB / 410.8 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.004405, allocations: 1.75 kB / 472.2 MB, free: 17.34 MB / 410.8 MB Notification: Performance of matching and sorting (n=3): time 0.0001333/0.004539, allocations: 48.64 kB / 472.2 MB, free: 17.3 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.004563, allocations: 51.41 kB / 472.3 MB, free: 17.23 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.069e-05/0.004624, allocations: 160.9 kB / 472.4 MB, free: 17.07 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.004631, allocations: 25.7 kB / 472.5 MB, free: 17.04 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 2.406e-05/0.004655, allocations: 129.8 kB / 472.6 MB, free: 16.91 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.299e-05/0.004688, allocations: 8.797 kB / 472.6 MB, free: 16.9 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.004717, allocations: 18.28 kB / 472.6 MB, free: 16.88 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0004794/0.005197, allocations: 0.4891 MB / 473.1 MB, free: 32.38 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.005211, allocations: 4 kB / 473.1 MB, free: 32.38 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-06/0.005219, allocations: 2.906 kB / 473.1 MB, free: 32.38 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.512e-05/0.005254, allocations: 21.47 kB / 473.1 MB, free: 32.36 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.005258, allocations: 0 / 473.1 MB, free: 32.36 MB / 426.8 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.132e-05/0.005329, allocations: 45.53 kB / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.005348, allocations: 6.969 kB / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.005355, allocations: 0 / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.005369, allocations: 0 / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.669e-06/0.005374, allocations: 0 / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.00538, allocations: 2.844 kB / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.334e-05/0.005394, allocations: 5.281 kB / 473.2 MB, free: 32.32 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.005404, allocations: 0 / 473.2 MB, free: 32.32 MB / 426.8 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.762e-05/0.005471, allocations: 154.9 kB / 473.3 MB, free: 32.16 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-06/0.005479, allocations: 4.531 kB / 473.3 MB, free: 32.16 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.728e-05/0.005497, allocations: 6.969 kB / 473.3 MB, free: 32.15 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.005507, allocations: 2.594 kB / 473.3 MB, free: 32.15 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.005511, allocations: 0 / 473.3 MB, free: 32.15 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.005514, allocations: 5.125 kB / 473.4 MB, free: 32.14 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.452e-05/0.005579, allocations: 117.8 kB / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.00558, allocations: 3.938 kB / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.005581, allocations: 1.188 kB / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.005583, allocations: 2.938 kB / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.00559, allocations: 0 / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.005591, allocations: 1.25 kB / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.005592, allocations: 0 / 473.5 MB, free: 32 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.47e-05/0.005667, allocations: 79.22 kB / 473.6 MB, free: 31.91 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-06/0.005673, allocations: 3.188 kB / 473.6 MB, free: 31.91 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.082e-05/0.005684, allocations: 2.938 kB / 473.6 MB, free: 31.91 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.153e-06/0.005691, allocations: 0 / 473.6 MB, free: 31.91 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.005706, allocations: 3.234 kB / 473.6 MB, free: 31.91 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.00571, allocations: 0 / 473.6 MB, free: 31.91 MB / 426.8 MB Notification: Performance of sorting global known variables: time 4.008e-05/0.00575, allocations: 122.9 kB / 473.7 MB, free: 31.8 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.01e-07/0.00575, allocations: 0 / 473.7 MB, free: 31.8 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0002368/0.005987, allocations: 21.88 kB / 473.7 MB, free: 31.79 MB / 426.8 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.0001662/0.006153, allocations: 118 kB / 473.8 MB, free: 31.7 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 7.533e-05/0.006228, allocations: 17.62 kB / 473.8 MB, free: 31.68 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.00623, allocations: 0.7188 kB / 473.8 MB, free: 31.68 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 1.177e-05/0.006242, allocations: 23.23 kB / 473.9 MB, free: 31.67 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.006396, allocations: 0 / 473.9 MB, free: 31.67 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002013/0.006597, allocations: 104 kB / 474 MB, free: 31.55 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.737e-05/0.006624, allocations: 54.2 kB / 474 MB, free: 31.48 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 1.884e-05/0.006643, allocations: 4 kB / 474 MB, free: 31.48 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.956e-05/0.006663, allocations: 11.84 kB / 474 MB, free: 31.47 MB / 426.8 MB Notification: Performance of SimCode: time 5.91e-07/0.006663, allocations: 0 / 474 MB, free: 31.47 MB / 426.8 MB Notification: Performance of Templates: time 0.002816/0.009479, allocations: 0.715 MB / 474.7 MB, free: 31.43 MB / 426.8 MB " [Timeout remaining time 800] make -j1 -f ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.makefile [Timeout 800] (rm -f ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe ; mkfifo ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe ; head -c 1048576 < ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe >> ../files/ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.sim & ./ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe 2>&1) [Timeout 240] diffSimulationResults("ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Basics.Functions.TestCases.TestGenerateGrid.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 800] "Error: Could not read variable CPUtime in file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable CPUtime from file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! Error: Could not read variable EventCounter in file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable EventCounter from file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! Error: Could not read variable _derdummy in file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable _derdummy from file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! Error: Could not read variable _dummy in file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable _dummy from file ClaRa_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! " [Timeout remaining time 800] Reference file matches [Calling sys.exit(0), Time elapsed: 3.462010959163308]