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.TestRegRoot2ZeroDerivative.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.TestRegRoot2ZeroDerivative,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004348, allocations: 16 kB / 314.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3596, allocations: 54.86 MB / 369.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative): time 0.0007008/0.3604, allocations: 256.4 kB / 369.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008873/0.3613, allocations: 377.5 kB / 369.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.183e-05/0.3613, allocations: 4 kB / 369.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.746e-05/0.3614, allocations: 3.938 kB / 369.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.106e-05/0.3614, allocations: 0 / 369.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004829/0.3619, allocations: 91.77 kB / 370 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.228e-05/0.362, allocations: 11.98 kB / 370 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.362, allocations: 4 kB / 370 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.235e-05/0.3621, allocations: 23.92 kB / 370 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.3621, allocations: 19.91 kB / 370.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.3622, allocations: 4 kB / 370.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000341/0.3625, allocations: 131.8 kB / 370.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/0.3625, allocations: 15.92 kB / 370.2 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.827e-05/0.3626, allocations: 25.7 kB / 370.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.3628, allocations: 83.81 kB / 370.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3628, allocations: 0 / 370.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3628, allocations: 0 / 370.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3628, allocations: 0 / 370.3 MB, free: 11.75 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004315/0.3633, allocations: 360.2 kB / 370.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3633, allocations: 8.031 kB / 370.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.119e-05/0.3634, allocations: 42.52 kB / 370.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.3634, allocations: 3.906 kB / 370.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.3636, allocations: 167 kB / 370.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.3636, allocations: 4 kB / 370.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.3636, allocations: 4 kB / 370.9 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.3638, allocations: 69.66 kB / 371 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.3638, allocations: 0 / 371 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.3639, allocations: 4 kB / 371 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.3639, allocations: 7.953 kB / 371 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.364, allocations: 43.95 kB / 371 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002198/0.3642, allocations: 173.5 kB / 371.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.3645, allocations: 86.61 kB / 371.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003488/0.3648, allocations: 113.3 kB / 371.4 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3649, allocations: 34.5 kB / 371.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.3649, allocations: 0 / 371.4 MB, free: 10.47 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: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.2721/0.637, allocations: 5.828 MB / 377.2 MB, free: 4.602 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.6371, allocations: 59.41 kB / 377.3 MB, free: 4.531 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.843e-05/0.6372, allocations: 93.8 kB / 377.4 MB, free: 4.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.6373, allocations: 33.7 kB / 377.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.234e-05/0.6374, allocations: 150.9 kB / 377.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.6375, allocations: 78.89 kB / 377.6 MB, free: 4.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.6375, allocations: 0 / 377.6 MB, free: 4.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.6377, allocations: 318.8 kB / 378 MB, free: 3.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007034/0.6384, allocations: 136 kB / 378.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006946/0.6391, allocations: 147.3 kB / 378.2 MB, free: 3.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.6405, allocations: 175.7 kB / 378.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.6405, allocations: 4 kB / 378.4 MB, free: 3.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002281/0.6428, allocations: 409.1 kB / 378.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.6428, allocations: 4 kB / 378.8 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.6429, allocations: 0 / 378.8 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.6429, allocations: 4 kB / 378.8 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007178/0.6436, allocations: 91.84 kB / 378.9 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.6436, allocations: 4 kB / 378.9 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.6441, allocations: 35.97 kB / 378.9 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.6441, allocations: 15.98 kB / 379 MB, free: 2.832 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 (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.0001579/0.6443, allocations: 121.8 kB / 379.1 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.135e-05/0.6444, allocations: 15.8 kB / 379.1 MB, free: 2.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.647, allocations: 479.3 kB / 379.6 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.6471, allocations: 4 kB / 379.6 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.6471, allocations: 0 / 379.6 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.6471, allocations: 4 kB / 379.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004026/0.6511, allocations: 0.8713 MB / 380.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.6512, allocations: 4 kB / 380.4 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005684/0.6518, allocations: 79.88 kB / 380.5 MB, free: 1.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.6518, allocations: 4 kB / 380.5 MB, free: 1.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.6518, allocations: 20.05 kB / 380.5 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.6519, allocations: 0 / 380.5 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6519, allocations: 0 / 380.5 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.654, allocations: 480.8 kB / 381 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.6541, allocations: 81.02 kB / 381.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.6542, allocations: 7.938 kB / 381.1 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/0.6546, allocations: 39.95 kB / 381.1 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.6546, allocations: 19.98 kB / 381.2 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.6547, allocations: 15.94 kB / 381.2 MB, free: 0.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.258e-05/0.6547, allocations: 79.28 kB / 381.3 MB, free: 432 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6547, allocations: 0 / 381.3 MB, free: 432 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.002565/0.6573, allocations: 0.625 MB / 381.9 MB, free: 15.79 MB / 314.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.007772/0.6651, allocations: 1.202 MB / 383.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.6667, allocations: 299.7 kB / 383.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6667, allocations: 4 kB / 383.4 MB, free: 14.26 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.6674, allocations: 158.8 kB / 383.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.6676, allocations: 7.938 kB / 383.5 MB, free: 14.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.6707, allocations: 0.5198 MB / 384.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.671, allocations: 0.7017 MB / 384.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.6713, allocations: 59.39 kB / 384.8 MB, free: 12.73 MB / 314.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6713, allocations: 0 / 384.8 MB, free: 12.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.125/3.797, allocations: 16.81 MB / 401.6 MB, free: 11.93 MB / 330.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_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