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.TestRegRoot2ZeroDerivative.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.TestRegRoot2ZeroDerivative,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.017/2.017, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000782/0.0007818, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4321/0.4329, allocations: 48.71 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative): time 0.0008421/0.4338, allocations: 255.6 kB / 331.5 MB, free: 6.395 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009308/0.4348, allocations: 376.3 kB / 331.9 MB, free: 6.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.4348, allocations: 0 / 331.9 MB, free: 6.199 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.4349, allocations: 3.938 kB / 331.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 2.339e-05/0.4349, allocations: 0 / 331.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.4354, allocations: 98.06 kB / 332 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.949e-05/0.4355, allocations: 14.81 kB / 332 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.246e-05/0.4356, allocations: 3.125 kB / 332 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.186e-05/0.4356, allocations: 17.42 kB / 332 MB, free: 6.148 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.611e-05/0.4357, allocations: 22.55 kB / 332.1 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.4357, allocations: 1.312 kB / 332.1 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.4361, allocations: 133.4 kB / 332.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.4361, allocations: 15.09 kB / 332.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.406e-05/0.4361, allocations: 31.27 kB / 332.2 MB, free: 6.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.4364, allocations: 75.89 kB / 332.3 MB, free: 6.066 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.4364, allocations: 0 / 332.3 MB, free: 6.066 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4364, allocations: 4 kB / 332.3 MB, free: 6.062 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.4364, allocations: 0 / 332.3 MB, free: 6.062 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0003772/0.4368, allocations: 355.1 kB / 332.7 MB, free: 5.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.4368, allocations: 9.875 kB / 332.7 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.741e-05/0.4369, allocations: 37.09 kB / 332.7 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.134e-05/0.4369, allocations: 7.297 kB / 332.7 MB, free: 5.645 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.773e-05/0.437, allocations: 169.5 kB / 332.9 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.437, allocations: 2.812 kB / 332.9 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.4371, allocations: 8.75 kB / 332.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.4373, allocations: 63.41 kB / 332.9 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.4373, allocations: 1.812 kB / 332.9 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.4373, allocations: 5.125 kB / 333 MB, free: 5.391 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4373, allocations: 1.031 kB / 333 MB, free: 5.391 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.4375, allocations: 44.61 kB / 333 MB, free: 5.383 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002425/0.4377, allocations: 186.7 kB / 333.2 MB, free: 5.172 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.438, allocations: 86.3 kB / 333.3 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003361/0.4383, allocations: 118.3 kB / 333.4 MB, free: 5.027 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.4384, allocations: 32.41 kB / 333.4 MB, free: 4.988 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 2.575e-06/0.4384, allocations: 0 / 333.4 MB, free: 4.988 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: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.3163/0.7546, allocations: 5.831 MB / 339.2 MB, free: 2.363 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.7547, allocations: 53.59 kB / 339.3 MB, free: 2.301 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.197e-05/0.7548, allocations: 95.03 kB / 339.4 MB, free: 2.199 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.7548, allocations: 30.92 kB / 339.4 MB, free: 2.164 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.545e-05/0.7549, allocations: 150.9 kB / 339.6 MB, free: 2.012 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.906e-05/0.755, allocations: 77 kB / 339.6 MB, free: 1.945 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.969e-05/0.755, allocations: 5.219 kB / 339.6 MB, free: 1.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.493e-05/0.7551, allocations: 321 kB / 340 MB, free: 1.621 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006542/0.7557, allocations: 133.9 kB / 340.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006729/0.7564, allocations: 139.6 kB / 340.2 MB, free: 1.516 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.7578, allocations: 176.6 kB / 340.4 MB, free: 1.449 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.7579, allocations: 4 kB / 340.4 MB, free: 1.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002179/0.7601, allocations: 406.7 kB / 340.8 MB, free: 1.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.7601, allocations: 4.156 kB / 340.8 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.7601, allocations: 0 / 340.8 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.7602, allocations: 1.469 kB / 340.8 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006996/0.7609, allocations: 97.59 kB / 340.9 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.7609, allocations: 0 / 340.9 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004032/0.7613, allocations: 43.27 kB / 340.9 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/0.7614, allocations: 19.45 kB / 341 MB, free: 1.211 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 (23): * Single equations (assignments): 23 * 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.0001361/0.7615, allocations: 121.3 kB / 341.1 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/0.7616, allocations: 7.625 kB / 341.1 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00255/0.7641, allocations: 487.3 kB / 341.6 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.7642, allocations: 2.875 kB / 341.6 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.7642, allocations: 5.297 kB / 341.6 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.7642, allocations: 0 / 341.6 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003893/0.7681, allocations: 0.8693 MB / 342.4 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.7682, allocations: 1.188 kB / 342.4 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000556/0.7687, allocations: 91.36 kB / 342.5 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.7687, allocations: 1.406 kB / 342.5 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.7688, allocations: 16.95 kB / 342.5 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.7688, allocations: 1.438 kB / 342.6 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.7688, allocations: 0 / 342.6 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.771, allocations: 471.8 kB / 343 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.351e-05/0.7711, allocations: 91.91 kB / 343.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.7712, allocations: 9.953 kB / 343.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/0.7715, allocations: 40.62 kB / 343.2 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.432e-05/0.7716, allocations: 10.98 kB / 343.2 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.7716, allocations: 18.95 kB / 343.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.161e-05/0.7717, allocations: 76.53 kB / 343.3 MB, free: 15.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7717, allocations: 3.938 kB / 343.3 MB, free: 15.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002664/0.7744, allocations: 0.6223 MB / 343.9 MB, free: 15.7 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.007958/0.7824, allocations: 1.201 MB / 345.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.7841, allocations: 304.3 kB / 345.4 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.7841, allocations: 3.938 kB / 345.4 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007357/0.7849, allocations: 152.2 kB / 345.5 MB, free: 14.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.7851, allocations: 7.438 kB / 345.5 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.7886, allocations: 0.5171 MB / 346.1 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.789, allocations: 0.698 MB / 346.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.7894, allocations: 66.47 kB / 346.8 MB, free: 13.51 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.7894, allocations: 0 / 346.8 MB, free: 13.51 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.078/3.867, allocations: 16.81 MB / 363.6 MB, free: 13.58 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat failed! " Variables in the reference:time,x,y1,y1d,y1dd,y2,y2d,y2dd,y3,y3d,y3dd,y4,y4d,y4dd Variables in the result:der(der(x)),der(x),der(y1),der(y1d),der(y2),der(y2d),der(y3),der(y3d),der(y4),der(y4d),time,x,x_small,y1,y1d,y1dd,y2,y2d,y2dd,y3,y3d,y3dd,y4,y4d,y4dd