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.853/1.853, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.585e-05/2.598e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08677, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3406/0.4274, allocations: 74.93 MB / 401.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.4276, allocations: 64.5 kB / 401.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008442/0.4361, allocations: 2.333 MB / 403.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4361, allocations: 0 / 403.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.4362, allocations: 0 / 403.9 MB, free: 9.309 MB / 314.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.0003949/0.4366, allocations: 401.8 kB / 404.3 MB, free: 8.922 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.4366, allocations: 11.69 kB / 404.3 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.4367, allocations: 15.56 kB / 404.3 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.4369, allocations: 209.6 kB / 404.5 MB, free: 8.684 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.4369, allocations: 14.84 kB / 404.5 MB, free: 8.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.4369, allocations: 11.53 kB / 404.5 MB, free: 8.684 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002371/0.4372, allocations: 114.2 kB / 404.6 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.4372, allocations: 0 / 404.6 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.4372, allocations: 10.06 kB / 404.6 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.451e-06/0.4373, allocations: 3.844 kB / 404.6 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.4374, allocations: 72.75 kB / 404.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.4381, allocations: 467.8 kB / 405.2 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.4383, allocations: 116.7 kB / 405.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.4385, allocations: 56.2 kB / 405.3 MB, free: 8.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.4385, allocations: 0 / 405.3 MB, free: 8.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.4385, allocations: 30.56 kB / 405.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.962e-06/0.4385, allocations: 0 / 405.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.00139/0.4399, allocations: 0.7465 MB / 406.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.44, allocations: 56.33 kB / 406.2 MB, free: 7.594 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.4401, allocations: 130.2 kB / 406.3 MB, free: 7.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.4401, allocations: 29.02 kB / 406.3 MB, free: 7.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.4402, allocations: 176.9 kB / 406.5 MB, free: 7.305 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.558e-05/0.4403, allocations: 80.81 kB / 406.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.039e-05/0.4403, allocations: 3.5 kB / 406.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.4403, allocations: 319.2 kB / 406.9 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.215e-05/0.4404, allocations: 36.97 kB / 406.9 MB, free: 6.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.4406, allocations: 70.45 kB / 407 MB, free: 6.891 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.4407, allocations: 53.61 kB / 407.1 MB, free: 6.883 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4407, allocations: 4 kB / 407.1 MB, free: 6.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004115/0.4411, allocations: 197.4 kB / 407.2 MB, free: 6.801 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.4412, allocations: 7.719 kB / 407.3 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.4412, allocations: 0 / 407.3 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.4414, allocations: 41.03 kB / 407.3 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.4416, allocations: 39.06 kB / 407.3 MB, free: 6.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.4429, allocations: 1.549 MB / 408.9 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.4431, allocations: 7.625 kB / 408.9 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.4431, allocations: 11.53 kB / 408.9 MB, free: 5.387 MB / 314.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 7.621e-05/0.4432, allocations: 111.6 kB / 409 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.081e-05/0.4433, allocations: 7.75 kB / 409 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.757e-05/0.4433, allocations: 29.61 kB / 409 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.005e-06/0.4434, allocations: 3.844 kB / 409.1 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.792e-06/0.4434, allocations: 256 / 409.1 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.904e-06/0.4434, allocations: 3.984 kB / 409.1 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008468/0.4442, allocations: 0.544 MB / 409.6 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.4443, allocations: 3.844 kB / 409.6 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.4445, allocations: 31.23 kB / 409.6 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.4447, allocations: 29.81 kB / 409.7 MB, free: 4.852 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.4447, allocations: 10.72 kB / 409.7 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009848/0.4457, allocations: 1.366 MB / 411 MB, free: 3.535 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.241e-06/0.4457, allocations: 11.86 kB / 411.1 MB, free: 3.527 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.4462, allocations: 334.3 kB / 411.4 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.02e-05/0.4463, allocations: 103.9 kB / 411.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.4464, allocations: 3.938 kB / 411.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.4465, allocations: 3.875 kB / 411.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.4466, allocations: 19.72 kB / 411.5 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.4466, allocations: 7.062 kB / 411.5 MB, free: 3.219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.929e-05/0.4467, allocations: 103.7 kB / 411.6 MB, free: 3.145 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.18e-07/0.4467, allocations: 0 / 411.6 MB, free: 3.145 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004793/0.4472, allocations: 46.02 kB / 411.7 MB, free: 3.141 MB / 314.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.0001201/0.4474, allocations: 102.2 kB / 411.8 MB, free: 3.051 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000452/0.4478, allocations: 255.2 kB / 412 MB, free: 2.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4478, allocations: 0 / 412 MB, free: 2.914 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002467/0.4481, allocations: 184.5 kB / 412.2 MB, free: 2.793 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.4484, allocations: 19.66 kB / 412.2 MB, free: 2.789 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006645/0.4491, allocations: 365.4 kB / 412.6 MB, free: 2.516 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.4493, allocations: 0.7267 MB / 413.3 MB, free: 1.793 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.572e-05/0.4493, allocations: 14.97 kB / 413.3 MB, free: 1.785 MB / 314.7 MB Notification: Performance of SimCode: time 1.437e-06/0.4493, allocations: 3.938 kB / 413.3 MB, free: 1.781 MB / 314.7 MB Notification: Performance of Templates: time 0.004238/0.4536, allocations: 2.326 MB / 415.6 MB, free: 0.6172 MB / 314.7 MB