Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.405/2.405, allocations: 234.9 MB / 250.5 MB, free: 10.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004286, allocations: 12 kB / 314.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3798, allocations: 54.87 MB / 369.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.000805/0.3807, allocations: 268.4 kB / 369.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009194/0.3816, allocations: 365.5 kB / 369.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.069e-05/0.3817, allocations: 0 / 369.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.3817, allocations: 0 / 369.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.712e-05/0.3817, allocations: 7.984 kB / 369.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.3823, allocations: 87.7 kB / 370 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.794e-05/0.3823, allocations: 19.97 kB / 370 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.605e-05/0.3824, allocations: 4 kB / 370 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.042e-05/0.3824, allocations: 15.94 kB / 370 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.217e-05/0.3825, allocations: 15.92 kB / 370 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.3825, allocations: 4 kB / 370 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003247/0.3829, allocations: 131.8 kB / 370.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.339e-05/0.3829, allocations: 4 kB / 370.2 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.589e-05/0.3829, allocations: 33.64 kB / 370.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.3831, allocations: 79.81 kB / 370.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.3832, allocations: 0 / 370.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3832, allocations: 4 kB / 370.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3832, allocations: 0 / 370.3 MB, free: 9.816 MB / 298.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.000478/0.3837, allocations: 360.2 kB / 370.6 MB, free: 9.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.3837, allocations: 12.03 kB / 370.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.406e-05/0.3838, allocations: 34.52 kB / 370.7 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.3839, allocations: 11.91 kB / 370.7 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.384, allocations: 163.1 kB / 370.9 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.384, allocations: 11.94 kB / 370.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.3841, allocations: 0 / 370.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.3842, allocations: 57.62 kB / 370.9 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3843, allocations: 4 kB / 370.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.3843, allocations: 0 / 370.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3843, allocations: 3.953 kB / 370.9 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.3844, allocations: 31.97 kB / 371 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002304/0.3847, allocations: 173.5 kB / 371.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.385, allocations: 58.58 kB / 371.2 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003719/0.3854, allocations: 109.1 kB / 371.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.3854, allocations: 34.56 kB / 371.3 MB, free: 8.586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.064e-06/0.3854, allocations: 0 / 371.3 MB, free: 8.586 MB / 298.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.2691/0.6545, allocations: 6.375 MB / 377.7 MB, free: 2.172 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.6546, allocations: 55.39 kB / 377.8 MB, free: 2.105 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.6548, allocations: 113.8 kB / 377.9 MB, free: 1.984 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.171e-05/0.6548, allocations: 25.7 kB / 377.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.6549, allocations: 150.6 kB / 378 MB, free: 1.805 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.655, allocations: 70.98 kB / 378.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.961e-05/0.6551, allocations: 4 kB / 378.1 MB, free: 1.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.6553, allocations: 318.8 kB / 378.4 MB, free: 1.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008647/0.6561, allocations: 219.9 kB / 378.6 MB, free: 1.195 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008213/0.657, allocations: 220.4 kB / 378.9 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001832/0.6588, allocations: 286.7 kB / 379.1 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.6589, allocations: 480 / 379.1 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002929/0.6618, allocations: 0.5755 MB / 379.7 MB, free: 124 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.024e-05/0.6619, allocations: 15.98 kB / 379.7 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.6619, allocations: 0 / 379.7 MB, free: 108 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.6619, allocations: 3.953 kB / 379.7 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008973/0.6628, allocations: 91.83 kB / 379.8 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.6628, allocations: 3.938 kB / 379.8 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.6634, allocations: 31.97 kB / 379.9 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.62e-05/0.6635, allocations: 23.97 kB / 379.9 MB, free: 15.95 MB / 314.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.000195/0.6638, allocations: 113.8 kB / 380 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-05/0.6638, allocations: 7.906 kB / 380 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.6672, allocations: 0.6844 MB / 380.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.6673, allocations: 4 kB / 380.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.6673, allocations: 0 / 380.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.6673, allocations: 3.984 kB / 380.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005411/0.6727, allocations: 1.093 MB / 381.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.6728, allocations: 4 kB / 381.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007538/0.6735, allocations: 91.84 kB / 381.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.6736, allocations: 0 / 381.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/0.6736, allocations: 19.97 kB / 381.9 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.6736, allocations: 4 kB / 381.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.6737, allocations: 4 kB / 381.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.6763, allocations: 0.5627 MB / 382.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.6764, allocations: 88.97 kB / 382.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.281e-05/0.6765, allocations: 11.98 kB / 382.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005296/0.677, allocations: 31.98 kB / 382.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.6771, allocations: 7.984 kB / 382.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.926e-05/0.6772, allocations: 23.97 kB / 382.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.266e-05/0.6772, allocations: 87.53 kB / 382.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6772, allocations: 0 / 382.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002794/0.68, allocations: 0.6444 MB / 383.4 MB, free: 12.33 MB / 314.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.008209/0.6883, allocations: 1.307 MB / 384.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001801/0.6901, allocations: 423.8 kB / 385.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6902, allocations: 0 / 385.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.6909, allocations: 200.1 kB / 385.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.6912, allocations: 10.34 kB / 385.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.6959, allocations: 0.6361 MB / 385.9 MB, free: 9.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.6963, allocations: 0.7006 MB / 386.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.6968, allocations: 75.34 kB / 386.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6968, allocations: 4 kB / 386.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.979/3.676, allocations: 18.34 MB / 405 MB, free: 6.504 MB / 330.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_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