Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: 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 2.063/2.063, allocations: 209.3 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004252, allocations: 8 kB / 283.1 MB, free: 9.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3536, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.4931, allocations: 75.03 MB / 406.8 MB, free: 3.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.4935, allocations: 75.97 kB / 406.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009952/0.5035, allocations: 2.335 MB / 409.2 MB, free: 1.016 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5035, allocations: 0 / 409.2 MB, free: 1.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.5036, allocations: 4 kB / 409.2 MB, free: 1.012 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.000637/0.5042, allocations: 410.9 kB / 409.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.5043, allocations: 16.03 kB / 409.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.991e-05/0.5043, allocations: 15.81 kB / 409.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.5046, allocations: 202.8 kB / 409.9 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.5046, allocations: 8 kB / 409.9 MB, free: 292 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.5047, allocations: 16 kB / 409.9 MB, free: 276 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/0.5051, allocations: 117.6 kB / 410 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.5051, allocations: 4 kB / 410 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.5052, allocations: 7.984 kB / 410 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.5052, allocations: 4 kB / 410 MB, free: 136 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.5055, allocations: 83.95 kB / 410.1 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.5066, allocations: 484 kB / 410.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.5069, allocations: 114.5 kB / 410.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.507, allocations: 1.641 kB / 410.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.507, allocations: 30.56 kB / 410.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.805e-06/0.507, allocations: 0 / 410.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.002248/0.5093, allocations: 0.8302 MB / 411.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.5094, allocations: 55.41 kB / 411.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.5096, allocations: 136.9 kB / 411.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.5096, allocations: 29.7 kB / 411.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.71e-05/0.5097, allocations: 182.7 kB / 411.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.891e-05/0.5098, allocations: 59.11 kB / 412 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.5098, allocations: 8 kB / 412 MB, free: 13.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.5099, allocations: 314.8 kB / 412.3 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.5101, allocations: 48.36 kB / 412.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.5103, allocations: 83.09 kB / 412.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.5105, allocations: 62.33 kB / 412.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5105, allocations: 0 / 412.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000619/0.5112, allocations: 210.2 kB / 412.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.5112, allocations: 4 kB / 412.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.5112, allocations: 7.984 kB / 412.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002514/0.5115, allocations: 36.84 kB / 412.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.5118, allocations: 31.98 kB / 412.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.5139, allocations: 1.581 MB / 414.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.5141, allocations: 8.062 kB / 414.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.5141, allocations: 8 kB / 414.4 MB, free: 11.41 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 () * Number of clocked 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.0001755/0.5143, allocations: 121.8 kB / 414.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.5144, allocations: 11.81 kB / 414.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.323e-05/0.5145, allocations: 25.14 kB / 414.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.5145, allocations: 3.984 kB / 414.6 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.5145, allocations: 4 kB / 414.6 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5145, allocations: 0 / 414.6 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.5158, allocations: 0.5589 MB / 415.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.5158, allocations: 0 / 415.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.5161, allocations: 43.95 kB / 415.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000176/0.5163, allocations: 24.84 kB / 415.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.5164, allocations: 11.98 kB / 415.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/0.5179, allocations: 1.382 MB / 416.6 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.778e-06/0.5179, allocations: 3.953 kB / 416.6 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008056/0.5187, allocations: 349.4 kB / 416.9 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.5188, allocations: 97 kB / 417 MB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.5189, allocations: 3.953 kB / 417 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.5191, allocations: 11.98 kB / 417 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.429e-05/0.5191, allocations: 11.98 kB / 417 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.5192, allocations: 8 kB / 417 MB, free: 8.508 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.5193, allocations: 105.5 kB / 417.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5193, allocations: 0 / 417.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004629/0.5198, allocations: 48 kB / 417.2 MB, free: 8.359 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 () * Number of clocked 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.0001564/0.5199, allocations: 107.2 kB / 417.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007331/0.5207, allocations: 270.9 kB / 417.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5207, allocations: 0 / 417.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004369/0.5212, allocations: 198.7 kB / 417.8 MB, free: 7.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003727/0.5215, allocations: 16.45 kB / 417.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.5228, allocations: 0.543 MB / 418.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.5232, allocations: 0.7324 MB / 419.1 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.266e-05/0.5233, allocations: 19.38 kB / 419.1 MB, free: 6.383 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5233, allocations: 0 / 419.1 MB, free: 6.383 MB / 346.7 MB Notification: Performance of Templates: time 0.005941/0.5293, allocations: 2.323 MB / 421.4 MB, free: 4.059 MB / 346.7 MB