Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadModel(ModelicaTest): time 2.115/2.115, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.336e-05/2.367e-05, allocations: 7.938 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2733, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.3954, allocations: 80.64 MB / 438.7 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.3957, allocations: 67.97 kB / 438.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008785/0.4045, allocations: 2.306 MB / 441.1 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4045, allocations: 0 / 441.1 MB, free: 11.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.4046, allocations: 4 kB / 441.1 MB, free: 11.82 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005449/0.4051, allocations: 408.1 kB / 441.5 MB, free: 11.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4052, allocations: 12.02 kB / 441.5 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.4052, allocations: 15.81 kB / 441.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.4055, allocations: 198.8 kB / 441.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.4055, allocations: 4 kB / 441.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.4056, allocations: 11.94 kB / 441.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000199/0.4058, allocations: 63.98 kB / 441.8 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.406, allocations: 105.6 kB / 441.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.4061, allocations: 3.938 kB / 441.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.872e-05/0.4061, allocations: 11.89 kB / 441.9 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.231e-06/0.4061, allocations: 4 kB / 441.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007685/0.4069, allocations: 420.8 kB / 442.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.4071, allocations: 102.5 kB / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.4073, allocations: 56.84 kB / 442.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.4073, allocations: 3.984 kB / 442.4 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.4073, allocations: 30.56 kB / 442.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.202e-06/0.4073, allocations: 0 / 442.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001557/0.4089, allocations: 0.7001 MB / 443.2 MB, free: 9.461 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.409, allocations: 51.41 kB / 443.2 MB, free: 9.398 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.4091, allocations: 121 kB / 443.3 MB, free: 9.273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.4091, allocations: 25.7 kB / 443.4 MB, free: 9.242 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.4093, allocations: 178.9 kB / 443.5 MB, free: 9.066 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.045e-05/0.4093, allocations: 74.94 kB / 443.6 MB, free: 8.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.093e-06/0.4094, allocations: 0 / 443.6 MB, free: 8.992 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.4095, allocations: 314.8 kB / 443.9 MB, free: 8.676 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.455e-05/0.4096, allocations: 36.36 kB / 444 MB, free: 8.637 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.4098, allocations: 63 kB / 444 MB, free: 8.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.4099, allocations: 51.94 kB / 444.1 MB, free: 8.516 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-06/0.4099, allocations: 8 kB / 444.1 MB, free: 8.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004343/0.4104, allocations: 170.2 kB / 444.2 MB, free: 8.332 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.4104, allocations: 4.781 kB / 444.3 MB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4104, allocations: 0 / 444.3 MB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.4106, allocations: 40.84 kB / 444.3 MB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.4109, allocations: 43.92 kB / 444.3 MB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.4126, allocations: 1.482 MB / 445.8 MB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.4128, allocations: 0 / 445.8 MB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.4128, allocations: 16.31 kB / 445.8 MB, free: 6.629 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.4129, allocations: 104.9 kB / 445.9 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.265e-05/0.413, allocations: 11.86 kB / 445.9 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.4131, allocations: 16.75 kB / 446 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-06/0.4131, allocations: 0 / 446 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.4131, allocations: 11.98 kB / 446 MB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.98e-06/0.4131, allocations: 7.969 kB / 446 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009436/0.4141, allocations: 499 kB / 446.5 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.334e-06/0.4141, allocations: 7.984 kB / 446.5 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002273/0.4143, allocations: 31.98 kB / 446.5 MB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001563/0.4145, allocations: 28.84 kB / 446.5 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.4146, allocations: 8.031 kB / 446.5 MB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.4159, allocations: 1.303 MB / 447.8 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.835e-06/0.416, allocations: 4 kB / 447.9 MB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000574/0.4166, allocations: 327 kB / 448.2 MB, free: 4.082 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.4166, allocations: 89 kB / 448.3 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.4167, allocations: 0 / 448.3 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.4168, allocations: 4 kB / 448.3 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.4169, allocations: 20.03 kB / 448.3 MB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.4169, allocations: 4 kB / 448.3 MB, free: 3.949 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.558e-05/0.417, allocations: 99.22 kB / 448.4 MB, free: 3.852 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.88e-07/0.417, allocations: 0 / 448.4 MB, free: 3.852 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004708/0.4175, allocations: 32 kB / 448.4 MB, free: 3.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001625/0.4177, allocations: 103.2 kB / 448.5 MB, free: 3.707 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005156/0.4182, allocations: 232.9 kB / 448.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.953e-06/0.4182, allocations: 0 / 448.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.4185, allocations: 169.7 kB / 448.9 MB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.4189, allocations: 19.94 kB / 448.9 MB, free: 3.277 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000804/0.4197, allocations: 352.8 kB / 449.3 MB, free: 2.902 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.4201, allocations: 0.7282 MB / 450 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/0.4202, allocations: 15.44 kB / 450 MB, free: 2.133 MB / 378.7 MB Notification: Performance of SimCode: time 1.989e-06/0.4202, allocations: 0 / 450 MB, free: 2.133 MB / 378.7 MB Notification: Performance of Templates: time 0.005171/0.4254, allocations: 2.259 MB / 452.3 MB, free: 15.87 MB / 394.7 MB