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.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.888/1.888, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004222/0.0004223, allocations: 16 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3549, allocations: 48.69 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006908/0.3557, allocations: 260.4 kB / 331.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008211/0.3565, allocations: 369.5 kB / 331.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.928e-05/0.3566, allocations: 1.375 kB / 331.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.571e-05/0.3566, allocations: 3.938 kB / 331.9 MB, free: 6.207 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.376e-05/0.3566, allocations: 0.6875 kB / 331.9 MB, free: 6.207 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.3571, allocations: 99.23 kB / 332 MB, free: 6.168 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.907e-05/0.3572, allocations: 12.42 kB / 332 MB, free: 6.168 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.566e-05/0.3572, allocations: 5.609 kB / 332 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.529e-05/0.3573, allocations: 11.09 kB / 332 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.679e-05/0.3573, allocations: 18.16 kB / 332 MB, free: 6.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.3573, allocations: 1.281 kB / 332 MB, free: 6.152 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.3577, allocations: 139.5 kB / 332.2 MB, free: 6.121 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.567e-05/0.3577, allocations: 10.64 kB / 332.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.3577, allocations: 28.28 kB / 332.2 MB, free: 6.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.358, allocations: 76.31 kB / 332.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.358, allocations: 0 / 332.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.358, allocations: 0 / 332.3 MB, free: 6.074 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.358, allocations: 0 / 332.3 MB, free: 6.074 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.0003977/0.3584, allocations: 359.2 kB / 332.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.3584, allocations: 10.28 kB / 332.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.3585, allocations: 37.38 kB / 332.7 MB, free: 5.656 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.3585, allocations: 2.281 kB / 332.7 MB, free: 5.656 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.441e-05/0.3586, allocations: 172.4 kB / 332.9 MB, free: 5.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.3587, allocations: 5.438 kB / 332.9 MB, free: 5.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.3587, allocations: 7.75 kB / 332.9 MB, free: 5.445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.3588, allocations: 52.8 kB / 332.9 MB, free: 5.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.3589, allocations: 7.906 kB / 332.9 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.3589, allocations: 2.344 kB / 332.9 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3589, allocations: 0 / 332.9 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.463e-05/0.359, allocations: 28.56 kB / 333 MB, free: 5.391 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000165/0.3592, allocations: 180.7 kB / 333.1 MB, free: 5.184 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.3595, allocations: 57.98 kB / 333.2 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003364/0.3598, allocations: 111.9 kB / 333.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.3599, allocations: 32.23 kB / 333.3 MB, free: 5.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.3599, allocations: 1.219 kB / 333.3 MB, free: 5.012 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.2704/0.6303, allocations: 6.379 MB / 339.7 MB, free: 2.105 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.6304, allocations: 56.62 kB / 339.8 MB, free: 2.039 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.6305, allocations: 104.4 kB / 339.9 MB, free: 1.934 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.292e-05/0.6305, allocations: 31.2 kB / 339.9 MB, free: 1.898 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.954e-05/0.6306, allocations: 150.6 kB / 340 MB, free: 1.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.6307, allocations: 64.62 kB / 340.1 MB, free: 1.695 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.6307, allocations: 1.375 kB / 340.1 MB, free: 1.695 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.543e-05/0.6308, allocations: 320.4 kB / 340.4 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000756/0.6315, allocations: 221.8 kB / 340.6 MB, free: 1.262 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007657/0.6323, allocations: 224.4 kB / 340.9 MB, free: 1.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.6341, allocations: 281.8 kB / 341.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.6341, allocations: 0.5 kB / 341.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002757/0.6369, allocations: 0.5788 MB / 341.7 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.6369, allocations: 6.75 kB / 341.7 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.6369, allocations: 0 / 341.7 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.6369, allocations: 4.953 kB / 341.7 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008757/0.6378, allocations: 92.56 kB / 341.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.6378, allocations: 5.172 kB / 341.8 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005804/0.6384, allocations: 37.53 kB / 341.9 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.409e-05/0.6385, allocations: 21.5 kB / 341.9 MB, free: 0.6562 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.0001568/0.6387, allocations: 121.5 kB / 342 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.991e-05/0.6388, allocations: 15.44 kB / 342 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003137/0.6419, allocations: 0.6838 MB / 342.7 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.6419, allocations: 2.125 kB / 342.7 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.642, allocations: 1.188 kB / 342.7 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.642, allocations: 0 / 342.7 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005334/0.6473, allocations: 1.079 MB / 343.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-06/0.6473, allocations: 1.125 kB / 343.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.6481, allocations: 87.75 kB / 343.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.6481, allocations: 6.25 kB / 343.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.6482, allocations: 33.12 kB / 343.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.6482, allocations: 1.469 kB / 343.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.6482, allocations: 2.938 kB / 343.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002584/0.6508, allocations: 0.5642 MB / 344.5 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.6509, allocations: 84.7 kB / 344.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.041e-05/0.651, allocations: 6.641 kB / 344.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.6515, allocations: 29.48 kB / 344.6 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.6516, allocations: 22.88 kB / 344.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.376e-05/0.6516, allocations: 23.28 kB / 344.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.462e-05/0.6517, allocations: 79.84 kB / 344.7 MB, free: 14.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6517, allocations: 4 kB / 344.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002501/0.6542, allocations: 0.6427 MB / 345.4 MB, free: 14.72 MB / 282.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.008401/0.6627, allocations: 1.293 MB / 346.7 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.6644, allocations: 433.3 kB / 347.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.6644, allocations: 0 / 347.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007558/0.6652, allocations: 198.3 kB / 347.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.6655, allocations: 8.344 kB / 347.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004528/0.67, allocations: 0.6364 MB / 347.9 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.6704, allocations: 0.6999 MB / 348.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004463/0.6708, allocations: 75.88 kB / 348.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6708, allocations: 0 / 348.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.121/3.792, allocations: 18.37 MB / 367.1 MB, free: 10.11 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_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