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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.148/2.148, allocations: 234.9 MB / 250.5 MB, free: 10.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000428/0.0004281, allocations: 8 kB / 314.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2784, allocations: 54.86 MB / 369.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.4015, allocations: 81.4 MB / 450.7 MB, free: 9.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.4018, allocations: 71.91 kB / 450.7 MB, free: 9.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009715/0.4115, allocations: 2.339 MB / 453.1 MB, free: 6.926 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.566e-06/0.4116, allocations: 0 / 453.1 MB, free: 6.926 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.4116, allocations: 0 / 453.1 MB, free: 6.926 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.0005808/0.4122, allocations: 416.1 kB / 453.5 MB, free: 6.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.4122, allocations: 8.031 kB / 453.5 MB, free: 6.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.253e-05/0.4123, allocations: 15.81 kB / 453.5 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.4126, allocations: 206.8 kB / 453.7 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.4126, allocations: 12 kB / 453.7 MB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.4127, allocations: 12 kB / 453.7 MB, free: 6.184 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.413, allocations: 125.6 kB / 453.8 MB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.413, allocations: 0 / 453.8 MB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.4131, allocations: 4 kB / 453.8 MB, free: 6.051 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.4131, allocations: 11.94 kB / 453.9 MB, free: 6.039 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002588/0.4134, allocations: 91.88 kB / 453.9 MB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008476/0.4142, allocations: 468.2 kB / 454.4 MB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.4145, allocations: 118.5 kB / 454.5 MB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.4146, allocations: 4 kB / 454.5 MB, free: 5.312 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.4146, allocations: 34.56 kB / 454.6 MB, free: 5.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.88e-06/0.4146, allocations: 3.938 kB / 454.6 MB, free: 5.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001972/0.4166, allocations: 0.8141 MB / 455.4 MB, free: 4.359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.4167, allocations: 63.33 kB / 455.4 MB, free: 4.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.4169, allocations: 125.3 kB / 455.6 MB, free: 4.152 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.4169, allocations: 37.64 kB / 455.6 MB, free: 4.109 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.417, allocations: 174.7 kB / 455.8 MB, free: 3.938 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.025e-05/0.4171, allocations: 67.02 kB / 455.8 MB, free: 3.871 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.216e-06/0.4171, allocations: 0 / 455.8 MB, free: 3.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.4173, allocations: 322.8 kB / 456.1 MB, free: 3.547 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.4175, allocations: 48.34 kB / 456.2 MB, free: 3.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.4176, allocations: 82.03 kB / 456.3 MB, free: 3.406 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.4178, allocations: 52 kB / 456.3 MB, free: 3.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.16e-06/0.4178, allocations: 0 / 456.3 MB, free: 3.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005457/0.4184, allocations: 206.3 kB / 456.5 MB, free: 3.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.4184, allocations: 7.953 kB / 456.5 MB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.4185, allocations: 4 kB / 456.5 MB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002062/0.4187, allocations: 44.84 kB / 456.6 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.4189, allocations: 39.91 kB / 456.6 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/0.4209, allocations: 1.565 MB / 458.2 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.4211, allocations: 8 kB / 458.2 MB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.4211, allocations: 4 kB / 458.2 MB, free: 1.332 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 () * 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.0001742/0.4213, allocations: 137.8 kB / 458.3 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.827e-05/0.4213, allocations: 11.94 kB / 458.3 MB, free: 1.176 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.4214, allocations: 25.17 kB / 458.4 MB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.4214, allocations: 0 / 458.4 MB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.651e-06/0.4214, allocations: 4 kB / 458.4 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.4214, allocations: 0 / 458.4 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.4226, allocations: 0.5522 MB / 458.9 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.965e-06/0.4226, allocations: 384 / 458.9 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.4228, allocations: 39.94 kB / 459 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/0.423, allocations: 32.83 kB / 459 MB, free: 472 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.423, allocations: 16.03 kB / 459 MB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001532/0.4246, allocations: 1.363 MB / 460.4 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.025e-06/0.4246, allocations: 12.08 kB / 460.4 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007194/0.4254, allocations: 357.7 kB / 460.7 MB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.717e-05/0.4255, allocations: 93 kB / 460.8 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.4255, allocations: 12 kB / 460.8 MB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.4257, allocations: 8 kB / 460.8 MB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.4257, allocations: 8.266 kB / 460.9 MB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.4257, allocations: 4 kB / 460.9 MB, free: 14.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.4259, allocations: 119.1 kB / 461 MB, free: 14.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.4259, allocations: 0 / 461 MB, free: 14.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004814/0.4264, allocations: 43.94 kB / 461 MB, free: 14.26 MB / 394.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.0001569/0.4265, allocations: 103.2 kB / 461.1 MB, free: 14.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006409/0.4272, allocations: 262.6 kB / 461.4 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.934e-06/0.4272, allocations: 0 / 461.4 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.4276, allocations: 202.6 kB / 461.6 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.428, allocations: 15.98 kB / 461.6 MB, free: 13.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.4291, allocations: 0.547 MB / 462.1 MB, free: 13.06 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.4295, allocations: 0.7246 MB / 462.9 MB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.452e-05/0.4296, allocations: 15.44 kB / 462.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of SimCode: time 1.597e-06/0.4296, allocations: 0 / 462.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of Templates: time 0.005085/0.4347, allocations: 2.323 MB / 465.2 MB, free: 9.969 MB / 394.7 MB