Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadModel(ModelicaTest): time 1.878/1.878, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.28e-05/1.281e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2625, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.3749, allocations: 74.28 MB / 394.3 MB, free: 6.176 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.3752, allocations: 67.97 kB / 394.3 MB, free: 6.109 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008882/0.3841, allocations: 2.305 MB / 396.7 MB, free: 3.801 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.24e-06/0.3841, allocations: 4 kB / 396.7 MB, free: 3.797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.3841, allocations: 4 kB / 396.7 MB, free: 3.793 MB / 330.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.0005344/0.3847, allocations: 400.2 kB / 397.1 MB, free: 3.359 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3847, allocations: 8.031 kB / 397.1 MB, free: 3.352 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.704e-05/0.3848, allocations: 15.81 kB / 397.1 MB, free: 3.336 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.3851, allocations: 211.2 kB / 397.3 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.3851, allocations: 7.938 kB / 397.3 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.3851, allocations: 11.98 kB / 397.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001957/0.3853, allocations: 60 kB / 397.4 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.3856, allocations: 101.7 kB / 397.5 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.3856, allocations: 4 kB / 397.5 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.3857, allocations: 0 / 397.5 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.522e-06/0.3857, allocations: 7.938 kB / 397.5 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007763/0.3865, allocations: 424.8 kB / 397.9 MB, free: 2.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.3867, allocations: 106.5 kB / 398 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.3868, allocations: 52.84 kB / 398 MB, free: 2.273 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.3869, allocations: 0 / 398 MB, free: 2.273 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.3869, allocations: 34.56 kB / 398.1 MB, free: 2.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.854e-06/0.3869, allocations: 0 / 398.1 MB, free: 2.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001571/0.3885, allocations: 0.7056 MB / 398.8 MB, free: 1.434 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.3886, allocations: 55.34 kB / 398.8 MB, free: 1.367 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3887, allocations: 118 kB / 399 MB, free: 1.246 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3887, allocations: 25.7 kB / 399 MB, free: 1.215 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3889, allocations: 182.7 kB / 399.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.3889, allocations: 59.11 kB / 399.2 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.535e-06/0.389, allocations: 0 / 399.2 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3891, allocations: 318.8 kB / 399.5 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.38e-05/0.3892, allocations: 36.38 kB / 399.6 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.3894, allocations: 60 kB / 399.6 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.3895, allocations: 51.97 kB / 399.7 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.057e-06/0.3895, allocations: 0 / 399.7 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004342/0.3899, allocations: 178.1 kB / 399.8 MB, free: 320 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.39, allocations: 4 kB / 399.8 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.584e-06/0.39, allocations: 4 kB / 399.8 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001952/0.3902, allocations: 36.84 kB / 399.9 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.3904, allocations: 40 kB / 399.9 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/0.3922, allocations: 1.494 MB / 401.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.3924, allocations: 7.953 kB / 401.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.3924, allocations: 4 kB / 401.4 MB, free: 14.61 MB / 346.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.0001113/0.3925, allocations: 104.9 kB / 401.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.3926, allocations: 19.94 kB / 401.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.34e-05/0.3927, allocations: 12.73 kB / 401.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.597e-06/0.3927, allocations: 4 kB / 401.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.853e-06/0.3927, allocations: 4.062 kB / 401.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.393e-06/0.3927, allocations: 0 / 401.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009606/0.3937, allocations: 0.4987 MB / 402.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-06/0.3937, allocations: 3.938 kB / 402.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.3939, allocations: 36.02 kB / 402.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001529/0.3941, allocations: 28.84 kB / 402.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.3941, allocations: 0 / 402.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.3955, allocations: 1.311 MB / 403.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.136e-06/0.3956, allocations: 0 / 403.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.3961, allocations: 326.8 kB / 403.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.3963, allocations: 101 kB / 403.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.3963, allocations: 4.125 kB / 403.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.3964, allocations: 4 kB / 403.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.3965, allocations: 19.97 kB / 403.9 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.3965, allocations: 7.953 kB / 403.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.897e-05/0.3966, allocations: 93.67 kB / 404 MB, free: 11.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.96e-07/0.3966, allocations: 0 / 404 MB, free: 11.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004694/0.3971, allocations: 35.94 kB / 404 MB, free: 11.79 MB / 346.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.0001585/0.3973, allocations: 111.9 kB / 404.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005072/0.3978, allocations: 226.8 kB / 404.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.882e-06/0.3978, allocations: 0 / 404.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.3982, allocations: 173.6 kB / 404.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.3985, allocations: 17.62 kB / 404.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000773/0.3992, allocations: 348.8 kB / 404.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.3997, allocations: 0.7243 MB / 405.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.427e-05/0.3998, allocations: 15.44 kB / 405.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of SimCode: time 1.489e-06/0.3998, allocations: 0 / 405.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Templates: time 0.00495/0.4047, allocations: 2.253 MB / 407.9 MB, free: 7.855 MB / 346.7 MB