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.TestRegStep.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.TestRegStep,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.405/2.405, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004285, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3386, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0007814/0.3394, allocations: 276.3 kB / 369.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002506/0.3397, allocations: 63.83 kB / 369.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.374e-05/0.3397, allocations: 0 / 369.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.177e-06/0.3398, allocations: 0 / 369.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.3399, allocations: 7.984 kB / 369.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.206e-05/0.34, allocations: 4 kB / 369.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.838e-05/0.34, allocations: 7.938 kB / 369.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.731e-05/0.3401, allocations: 3.938 kB / 369.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.942e-05/0.3401, allocations: 3.984 kB / 369.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.178e-05/0.3402, allocations: 7.984 kB / 369.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.3402, allocations: 0 / 369.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.298e-05/0.3403, allocations: 15.98 kB / 369.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-06/0.3403, allocations: 4 kB / 369.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.716e-05/0.3403, allocations: 29.7 kB / 369.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.614e-05/0.3404, allocations: 11.98 kB / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.3404, allocations: 0 / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3404, allocations: 0 / 369.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.3405, allocations: 0 / 369.7 MB, free: 10.29 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003075/0.3408, allocations: 325.5 kB / 370 MB, free: 9.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3408, allocations: 8.031 kB / 370 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.315e-05/0.3409, allocations: 30.56 kB / 370.1 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.335e-05/0.3409, allocations: 11.95 kB / 370.1 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.341, allocations: 159.1 kB / 370.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3411, allocations: 0 / 370.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.4e-05/0.3411, allocations: 3.984 kB / 370.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.3412, allocations: 37.69 kB / 370.3 MB, free: 9.621 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3412, allocations: 0 / 370.3 MB, free: 9.621 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.3412, allocations: 4 kB / 370.3 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3412, allocations: 0 / 370.3 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.5e-05/0.3413, allocations: 11.94 kB / 370.3 MB, free: 9.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.3415, allocations: 157.6 kB / 370.4 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.3417, allocations: 34.61 kB / 370.5 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005377/0.3423, allocations: 129.1 kB / 370.6 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.3423, allocations: 30.56 kB / 370.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.3423, allocations: 0 / 370.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.002087/0.3444, allocations: 222.3 kB / 370.8 MB, free: 8.953 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.3445, allocations: 63.34 kB / 370.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.12e-05/0.3445, allocations: 93.81 kB / 371 MB, free: 8.777 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.3446, allocations: 33.64 kB / 371 MB, free: 8.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.286e-05/0.3446, allocations: 150.6 kB / 371.2 MB, free: 8.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.3447, allocations: 19.73 kB / 371.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-06/0.3447, allocations: 0 / 371.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3448, allocations: 314.8 kB / 371.5 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.345, allocations: 24.11 kB / 371.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.3451, allocations: 23.92 kB / 371.5 MB, free: 8.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.3453, allocations: 23.98 kB / 371.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3453, allocations: 0 / 371.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003534/0.3457, allocations: 85.66 kB / 371.7 MB, free: 8.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3457, allocations: 4 kB / 371.7 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.3457, allocations: 4 kB / 371.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.3457, allocations: 0 / 371.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.3459, allocations: 15.98 kB / 371.7 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.346, allocations: 0 / 371.7 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.3461, allocations: 19.94 kB / 371.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.3461, allocations: 4 kB / 371.7 MB, free: 8.047 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 (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 8.471e-05/0.3462, allocations: 105.8 kB / 371.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.3463, allocations: 0 / 371.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004115/0.3467, allocations: 105.1 kB / 371.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3467, allocations: 0 / 371.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3467, allocations: 0 / 371.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3467, allocations: 0 / 371.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.3479, allocations: 379.2 kB / 372.3 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3479, allocations: 0 / 372.3 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.3481, allocations: 15.98 kB / 372.3 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3481, allocations: 4 kB / 372.3 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3481, allocations: 4.031 kB / 372.3 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3481, allocations: 320 / 372.3 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3481, allocations: 3.953 kB / 372.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.3485, allocations: 196.6 kB / 372.5 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.3486, allocations: 77.11 kB / 372.6 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.3486, allocations: 3.984 kB / 372.6 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.3488, allocations: 11.98 kB / 372.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.3489, allocations: 3.953 kB / 372.6 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.3489, allocations: 7.938 kB / 372.6 MB, free: 7.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.515e-05/0.3489, allocations: 79.28 kB / 372.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.349, allocations: 0 / 372.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002884/0.3493, allocations: 16.09 kB / 372.7 MB, free: 6.945 MB / 298.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.0007243/0.35, allocations: 0.7249 MB / 373.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003303/0.3503, allocations: 55.95 kB / 373.5 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3504, allocations: 0 / 373.5 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.3505, allocations: 31.98 kB / 373.5 MB, free: 6.105 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001622/0.3507, allocations: 7.953 kB / 373.5 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007643/0.3515, allocations: 202.8 kB / 373.7 MB, free: 5.848 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.3517, allocations: 0.6848 MB / 374.4 MB, free: 5.137 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.3518, allocations: 11.44 kB / 374.4 MB, free: 5.125 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3518, allocations: 0 / 374.4 MB, free: 5.125 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.229/2.581, allocations: 0.8308 MB / 375.2 MB, free: 4.297 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_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