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/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.005938/0.005938, allocations: 1.442 MB / 20.54 MB, free: 4.012 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.0006805/0.0006805, allocations: 91.45 kB / 24.16 MB, free: 396 kB / 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.0007868/0.0007868, allocations: 165.8 kB / 27.86 MB, free: 5.496 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.8421/0.8421, allocations: 177.2 MB / 208.6 MB, free: 2.98 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo): time 0.6566/0.6566, allocations: 102.5 MB / 367.9 MB, free: 1.477 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/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 0.5.2 (/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.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=2500,variableFilter="CPUtime|EventCounter|L|N|Time|_derdummy|_dummy|dx.1.|dx.2.|dx.3.",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 0.5366 GB, free: 39.79 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.087e-05, allocations: 2.281 kB / 0.5366 GB, free: 39.78 MB / 490.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.001141/0.001162, allocations: 1.023 MB / 0.5376 GB, free: 39.12 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.0003548/0.001517, allocations: 197.9 kB / 0.5378 GB, free: 39 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.503e-05/0.001542, allocations: 1.75 kB / 0.5378 GB, free: 39 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 6.988e-05/0.001612, allocations: 5.406 kB / 0.5378 GB, free: 39 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 7.434e-06/0.001619, allocations: 0 / 0.5378 GB, free: 39 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.002018, allocations: 79.5 kB / 0.5379 GB, free: 38.96 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 4.391e-05/0.002062, allocations: 5.797 kB / 0.5379 GB, free: 38.96 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.002097, allocations: 1.5 kB / 0.5379 GB, free: 38.96 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 2.654e-05/0.002123, allocations: 9.578 kB / 0.5379 GB, free: 38.96 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 1.708e-05/0.00214, allocations: 1.844 kB / 0.5379 GB, free: 38.96 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 9.447e-06/0.00215, allocations: 0.5312 kB / 0.5379 GB, free: 38.96 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.002289, allocations: 97.3 kB / 0.538 GB, free: 38.93 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 2.633e-05/0.002315, allocations: 1.438 kB / 0.538 GB, free: 38.93 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 1.322e-05/0.002328, allocations: 5.375 kB / 0.538 GB, free: 38.93 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.002443, allocations: 66.86 kB / 0.5381 GB, free: 38.91 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.002444, allocations: 2.562 kB / 0.5381 GB, free: 38.91 MB / 490.8 MB Notification: Performance of FrontEnd: time 7.72e-07/0.002445, allocations: 3.938 kB / 0.5381 GB, free: 38.91 MB / 490.8 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.002449, allocations: 0 / 0.5381 GB, free: 38.91 MB / 490.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.0002156/0.002665, allocations: 250.6 kB / 0.5383 GB, free: 38.64 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.002699, allocations: 10.75 kB / 0.5383 GB, free: 38.64 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.002724, allocations: 0.9375 kB / 0.5383 GB, free: 38.64 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.798e-05/0.002812, allocations: 105 kB / 0.5384 GB, free: 38.52 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-06/0.00282, allocations: 1.969 kB / 0.5384 GB, free: 38.52 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.002826, allocations: 384 / 0.5384 GB, free: 38.52 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.89e-05/0.002905, allocations: 35.64 kB / 0.5385 GB, free: 38.48 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.002912, allocations: 192 / 0.5385 GB, free: 38.48 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-06/0.002919, allocations: 1.344 kB / 0.5385 GB, free: 38.48 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.002933, allocations: 1.875 kB / 0.5385 GB, free: 38.48 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.741e-05/0.00295, allocations: 9.719 kB / 0.5385 GB, free: 38.48 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.873e-05/0.003049, allocations: 118.7 kB / 0.5386 GB, free: 38.34 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 5.092e-05/0.0031, allocations: 31.59 kB / 0.5386 GB, free: 38.32 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.271e-05/0.003113, allocations: 18.64 kB / 0.5386 GB, free: 38.3 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-06/0.003119, allocations: 0 / 0.5386 GB, free: 38.3 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.003131, allocations: 36 kB / 0.5387 GB, free: 38.26 MB / 490.8 MB Notification: Performance of pre-optimization done (n=3): time 5.01e-07/0.003132, allocations: 1.031 kB / 0.5387 GB, free: 38.26 MB / 490.8 MB Notification: Performance of matching and sorting (n=3): time 0.0001097/0.003241, allocations: 49.48 kB / 0.5387 GB, free: 38.22 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.92e-05/0.003261, allocations: 57.69 kB / 0.5388 GB, free: 38.16 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.66e-05/0.003297, allocations: 103.8 kB / 0.5389 GB, free: 38.05 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-06/0.003302, allocations: 26.73 kB / 0.5389 GB, free: 38.02 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.558e-06/0.003311, allocations: 81.61 kB / 0.539 GB, free: 37.94 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.003334, allocations: 6.609 kB / 0.539 GB, free: 37.93 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.828e-05/0.003352, allocations: 11.41 kB / 0.539 GB, free: 37.92 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 3.022e-05/0.003383, allocations: 319.5 kB / 0.5393 GB, free: 37.6 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.003393, allocations: 3.688 kB / 0.5393 GB, free: 37.6 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.254e-06/0.0034, allocations: 6.562 kB / 0.5393 GB, free: 37.6 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.682e-05/0.003427, allocations: 19.86 kB / 0.5393 GB, free: 37.59 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.003429, allocations: 0 / 0.5393 GB, free: 37.59 MB / 490.8 MB Notification: Performance of matching and sorting (n=3) (initialization): time 3.763e-05/0.003466, allocations: 49.36 kB / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.003478, allocations: 5.438 kB / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.003483, allocations: 3.156 kB / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.003493, allocations: 3.766 kB / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.003494, allocations: 0 / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.003499, allocations: 1.188 kB / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.854e-06/0.003507, allocations: 7.891 kB / 0.5394 GB, free: 37.55 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.003515, allocations: 1.094 kB / 0.5394 GB, free: 37.55 MB / 490.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 3.184e-05/0.003546, allocations: 108.2 kB / 0.5395 GB, free: 37.43 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.496e-06/0.00355, allocations: 1.125 kB / 0.5395 GB, free: 37.43 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.855e-06/0.003558, allocations: 7.25 kB / 0.5395 GB, free: 37.43 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.003562, allocations: 3.062 kB / 0.5395 GB, free: 37.43 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.003566, allocations: 0 / 0.5395 GB, free: 37.43 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.003568, allocations: 5 kB / 0.5395 GB, free: 37.42 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.066e-05/0.003609, allocations: 109.9 kB / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.00361, allocations: 1.25 kB / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.00361, allocations: 0.7188 kB / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.72e-07/0.003611, allocations: 0 / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.003616, allocations: 1.938 kB / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.003617, allocations: 0 / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.003618, allocations: 8.859 kB / 0.5396 GB, free: 37.29 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.326e-05/0.003661, allocations: 75.23 kB / 0.5397 GB, free: 37.21 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-06/0.003666, allocations: 4.719 kB / 0.5397 GB, free: 37.21 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.003677, allocations: 2.438 kB / 0.5397 GB, free: 37.21 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.938e-06/0.003681, allocations: 0 / 0.5397 GB, free: 37.21 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.306e-05/0.003694, allocations: 6.297 kB / 0.5397 GB, free: 37.21 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-06/0.003695, allocations: 0 / 0.5397 GB, free: 37.21 MB / 490.8 MB Notification: Performance of sorting global known variables: time 1.055e-05/0.003706, allocations: 82.81 kB / 0.5398 GB, free: 37.13 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.1e-08/0.003706, allocations: 0 / 0.5398 GB, free: 37.13 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001436/0.003849, allocations: 21.66 kB / 0.5398 GB, free: 37.12 MB / 490.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.0001173/0.003967, allocations: 114.7 kB / 0.5399 GB, free: 37.04 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 5.921e-05/0.004026, allocations: 20.08 kB / 0.54 GB, free: 37.03 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-06/0.004027, allocations: 0 / 0.54 GB, free: 37.03 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 7.494e-06/0.004035, allocations: 14.22 kB / 0.54 GB, free: 37.02 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.004136, allocations: 1.062 kB / 0.54 GB, free: 37.02 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001516/0.004288, allocations: 97.33 kB / 0.5401 GB, free: 36.93 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.93e-05/0.004317, allocations: 59.8 kB / 0.5401 GB, free: 36.86 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 1.616e-05/0.004333, allocations: 6.406 kB / 0.5401 GB, free: 36.86 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.44e-05/0.004348, allocations: 9.812 kB / 0.5401 GB, free: 36.85 MB / 490.8 MB Notification: Performance of SimCode: time 3.31e-07/0.004348, allocations: 0 / 0.5401 GB, free: 36.85 MB / 490.8 MB Notification: Performance of Templates: time 0.002058/0.006406, allocations: 0.6243 MB / 0.5407 GB, free: 36.8 MB / 490.8 MB " [Timeout remaining time 800] make -j1 -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.makefile [Timeout 800] (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=800 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe 2>&1) [Timeout 800] 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) [Timeout 800] "Error: Could not read variable CPUtime in file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable CPUtime from file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! Error: Could not read variable EventCounter in file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable EventCounter from file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! Error: Could not read variable _derdummy in file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable _derdummy from file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! Error: Could not read variable _dummy in file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat. Warning: Get data of variable _dummy from file ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat failed! " [Timeout remaining time 800] Reference file matches [Calling sys.exit(0), Time elapsed: 3.455219155177474]