Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.866/1.866, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007166/0.0007167, allocations: 20 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5468/0.5475, allocations: 48.7 MB / 331.3 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0009502/0.5486, allocations: 260.2 kB / 331.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.5497, allocations: 350.2 kB / 331.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.379e-05/0.5498, allocations: 1.375 kB / 331.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.5499, allocations: 0 / 331.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.065e-05/0.5499, allocations: 0.6875 kB / 331.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005724/0.5505, allocations: 84.36 kB / 332 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.984e-05/0.5506, allocations: 10.08 kB / 332 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.328e-05/0.5507, allocations: 8.203 kB / 332 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.5508, allocations: 11.84 kB / 332 MB, free: 6.188 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.741e-05/0.5509, allocations: 17.05 kB / 332 MB, free: 6.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.5509, allocations: 2.75 kB / 332 MB, free: 6.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004186/0.5513, allocations: 106 kB / 332.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.5514, allocations: 4.562 kB / 332.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.131e-05/0.5514, allocations: 31.23 kB / 332.1 MB, free: 6.121 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.5517, allocations: 68.09 kB / 332.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.5517, allocations: 0 / 332.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5518, allocations: 0 / 332.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.5518, allocations: 0 / 332.2 MB, free: 6.109 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005095/0.5523, allocations: 357.6 kB / 332.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.871e-05/0.5524, allocations: 10.22 kB / 332.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.81e-05/0.5524, allocations: 33.88 kB / 332.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.5525, allocations: 1.25 kB / 332.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.5526, allocations: 173.9 kB / 332.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.5527, allocations: 0.875 kB / 332.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.5527, allocations: 14.5 kB / 332.8 MB, free: 5.484 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.553, allocations: 57.19 kB / 332.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.553, allocations: 1.969 kB / 332.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.553, allocations: 3.938 kB / 332.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.553, allocations: 1.062 kB / 332.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.5532, allocations: 28.73 kB / 332.9 MB, free: 5.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002362/0.5535, allocations: 170 kB / 333 MB, free: 5.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004151/0.5539, allocations: 70.92 kB / 333.1 MB, free: 5.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000536/0.5545, allocations: 112.7 kB / 333.2 MB, free: 5.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.5545, allocations: 32.75 kB / 333.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 3.727e-06/0.5545, allocations: 0 / 333.3 MB, free: 5.051 MB / 266.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1078/0.6624, allocations: 2.821 MB / 336.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.6624, allocations: 57.69 kB / 336.1 MB, free: 4.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.64e-05/0.6625, allocations: 99.64 kB / 336.2 MB, free: 3.969 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.6626, allocations: 27.02 kB / 336.3 MB, free: 3.938 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.488e-05/0.6626, allocations: 155.3 kB / 336.4 MB, free: 3.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.926e-05/0.6627, allocations: 73.05 kB / 336.5 MB, free: 3.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.6628, allocations: 3.938 kB / 336.5 MB, free: 3.719 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.818e-05/0.6628, allocations: 317.2 kB / 336.8 MB, free: 3.402 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006864/0.6635, allocations: 192 kB / 337 MB, free: 3.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006842/0.6642, allocations: 195.2 kB / 337.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009018/0.6652, allocations: 216.6 kB / 337.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.6652, allocations: 0 / 337.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001824/0.667, allocations: 0.4898 MB / 337.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.6671, allocations: 5.875 kB / 337.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.6671, allocations: 0 / 337.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.6671, allocations: 1.281 kB / 337.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006883/0.6678, allocations: 74.47 kB / 338 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.6678, allocations: 1.25 kB / 338 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.6683, allocations: 28.92 kB / 338 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.6683, allocations: 16.36 kB / 338 MB, free: 2.84 MB / 266.7 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.6685, allocations: 121.3 kB / 338.1 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.654e-05/0.6686, allocations: 7.594 kB / 338.1 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/0.6708, allocations: 0.5738 MB / 338.7 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.6708, allocations: 2.156 kB / 338.7 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.6708, allocations: 4.188 kB / 338.7 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.6708, allocations: 1.062 kB / 338.7 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003515/0.6744, allocations: 0.9399 MB / 339.6 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.6744, allocations: 1.406 kB / 339.6 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000534/0.675, allocations: 81.12 kB / 339.7 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.675, allocations: 6.484 kB / 339.7 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.807e-05/0.675, allocations: 19.61 kB / 339.7 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/0.6751, allocations: 6.266 kB / 339.8 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6751, allocations: 2.219 kB / 339.8 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.6766, allocations: 488.7 kB / 340.2 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.6767, allocations: 89.08 kB / 340.3 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.555e-05/0.6767, allocations: 7.188 kB / 340.3 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.6771, allocations: 33.62 kB / 340.4 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.6772, allocations: 16.12 kB / 340.4 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.825e-05/0.6772, allocations: 17.95 kB / 340.4 MB, free: 1.254 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.915e-05/0.6773, allocations: 86.19 kB / 340.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6773, allocations: 0 / 340.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001395/0.6787, allocations: 317.2 kB / 340.8 MB, free: 1.137 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003932/0.6826, allocations: 1.156 MB / 341.9 MB, free: 260 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.6842, allocations: 366.6 kB / 342.3 MB, free: 100 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.6842, allocations: 1.281 kB / 342.3 MB, free: 100 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006375/0.6848, allocations: 163.6 kB / 342.5 MB, free: 36 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.6851, allocations: 12.7 kB / 342.5 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.6885, allocations: 0.5869 MB / 343.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.6889, allocations: 0.6959 MB / 343.8 MB, free: 14.9 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003536/0.6893, allocations: 60.58 kB / 343.8 MB, free: 14.87 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6893, allocations: 0 / 343.8 MB, free: 14.87 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.425/3.114, allocations: 7.843 MB / 351.7 MB, free: 9.492 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat failed! " Variables in the reference:time,x,y,yd,ydd,k1,k2,y2,y2d,y2dd Variables in the result:der(der(k1)),der(der(k2)),der(der(x)),der(k1),der(k2),der(x),der(y),der(y2),der(y2d),der(yd),k1,k1a,k1b,k2,k2a,k2b,time,x,x_small,y,y2,y2d,y2dd,yd,ydd