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.01347/0.01347, allocations: 1.439 MB / 17.74 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1548/0.1548, allocations: 22.38 MB / 41.17 MB, free: 7.754 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001733/0.001734, allocations: 104 kB / 48.66 MB, free: 248 kB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 191.6 kB / 56.26 MB, free: 9.453 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.661/1.661, allocations: 222.9 MB / 286.6 MB, free: 13.93 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 1.041/1.041, allocations: 127.8 MB / 471.3 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 127.8 kB / 0.6359 GB, free: 13.2 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7414/0.7441, allocations: 82.34 MB / 0.7163 GB, free: 9.781 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.002499/0.7467, allocations: 1.025 MB / 0.7173 GB, free: 9.02 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.0006066/0.7473, allocations: 206.2 kB / 0.7175 GB, free: 8.863 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.3e-05/0.7473, allocations: 1.25 kB / 0.7175 GB, free: 8.863 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.7474, allocations: 0 / 0.7175 GB, free: 8.863 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 9.698e-06/0.7475, allocations: 3.938 kB / 0.7175 GB, free: 8.859 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.748, allocations: 70.7 kB / 0.7176 GB, free: 8.816 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 6.17e-05/0.748, allocations: 10.67 kB / 0.7176 GB, free: 8.809 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 5.636e-05/0.7481, allocations: 5.438 kB / 0.7176 GB, free: 8.805 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 2.145e-05/0.7481, allocations: 5.344 kB / 0.7176 GB, free: 8.801 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 2.392e-05/0.7482, allocations: 1.438 kB / 0.7176 GB, free: 8.801 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 9.558e-06/0.7482, allocations: 0 / 0.7176 GB, free: 8.801 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.7484, allocations: 81.34 kB / 0.7177 GB, free: 8.754 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.7484, allocations: 5.141 kB / 0.7177 GB, free: 8.75 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.7484, allocations: 5.312 kB / 0.7177 GB, free: 8.746 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.7486, allocations: 52.17 kB / 0.7178 GB, free: 8.715 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.7486, allocations: 5.312 kB / 0.7178 GB, free: 8.711 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.595e-06/0.7486, allocations: 0 / 0.7178 GB, free: 8.711 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.7486, allocations: 0 / 0.7178 GB, free: 8.711 MB / 0.5138 GB 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.0004605/0.7491, allocations: 326.4 kB / 0.7181 GB, free: 8.352 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.7492, allocations: 9.188 kB / 0.7181 GB, free: 8.352 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.7492, allocations: 6.281 kB / 0.7181 GB, free: 8.348 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.7494, allocations: 173.6 kB / 0.7183 GB, free: 8.141 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.7494, allocations: 384 / 0.7183 GB, free: 8.141 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.7494, allocations: 1.938 kB / 0.7183 GB, free: 8.141 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.7496, allocations: 34.83 kB / 0.7183 GB, free: 8.105 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.7496, allocations: 192 / 0.7183 GB, free: 8.105 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.7496, allocations: 3.938 kB / 0.7183 GB, free: 8.102 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.7496, allocations: 3.031 kB / 0.7183 GB, free: 8.102 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.501e-05/0.7497, allocations: 8.547 kB / 0.7183 GB, free: 8.098 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000182/0.7498, allocations: 148.8 kB / 0.7185 GB, free: 7.906 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/0.75, allocations: 42.86 kB / 0.7185 GB, free: 7.867 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/0.75, allocations: 13.39 kB / 0.7185 GB, free: 7.855 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.75, allocations: 3.984 kB / 0.7185 GB, free: 7.852 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.75, allocations: 32.03 kB / 0.7185 GB, free: 7.812 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.7501, allocations: 0 / 0.7185 GB, free: 7.812 MB / 0.5138 GB Notification: Performance of matching and sorting (n=3): time 0.0001883/0.7502, allocations: 54.36 kB / 0.7186 GB, free: 7.77 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.7503, allocations: 55.34 kB / 0.7187 GB, free: 7.703 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.117e-05/0.7504, allocations: 96.44 kB / 0.7187 GB, free: 7.602 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.7504, allocations: 27.14 kB / 0.7188 GB, free: 7.57 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 3.497e-05/0.7505, allocations: 84.14 kB / 0.7189 GB, free: 7.484 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.7505, allocations: 9.188 kB / 0.7189 GB, free: 7.477 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.7505, allocations: 16.28 kB / 0.7189 GB, free: 7.457 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.7507, allocations: 316.1 kB / 0.7192 GB, free: 7.141 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.818e-05/0.7507, allocations: 3.875 kB / 0.7192 GB, free: 7.141 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.072e-05/0.7507, allocations: 3.844 kB / 0.7192 GB, free: 7.141 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.136e-05/0.7508, allocations: 24.41 kB / 0.7192 GB, free: 7.125 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.7508, allocations: 0 / 0.7192 GB, free: 7.125 MB / 0.5138 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.308e-05/0.7509, allocations: 46.84 kB / 0.7193 GB, free: 7.086 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.7509, allocations: 9.547 kB / 0.7193 GB, free: 7.082 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.7509, allocations: 3.938 kB / 0.7193 GB, free: 7.078 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.7509, allocations: 3.938 kB / 0.7193 GB, free: 7.074 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.7509, allocations: 1.5 kB / 0.7193 GB, free: 7.074 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.7509, allocations: 0 / 0.7193 GB, free: 7.074 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.232e-05/0.751, allocations: 0 / 0.7193 GB, free: 7.074 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.751, allocations: 1.531 kB / 0.7193 GB, free: 7.074 MB / 0.5138 GB 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.573e-05/0.7511, allocations: 107.4 kB / 0.7194 GB, free: 6.961 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-06/0.7511, allocations: 9.469 kB / 0.7194 GB, free: 6.953 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.235e-05/0.7511, allocations: 7.438 kB / 0.7194 GB, free: 6.941 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.7511, allocations: 0 / 0.7194 GB, free: 6.941 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.7511, allocations: 1.531 kB / 0.7194 GB, free: 6.941 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.7512, allocations: 92.98 kB / 0.7195 GB, free: 6.832 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.7512, allocations: 1.531 kB / 0.7195 GB, free: 6.832 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-06/0.7512, allocations: 0 / 0.7195 GB, free: 6.832 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/0.7512, allocations: 1.5 kB / 0.7195 GB, free: 6.832 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.356e-05/0.7513, allocations: 115.6 kB / 0.7196 GB, free: 6.723 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000141/0.7515, allocations: 226 kB / 0.7198 GB, free: 6.5 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.453e-05/0.7515, allocations: 4.688 kB / 0.7198 GB, free: 6.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 3.661e-05/0.7515, allocations: 76.88 kB / 0.7199 GB, free: 6.426 MB / 0.5138 GB Notification: Performance of Backend: time 2.71e-07/0.7515, allocations: 0 / 0.7199 GB, free: 6.426 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0004426/0.752, allocations: 97.77 kB / 0.72 GB, free: 6.352 MB / 0.5138 GB Notification: Performance of SimCode: time 0.0004724/0.7525, allocations: 0.5481 MB / 0.7205 GB, free: 5.766 MB / 0.5138 GB Notification: Performance of Templates: time 0.003746/0.7562, allocations: 0.6808 MB / 0.7212 GB, free: 5.406 MB / 0.5138 GB 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