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.TestRegFunctions.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.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.142/2.142, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004148/0.0004149, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3302, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001317/0.3315, allocations: 300.2 kB / 369.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005331/0.3321, allocations: 117.8 kB / 369.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.42e-05/0.3322, allocations: 0 / 369.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.88e-05/0.3322, allocations: 0 / 369.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002907/0.3325, allocations: 31.89 kB / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.559e-06/0.3325, allocations: 0 / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.928e-05/0.3326, allocations: 7.984 kB / 369.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.206e-05/0.3327, allocations: 4 kB / 369.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.015e-05/0.3327, allocations: 11.92 kB / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.335e-05/0.3328, allocations: 15.86 kB / 369.7 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.3328, allocations: 4 kB / 369.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.333, allocations: 47.94 kB / 369.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.3331, allocations: 4 kB / 369.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.3331, allocations: 29.7 kB / 369.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.3333, allocations: 31.94 kB / 369.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.3333, allocations: 0 / 369.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3333, allocations: 0 / 369.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3333, allocations: 4 kB / 369.9 MB, free: 10.11 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004039/0.3337, allocations: 327.3 kB / 370.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.3338, allocations: 12.03 kB / 370.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.157e-05/0.3339, allocations: 34.5 kB / 370.2 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.047e-05/0.334, allocations: 11.95 kB / 370.2 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.3343, allocations: 164 kB / 370.4 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.3343, allocations: 4 kB / 370.4 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.3344, allocations: 4 kB / 370.4 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.3347, allocations: 61.61 kB / 370.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3348, allocations: 0 / 370.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.3348, allocations: 11.88 kB / 370.5 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.3348, allocations: 3.984 kB / 370.5 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.335, allocations: 59.91 kB / 370.5 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003306/0.3354, allocations: 177.6 kB / 370.7 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.3357, allocations: 74.56 kB / 370.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005736/0.3362, allocations: 255.6 kB / 371 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.3363, allocations: 34.5 kB / 371.1 MB, free: 8.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.645e-06/0.3363, allocations: 0 / 371.1 MB, free: 8.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006795/0.337, allocations: 101.6 kB / 371.2 MB, free: 8.574 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.005e-05/0.3371, allocations: 55.41 kB / 371.2 MB, free: 8.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.3373, allocations: 97.86 kB / 371.3 MB, free: 8.402 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.3373, allocations: 25.7 kB / 371.3 MB, free: 8.371 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.379e-05/0.3374, allocations: 154.5 kB / 371.5 MB, free: 8.219 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.478e-05/0.3375, allocations: 35.45 kB / 371.5 MB, free: 8.184 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.3375, allocations: 0 / 371.5 MB, free: 8.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3377, allocations: 314.8 kB / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.812e-05/0.3378, allocations: 19.98 kB / 371.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.832e-05/0.3379, allocations: 20.11 kB / 371.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.201e-05/0.338, allocations: 20.56 kB / 371.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.338, allocations: 0 / 371.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002774/0.3383, allocations: 85.56 kB / 372 MB, free: 7.719 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.3383, allocations: 8 kB / 372 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3383, allocations: 0 / 372 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3384, allocations: 0 / 372 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.3386, allocations: 19.92 kB / 372 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.3386, allocations: 0 / 372 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.679e-05/0.3387, allocations: 8 kB / 372 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3387, allocations: 7.953 kB / 372 MB, free: 7.676 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 (10): * Single equations (assignments): 10 * 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.0001571/0.3389, allocations: 113.8 kB / 372.1 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.339, allocations: 3.906 kB / 372.1 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003973/0.3394, allocations: 105.5 kB / 372.2 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3394, allocations: 0 / 372.2 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3394, allocations: 0 / 372.2 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.3395, allocations: 3.984 kB / 372.2 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.3396, allocations: 177.5 kB / 372.4 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3396, allocations: 4 kB / 372.4 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.3398, allocations: 23.92 kB / 372.4 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.3398, allocations: 4 kB / 372.5 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.3398, allocations: 0 / 372.5 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3398, allocations: 0 / 372.5 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3398, allocations: 0 / 372.5 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.3401, allocations: 113 kB / 372.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.3401, allocations: 81.09 kB / 372.6 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.3401, allocations: 8.281 kB / 372.7 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.611e-05/0.3402, allocations: 4 kB / 372.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.128e-05/0.3402, allocations: 0 / 372.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.3402, allocations: 15.88 kB / 372.7 MB, free: 6.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.805e-05/0.3403, allocations: 79.27 kB / 372.7 MB, free: 6.852 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3403, allocations: 0 / 372.7 MB, free: 6.852 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002533/0.3406, allocations: 12 kB / 372.8 MB, free: 6.84 MB / 298.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 (10): * Single equations (assignments): 10 * 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.0005809/0.3412, allocations: 0.6632 MB / 373.4 MB, free: 6.145 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001837/0.3414, allocations: 51.92 kB / 373.5 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3414, allocations: 0 / 373.5 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.575e-05/0.3415, allocations: 27.98 kB / 373.5 MB, free: 6.066 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3416, allocations: 4 kB / 373.5 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.3422, allocations: 214 kB / 373.7 MB, free: 5.805 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.3425, allocations: 0.6896 MB / 374.4 MB, free: 5.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.3425, allocations: 19.44 kB / 374.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.3425, allocations: 0 / 374.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.342/2.684, allocations: 1.003 MB / 375.4 MB, free: 4.066 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat failed! " Variables in the reference:time,x,sqrtx,sqrtx_a,x2,x2_a,x3,x3_a,sqrtxerr,x2err,x3err Variables in the result:delta,sqrtx,sqrtx_a,sqrtxerr,time,x,x2,x2_a,x2err,x3,x3_a,x3err