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.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.397/2.397, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005906/0.0005906, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3472, allocations: 54.85 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007435/0.348, allocations: 268.3 kB / 369.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008416/0.3489, allocations: 353.1 kB / 369.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.097e-05/0.3489, allocations: 0 / 369.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.224e-05/0.3489, allocations: 0 / 369.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.165e-05/0.349, allocations: 4 kB / 369.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004034/0.3494, allocations: 71.78 kB / 369.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.726e-05/0.3495, allocations: 19.92 kB / 370 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.919e-05/0.3495, allocations: 0 / 370 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.452e-05/0.3496, allocations: 23.92 kB / 370 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.3497, allocations: 15.92 kB / 370 MB, free: 9.996 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.3497, allocations: 0 / 370 MB, free: 9.996 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002748/0.35, allocations: 103.9 kB / 370.1 MB, free: 9.895 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.35, allocations: 7.984 kB / 370.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.648e-05/0.3501, allocations: 29.7 kB / 370.1 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.3502, allocations: 59.92 kB / 370.2 MB, free: 9.793 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3503, allocations: 0 / 370.2 MB, free: 9.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3503, allocations: 0 / 370.2 MB, free: 9.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3503, allocations: 0 / 370.2 MB, free: 9.793 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.0004721/0.3508, allocations: 352.3 kB / 370.5 MB, free: 9.402 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3508, allocations: 8.031 kB / 370.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.606e-05/0.3509, allocations: 42.5 kB / 370.6 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3509, allocations: 11.84 kB / 370.6 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.3511, allocations: 163.1 kB / 370.8 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.3511, allocations: 4 kB / 370.8 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.3511, allocations: 4 kB / 370.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.3513, allocations: 53.67 kB / 370.8 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.3513, allocations: 7.844 kB / 370.8 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.3514, allocations: 8 kB / 370.8 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3514, allocations: 0 / 370.8 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.3515, allocations: 31.88 kB / 370.9 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002157/0.3517, allocations: 173.6 kB / 371 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.352, allocations: 58.83 kB / 371.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003961/0.3524, allocations: 125 kB / 371.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.3525, allocations: 34.5 kB / 371.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.874e-06/0.3525, allocations: 0 / 371.3 MB, free: 8.551 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.08203/0.4345, allocations: 2.818 MB / 374.1 MB, free: 5.699 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.4346, allocations: 51.41 kB / 374.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.478e-05/0.4347, allocations: 105.8 kB / 374.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.166e-05/0.4348, allocations: 25.7 kB / 374.3 MB, free: 5.492 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.615e-05/0.4349, allocations: 154.5 kB / 374.4 MB, free: 5.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.435, allocations: 67.02 kB / 374.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.435, allocations: 4 kB / 374.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4352, allocations: 322.8 kB / 374.8 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007313/0.4359, allocations: 188.4 kB / 375 MB, free: 4.762 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007324/0.4367, allocations: 191.9 kB / 375.2 MB, free: 4.574 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009785/0.4377, allocations: 214.8 kB / 375.4 MB, free: 4.367 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4377, allocations: 11.94 kB / 375.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001897/0.4396, allocations: 485.4 kB / 375.9 MB, free: 3.875 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4396, allocations: 7.938 kB / 375.9 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4397, allocations: 0 / 375.9 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.4397, allocations: 4 kB / 375.9 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006876/0.4404, allocations: 83.89 kB / 376 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.4404, allocations: 4 kB / 376 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004157/0.4408, allocations: 23.97 kB / 376 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.491e-05/0.4409, allocations: 23.98 kB / 376 MB, free: 3.73 MB / 298.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.0001739/0.4411, allocations: 117.8 kB / 376.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.577e-05/0.4412, allocations: 7.906 kB / 376.1 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.4435, allocations: 0.5643 MB / 376.7 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.4435, allocations: 4 kB / 376.7 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.4435, allocations: 4 kB / 376.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4436, allocations: 3.984 kB / 376.7 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.4473, allocations: 0.9516 MB / 377.7 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.4474, allocations: 4 kB / 377.7 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.4479, allocations: 67.95 kB / 377.7 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.448, allocations: 4.25 kB / 377.7 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.634e-05/0.448, allocations: 19.98 kB / 377.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.007e-05/0.4481, allocations: 8.125 kB / 377.8 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.4481, allocations: 8 kB / 377.8 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.4497, allocations: 487.3 kB / 378.2 MB, free: 1.367 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.054e-05/0.4498, allocations: 92.95 kB / 378.3 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.4499, allocations: 8 kB / 378.3 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.4503, allocations: 23.98 kB / 378.4 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.4503, allocations: 19.92 kB / 378.4 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/0.4504, allocations: 15.98 kB / 378.4 MB, free: 1.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.388e-05/0.4505, allocations: 83.28 kB / 378.5 MB, free: 1.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.264e-06/0.4505, allocations: 0 / 378.5 MB, free: 1.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001244/0.4517, allocations: 323.8 kB / 378.8 MB, free: 0.793 MB / 298.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.004101/0.4558, allocations: 1.151 MB / 379.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.4575, allocations: 367.9 kB / 380.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.4575, allocations: 4 kB / 380.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006938/0.4582, allocations: 168.2 kB / 380.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.4585, allocations: 7.984 kB / 380.5 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.4617, allocations: 0.5907 MB / 381.1 MB, free: 14.4 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.462, allocations: 0.6968 MB / 381.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.4624, allocations: 63.39 kB / 381.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of SimCode: time 9.81e-07/0.4624, allocations: 0 / 381.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.433/2.895, allocations: 7.845 MB / 389.7 MB, free: 5.773 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_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