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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.821/1.821, allocations: 209.2 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004494, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2836, allocations: 48.7 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.4002, allocations: 75.03 MB / 406.3 MB, free: 3.438 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.4005, allocations: 67.97 kB / 406.4 MB, free: 3.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009102/0.4096, allocations: 2.325 MB / 408.7 MB, free: 1.043 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.315e-06/0.4097, allocations: 4 kB / 408.7 MB, free: 1.039 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.4097, allocations: 6.188 kB / 408.7 MB, free: 1.035 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.0005997/0.4103, allocations: 410.9 kB / 409.1 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4104, allocations: 12.03 kB / 409.1 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.377e-05/0.4104, allocations: 15.81 kB / 409.1 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.4107, allocations: 202.8 kB / 409.3 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.4107, allocations: 12 kB / 409.3 MB, free: 316 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.291e-05/0.4108, allocations: 19.98 kB / 409.4 MB, free: 296 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.4111, allocations: 121.6 kB / 409.5 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.4112, allocations: 0 / 409.5 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.4112, allocations: 8 kB / 409.5 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.963e-06/0.4112, allocations: 0 / 409.5 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.4115, allocations: 87.89 kB / 409.6 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008779/0.4124, allocations: 480 kB / 410 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.4127, allocations: 122.5 kB / 410.2 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.4127, allocations: 8 kB / 410.2 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.4128, allocations: 30.56 kB / 410.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 4.637e-06/0.4128, allocations: 0 / 410.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001956/0.4148, allocations: 0.8191 MB / 411 MB, free: 14.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.4148, allocations: 55.41 kB / 411.1 MB, free: 14.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.415, allocations: 132.2 kB / 411.2 MB, free: 14.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.415, allocations: 25.7 kB / 411.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.4152, allocations: 182.7 kB / 411.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.4152, allocations: 63.09 kB / 411.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.4153, allocations: 8 kB / 411.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.4155, allocations: 318.8 kB / 411.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.4156, allocations: 40.36 kB / 411.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.4158, allocations: 84.16 kB / 411.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.416, allocations: 55.92 kB / 412 MB, free: 13.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.041e-06/0.416, allocations: 0 / 412 MB, free: 13.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005647/0.4166, allocations: 206.2 kB / 412.2 MB, free: 13.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.4166, allocations: 4.781 kB / 412.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.871e-06/0.4166, allocations: 8.031 kB / 412.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002378/0.4169, allocations: 40.83 kB / 412.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.4171, allocations: 39.97 kB / 412.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.4191, allocations: 1.573 MB / 413.8 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.4193, allocations: 16.02 kB / 413.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.4193, allocations: 8 kB / 413.9 MB, free: 11.43 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.0001724/0.4195, allocations: 129.8 kB / 414 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/0.4196, allocations: 15.81 kB / 414 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.4196, allocations: 21.19 kB / 414 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.836e-06/0.4197, allocations: 3.953 kB / 414 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4197, allocations: 0 / 414 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.929e-06/0.4197, allocations: 7.984 kB / 414 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.4208, allocations: 0.5529 MB / 414.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.062e-06/0.4209, allocations: 0 / 414.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.4211, allocations: 31.98 kB / 414.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001489/0.4213, allocations: 32.84 kB / 414.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.851e-05/0.4213, allocations: 4 kB / 414.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001546/0.4229, allocations: 1.378 MB / 416 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.397e-05/0.4229, allocations: 7.984 kB / 416 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007347/0.4236, allocations: 359.1 kB / 416.4 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.4238, allocations: 101 kB / 416.5 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.4238, allocations: 4 kB / 416.5 MB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.424, allocations: 8.062 kB / 416.5 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.424, allocations: 19.97 kB / 416.5 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.4241, allocations: 4 kB / 416.5 MB, free: 8.512 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.4242, allocations: 107.3 kB / 416.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.995e-06/0.4242, allocations: 0 / 416.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005002/0.4247, allocations: 47.88 kB / 416.7 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.0001565/0.4249, allocations: 107.2 kB / 416.8 MB, free: 8.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.4255, allocations: 265.9 kB / 417 MB, free: 7.977 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.785e-06/0.4256, allocations: 4 kB / 417 MB, free: 7.973 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003633/0.4259, allocations: 190.7 kB / 417.2 MB, free: 7.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.4263, allocations: 29.14 kB / 417.3 MB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.4274, allocations: 0.5388 MB / 417.8 MB, free: 7.172 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.4278, allocations: 0.7324 MB / 418.5 MB, free: 6.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.382e-05/0.4279, allocations: 19.42 kB / 418.5 MB, free: 6.391 MB / 346.7 MB Notification: Performance of SimCode: time 1.519e-06/0.4279, allocations: 0 / 418.5 MB, free: 6.391 MB / 346.7 MB Notification: Performance of Templates: time 0.005157/0.4331, allocations: 2.327 MB / 420.9 MB, free: 4.062 MB / 346.7 MB