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.TestRegStep.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.TestRegStep,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.939/1.939, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006339/0.0006341, allocations: 15.98 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4321/0.4327, allocations: 48.71 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0009223/0.4337, allocations: 264.1 kB / 331.5 MB, free: 6.391 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002971/0.434, allocations: 61.39 kB / 331.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.085e-05/0.4341, allocations: 1.5 kB / 331.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.4341, allocations: 0 / 331.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.4343, allocations: 11.56 kB / 331.6 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.54e-05/0.4344, allocations: 6.406 kB / 331.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.318e-05/0.4344, allocations: 7.125 kB / 331.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.238e-05/0.4345, allocations: 2 kB / 331.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.133e-05/0.4345, allocations: 3.906 kB / 331.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.872e-05/0.4346, allocations: 6.016 kB / 331.6 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.4346, allocations: 3.766 kB / 331.6 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.4348, allocations: 19.44 kB / 331.7 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.729e-06/0.4348, allocations: 1.641 kB / 331.7 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.569e-05/0.4348, allocations: 31.77 kB / 331.7 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.068e-05/0.4349, allocations: 9.766 kB / 331.7 MB, free: 6.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.4349, allocations: 0 / 331.7 MB, free: 6.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4349, allocations: 0 / 331.7 MB, free: 6.305 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.435, allocations: 4 kB / 331.7 MB, free: 6.301 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002826/0.4353, allocations: 318.7 kB / 332 MB, free: 5.957 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.4353, allocations: 9.625 kB / 332 MB, free: 5.957 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.667e-05/0.4354, allocations: 39.27 kB / 332.1 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.4354, allocations: 1.375 kB / 332.1 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.4355, allocations: 164.1 kB / 332.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.4355, allocations: 1.375 kB / 332.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.4356, allocations: 1.375 kB / 332.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.4358, allocations: 40.78 kB / 332.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.4358, allocations: 0 / 332.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.4358, allocations: 0 / 332.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.4358, allocations: 1.375 kB / 332.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.442e-05/0.4359, allocations: 13.83 kB / 332.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.4361, allocations: 151.4 kB / 332.4 MB, free: 5.473 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.4363, allocations: 42.98 kB / 332.5 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006623/0.437, allocations: 128.5 kB / 332.6 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.4371, allocations: 31.59 kB / 332.6 MB, free: 5.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.953e-06/0.4371, allocations: 0 / 332.6 MB, free: 5.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.002692/0.4398, allocations: 220.1 kB / 332.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.4399, allocations: 53.23 kB / 332.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.4399, allocations: 91.98 kB / 333 MB, free: 5.078 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.44, allocations: 25.7 kB / 333 MB, free: 5.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.11e-05/0.44, allocations: 155.2 kB / 333.2 MB, free: 4.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.4401, allocations: 19.91 kB / 333.2 MB, free: 4.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-06/0.4401, allocations: 0 / 333.2 MB, free: 4.879 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.4402, allocations: 313.2 kB / 333.5 MB, free: 4.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.4404, allocations: 26.75 kB / 333.5 MB, free: 4.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.4406, allocations: 27.69 kB / 333.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.4408, allocations: 23.36 kB / 333.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4408, allocations: 0 / 333.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004612/0.4413, allocations: 85.52 kB / 333.6 MB, free: 4.504 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.4413, allocations: 4.938 kB / 333.6 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4414, allocations: 4 kB / 333.7 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.4414, allocations: 0.6562 kB / 333.7 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.4417, allocations: 16.45 kB / 333.7 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.4417, allocations: 0.9375 kB / 333.7 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.4419, allocations: 8.984 kB / 333.7 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.4419, allocations: 0.6094 kB / 333.7 MB, free: 4.5 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 (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 9e-05/0.442, allocations: 117.2 kB / 333.8 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.4421, allocations: 13.91 kB / 333.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005359/0.4426, allocations: 93.14 kB / 333.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.4426, allocations: 0 / 333.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4427, allocations: 8.062 kB / 333.9 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4427, allocations: 6.484 kB / 333.9 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/0.4441, allocations: 370.2 kB / 334.3 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.4441, allocations: 1.281 kB / 334.3 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002539/0.4444, allocations: 15.7 kB / 334.3 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.186e-06/0.4444, allocations: 5 kB / 334.3 MB, free: 3.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.4444, allocations: 5.906 kB / 334.3 MB, free: 3.977 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.4444, allocations: 1.156 kB / 334.3 MB, free: 3.977 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.4445, allocations: 4.641 kB / 334.3 MB, free: 3.973 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004897/0.445, allocations: 184.6 kB / 334.5 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.445, allocations: 80.48 kB / 334.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.4451, allocations: 5.438 kB / 334.6 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.4453, allocations: 11.94 kB / 334.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.4454, allocations: 3.688 kB / 334.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.4454, allocations: 6.266 kB / 334.6 MB, free: 3.715 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.099e-05/0.4454, allocations: 76.56 kB / 334.7 MB, free: 3.641 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4455, allocations: 0 / 334.7 MB, free: 3.641 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000605/0.4461, allocations: 12.41 kB / 334.7 MB, free: 3.641 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 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.0008359/0.4469, allocations: 0.7307 MB / 335.4 MB, free: 2.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004704/0.4474, allocations: 54.53 kB / 335.5 MB, free: 2.938 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4474, allocations: 0 / 335.5 MB, free: 2.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.4477, allocations: 31.61 kB / 335.5 MB, free: 2.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.448, allocations: 3.109 kB / 335.5 MB, free: 2.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.4491, allocations: 202.9 kB / 335.7 MB, free: 2.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.4493, allocations: 0.6805 MB / 336.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.755e-05/0.4494, allocations: 15.8 kB / 336.4 MB, free: 2.023 MB / 266.7 MB Notification: Performance of SimCode: time 1.273e-06/0.4494, allocations: 0 / 336.4 MB, free: 2.023 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.326/2.775, allocations: 0.8482 MB / 337.2 MB, free: 1.953 MB / 266.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat failed! " Variables in the reference:time,x,yRegStep,yRegStep_der Variables in the result:der(x),der(yRegStep),time,x,x_small,yRegStep,yRegStep_der