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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo", uses=false) loadFile("/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo", uses=false) Using package ClaRa with version 1.8.0 (/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo) Using package TILMedia with version 1.8.0 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/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 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) Running command: translateModel(ClaRa.Basics.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="L|N|Time|Time_bak|_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="L|N|Time|Time_bak|_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/Complex 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 182.4 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 114.5 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.08413/0.08413, allocations: 20.11 MB / 360.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of loadFile(/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo): time 0.909/0.909, allocations: 126.3 MB / 0.5296 GB, free: 14.98 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 79.88 kB / 0.6208 GB, free: 1.52 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3701, allocations: 81.16 MB / 0.7 GB, free: 33.55 MB / 474.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Basics.Functions.TestCases.TestGenerateGrid): time 0.001971/0.3721, allocations: 1.081 MB / 0.7011 GB, free: 32.84 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0005079/0.3726, allocations: 215.7 kB / 0.7013 GB, free: 32.71 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.2e-05/0.3727, allocations: 1.812 kB / 0.7013 GB, free: 32.71 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 7.2e-05/0.3728, allocations: 0 / 0.7013 GB, free: 32.71 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 7.955e-06/0.3728, allocations: 0.9375 kB / 0.7013 GB, free: 32.71 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.3731, allocations: 57.94 kB / 0.7013 GB, free: 32.69 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 3.814e-05/0.3732, allocations: 3.797 kB / 0.7014 GB, free: 32.69 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.3732, allocations: 7.625 kB / 0.7014 GB, free: 32.68 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 1.926e-05/0.3733, allocations: 5.578 kB / 0.7014 GB, free: 32.68 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 2.221e-05/0.3733, allocations: 1.781 kB / 0.7014 GB, free: 32.68 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 8.727e-06/0.3733, allocations: 1.312 kB / 0.7014 GB, free: 32.68 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.3735, allocations: 86.45 kB / 0.7014 GB, free: 32.65 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 4.12e-05/0.3735, allocations: 2.797 kB / 0.7015 GB, free: 32.65 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.3736, allocations: 5.062 kB / 0.7015 GB, free: 32.64 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.3737, allocations: 49.44 kB / 0.7015 GB, free: 32.63 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3737, allocations: 3.109 kB / 0.7015 GB, free: 32.63 MB / 474.8 MB Notification: Performance of FrontEnd: time 8.11e-07/0.3737, allocations: 1.312 kB / 0.7015 GB, free: 32.63 MB / 474.8 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3737, allocations: 1.688 kB / 0.7015 GB, free: 32.63 MB / 474.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.0002663/0.374, allocations: 318.7 kB / 0.7018 GB, free: 32.28 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.374, allocations: 10.06 kB / 0.7018 GB, free: 32.28 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.3741, allocations: 5.5 kB / 0.7018 GB, free: 32.28 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3742, allocations: 167.9 kB / 0.702 GB, free: 32.08 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.3742, allocations: 2.312 kB / 0.702 GB, free: 32.08 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-06/0.3742, allocations: 1.875 kB / 0.702 GB, free: 32.08 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.599e-05/0.3743, allocations: 38.06 kB / 0.702 GB, free: 32.04 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3743, allocations: 192 / 0.702 GB, free: 32.04 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.3743, allocations: 4.812 kB / 0.702 GB, free: 32.04 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.3744, allocations: 6.188 kB / 0.702 GB, free: 32.04 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.105e-05/0.3744, allocations: 8.906 kB / 0.702 GB, free: 32.03 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.3745, allocations: 157.4 kB / 0.7022 GB, free: 31.84 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 6.444e-05/0.3746, allocations: 32.45 kB / 0.7022 GB, free: 31.81 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.765e-05/0.3746, allocations: 19.77 kB / 0.7022 GB, free: 31.8 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.3746, allocations: 1.219 kB / 0.7022 GB, free: 31.8 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.351e-05/0.3747, allocations: 32.53 kB / 0.7023 GB, free: 31.76 MB / 474.8 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3747, allocations: 1.781 kB / 0.7023 GB, free: 31.76 MB / 474.8 MB Notification: Performance of matching and sorting (n=3): time 0.0001299/0.3748, allocations: 62.38 kB / 0.7023 GB, free: 31.71 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.3748, allocations: 52.11 kB / 0.7024 GB, free: 31.65 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.87e-05/0.3749, allocations: 93.91 kB / 0.7025 GB, free: 31.55 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-06/0.3749, allocations: 26.83 kB / 0.7025 GB, free: 31.52 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 1.478e-05/0.3749, allocations: 80.8 kB / 0.7026 GB, free: 31.44 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.3749, allocations: 6.938 kB / 0.7026 GB, free: 31.44 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.375, allocations: 16.97 kB / 0.7026 GB, free: 31.42 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 4.255e-05/0.375, allocations: 313.6 kB / 0.7029 GB, free: 31.11 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.375, allocations: 6.953 kB / 0.7029 GB, free: 31.11 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.478e-06/0.3751, allocations: 6.844 kB / 0.7029 GB, free: 31.11 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.382e-05/0.3751, allocations: 21.66 kB / 0.7029 GB, free: 31.09 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3751, allocations: 5.438 kB / 0.7029 GB, free: 31.09 MB / 474.8 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.694e-05/0.3752, allocations: 48.34 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.3752, allocations: 5.984 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3752, allocations: 4.781 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.3752, allocations: 1.062 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.3752, allocations: 1.312 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3752, allocations: 1.062 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.113e-05/0.3753, allocations: 0.5625 kB / 0.703 GB, free: 31.05 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.3753, allocations: 1.75 kB / 0.703 GB, free: 31.05 MB / 474.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 4.359e-05/0.3753, allocations: 110.5 kB / 0.7031 GB, free: 30.93 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.3753, allocations: 0.8125 kB / 0.7031 GB, free: 30.93 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.899e-06/0.3753, allocations: 10.91 kB / 0.7031 GB, free: 30.92 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3754, allocations: 1.875 kB / 0.7031 GB, free: 30.92 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3754, allocations: 1.062 kB / 0.7031 GB, free: 30.92 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3754, allocations: 3.938 kB / 0.7031 GB, free: 30.92 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.668e-05/0.3754, allocations: 155.4 kB / 0.7033 GB, free: 30.73 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3754, allocations: 0 / 0.7033 GB, free: 30.73 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.3755, allocations: 1.094 kB / 0.7033 GB, free: 30.73 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3755, allocations: 0.5625 kB / 0.7033 GB, free: 30.73 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3755, allocations: 5.125 kB / 0.7033 GB, free: 30.72 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3755, allocations: 2.062 kB / 0.7033 GB, free: 30.72 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3755, allocations: 3.938 kB / 0.7033 GB, free: 30.72 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.3757, allocations: 0.6205 MB / 0.7039 GB, free: 30.07 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 1.482e-05/0.3757, allocations: 83.2 kB / 0.704 GB, free: 29.97 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.3757, allocations: 5.891 kB / 0.704 GB, free: 29.97 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.3757, allocations: 4.125 kB / 0.704 GB, free: 29.97 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.6e-05/0.3757, allocations: 1.375 kB / 0.704 GB, free: 29.97 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3758, allocations: 2.781 kB / 0.704 GB, free: 29.97 MB / 474.8 MB Notification: Performance of sorting global known variables: time 1.859e-05/0.3758, allocations: 78.47 kB / 0.7041 GB, free: 29.89 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3758, allocations: 0 / 0.7041 GB, free: 29.89 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0003343/0.3761, allocations: 20.22 kB / 0.7041 GB, free: 29.89 MB / 474.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.0001453/0.3763, allocations: 110.1 kB / 0.7042 GB, free: 29.8 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 6.171e-05/0.3763, allocations: 17.39 kB / 0.7042 GB, free: 29.8 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3764, allocations: 0 / 0.7042 GB, free: 29.8 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 1.095e-05/0.3764, allocations: 9.766 kB / 0.7042 GB, free: 29.8 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.3765, allocations: 10 kB / 0.7042 GB, free: 29.79 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002083/0.3767, allocations: 215.3 kB / 0.7044 GB, free: 29.57 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.897e-05/0.3768, allocations: 0.6766 MB / 0.7051 GB, free: 28.87 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 1.769e-05/0.3769, allocations: 6.656 kB / 0.7051 GB, free: 28.87 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.484e-05/0.3769, allocations: 10.34 kB / 0.7051 GB, free: 28.86 MB / 474.8 MB Notification: Performance of SimCode: time 2.11e-07/0.3769, allocations: 0 / 0.7051 GB, free: 28.86 MB / 474.8 MB Notification: Performance of Templates: time 0.002718/0.3796, allocations: 0.6081 MB / 0.7057 GB, free: 28.82 MB / 474.8 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","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Basics.Functions.TestCases.TestGenerateGrid.mat","../files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches