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.TestRegRootDerivative.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.TestRegRootDerivative,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005134/0.0005137, allocations: 16 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4265/0.4271, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.0008268/0.428, allocations: 232.2 kB / 331.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000355/0.4283, allocations: 91 kB / 331.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.007e-05/0.4284, allocations: 0 / 331.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.572e-05/0.4284, allocations: 1.375 kB / 331.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 2.555e-05/0.4285, allocations: 0 / 331.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001908/0.4287, allocations: 20.08 kB / 331.6 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.07e-05/0.4287, allocations: 8.609 kB / 331.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.014e-05/0.4288, allocations: 6.641 kB / 331.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.165e-05/0.4288, allocations: 8.016 kB / 331.6 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.473e-05/0.4289, allocations: 9.172 kB / 331.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.429, allocations: 0 / 331.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.4291, allocations: 26.94 kB / 331.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.454e-05/0.4291, allocations: 7.266 kB / 331.7 MB, free: 6.332 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.115e-05/0.4291, allocations: 27.08 kB / 331.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.553e-05/0.4293, allocations: 13.5 kB / 331.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.4293, allocations: 0 / 331.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4293, allocations: 0 / 331.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.4293, allocations: 4 kB / 331.7 MB, free: 6.297 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003659/0.4297, allocations: 325.1 kB / 332 MB, free: 5.949 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.4297, allocations: 9.625 kB / 332 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.457e-05/0.4298, allocations: 31.31 kB / 332.1 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.4298, allocations: 1.891 kB / 332.1 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.43, allocations: 166.1 kB / 332.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.43, allocations: 1.891 kB / 332.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.43, allocations: 1.375 kB / 332.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.4302, allocations: 62.41 kB / 332.3 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.4302, allocations: 0 / 332.3 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.4302, allocations: 1.375 kB / 332.3 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.4303, allocations: 0 / 332.3 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.427e-05/0.4304, allocations: 16.61 kB / 332.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003221/0.4307, allocations: 328.6 kB / 332.6 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.702e-05/0.4308, allocations: 29.25 kB / 332.7 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.4308, allocations: 1.891 kB / 332.7 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.4309, allocations: 31.12 kB / 332.7 MB, free: 5.211 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.954e-06/0.4309, allocations: 1.719 kB / 332.7 MB, free: 5.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002676/0.4312, allocations: 60.25 kB / 332.8 MB, free: 5.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.4312, allocations: 52.91 kB / 332.8 MB, free: 5.102 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.202e-05/0.4313, allocations: 93.88 kB / 332.9 MB, free: 5.004 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.4313, allocations: 34.3 kB / 332.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.4314, allocations: 152.2 kB / 333.1 MB, free: 4.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.4314, allocations: 14.7 kB / 333.1 MB, free: 4.805 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.4314, allocations: 0 / 333.1 MB, free: 4.805 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.703e-05/0.4315, allocations: 322.5 kB / 333.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.178e-05/0.4315, allocations: 3.094 kB / 333.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.186e-05/0.4316, allocations: 22.12 kB / 333.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.972e-05/0.4317, allocations: 8.469 kB / 333.5 MB, free: 4.461 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4317, allocations: 0 / 333.5 MB, free: 4.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001652/0.4319, allocations: 58.48 kB / 333.5 MB, free: 4.418 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.4319, allocations: 9.344 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.4319, allocations: 1 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.432, allocations: 2.125 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.4321, allocations: 6.734 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.4321, allocations: 1.25 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.306e-05/0.4322, allocations: 1.609 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.4322, allocations: 1.859 kB / 333.5 MB, free: 4.414 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 7.63e-05/0.4323, allocations: 124.7 kB / 333.7 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/0.4323, allocations: 5.703 kB / 333.7 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000208/0.4326, allocations: 60.31 kB / 333.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4326, allocations: 1.406 kB / 333.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.4326, allocations: 0.6094 kB / 333.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4326, allocations: 0 / 333.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.4329, allocations: 165.7 kB / 333.9 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.4329, allocations: 0 / 333.9 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.526e-05/0.433, allocations: 7.312 kB / 333.9 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.433, allocations: 9.125 kB / 333.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.433, allocations: 1.734 kB / 333.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4331, allocations: 0 / 333.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4331, allocations: 0 / 333.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001986/0.4333, allocations: 153.9 kB / 334.1 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/0.4333, allocations: 85.66 kB / 334.1 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.4334, allocations: 5.969 kB / 334.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.4335, allocations: 1.25 kB / 334.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.4336, allocations: 6.922 kB / 334.1 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.4336, allocations: 1.594 kB / 334.2 MB, free: 3.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.342e-05/0.4336, allocations: 77.14 kB / 334.2 MB, free: 3.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.4336, allocations: 1.5 kB / 334.2 MB, free: 3.695 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005372/0.4342, allocations: 4.25 kB / 334.2 MB, free: 3.695 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (5): * Single equations (assignments): 5 * 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.0004905/0.4347, allocations: 0.6951 MB / 334.9 MB, free: 3.012 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.4349, allocations: 24.86 kB / 335 MB, free: 3.004 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4349, allocations: 1.031 kB / 335 MB, free: 3.004 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.044e-05/0.435, allocations: 14.62 kB / 335 MB, free: 3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.4353, allocations: 5.438 kB / 335 MB, free: 2.996 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008549/0.4362, allocations: 162.7 kB / 335.1 MB, free: 2.812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.4364, allocations: 0.6838 MB / 335.8 MB, free: 2.113 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.81e-05/0.4365, allocations: 11.22 kB / 335.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of SimCode: time 1.282e-06/0.4365, allocations: 0 / 335.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.514/2.95, allocations: 0.7547 MB / 336.6 MB, free: 2.055 MB / 266.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat failed! " Variables in the reference:time,x,y,yd,k1,k2 Variables in the result:k1,k2,time,x,x_small,y,yd