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.Directions3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadModel(ModelicaTest): time 2.279/2.279, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.712e-05, allocations: 0 / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2774, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.399, allocations: 79.01 MB / 437 MB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.3993, allocations: 63.97 kB / 437.1 MB, free: 15.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007615/0.4069, allocations: 1.946 MB / 439 MB, free: 13.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.813e-06/0.407, allocations: 0 / 439 MB, free: 13.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.407, allocations: 4 kB / 439.1 MB, free: 13.83 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004716/0.4075, allocations: 379 kB / 439.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4075, allocations: 8.031 kB / 439.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.756e-05/0.4076, allocations: 19.86 kB / 439.5 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.4078, allocations: 178.8 kB / 439.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.4078, allocations: 4 kB / 439.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.4079, allocations: 8 kB / 439.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001512/0.4081, allocations: 48.45 kB / 439.7 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.4083, allocations: 108.8 kB / 439.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.4083, allocations: 4 kB / 439.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.4083, allocations: 0 / 439.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.4084, allocations: 7.953 kB / 439.8 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009294/0.4093, allocations: 0.5103 MB / 440.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.4095, allocations: 85.22 kB / 440.4 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.189e-05/0.4096, allocations: 25.66 kB / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.4096, allocations: 0 / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.4096, allocations: 38.5 kB / 440.5 MB, free: 12.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 2.098e-06/0.4096, allocations: 0 / 440.5 MB, free: 12.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.000386/0.41, allocations: 103.4 kB / 440.6 MB, free: 12.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.4101, allocations: 81.09 kB / 440.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.4102, allocations: 108.9 kB / 440.7 MB, free: 11.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.4103, allocations: 25.7 kB / 440.8 MB, free: 11.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.4104, allocations: 190.1 kB / 441 MB, free: 11.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/0.4105, allocations: 31.55 kB / 441 MB, free: 11.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.567e-06/0.4105, allocations: 0 / 441 MB, free: 11.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.4106, allocations: 322.8 kB / 441.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.975e-05/0.4107, allocations: 16 kB / 441.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.4108, allocations: 76.59 kB / 441.4 MB, free: 11.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.288e-05/0.4109, allocations: 39.92 kB / 441.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.57e-06/0.4109, allocations: 0 / 441.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003773/0.4113, allocations: 151.2 kB / 441.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.4113, allocations: 4 kB / 441.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.4114, allocations: 7.984 kB / 441.6 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000205/0.4116, allocations: 33.7 kB / 441.6 MB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.4117, allocations: 23.92 kB / 441.6 MB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.4141, allocations: 2.438 MB / 444.1 MB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.4142, allocations: 3.906 kB / 444.1 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.4143, allocations: 8 kB / 444.1 MB, free: 8.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.4144, allocations: 112.9 kB / 444.2 MB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.4145, allocations: 7.859 kB / 444.2 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.846e-05/0.4145, allocations: 20.42 kB / 444.2 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-06/0.4145, allocations: 0 / 444.2 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4146, allocations: 7.938 kB / 444.2 MB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.655e-06/0.4146, allocations: 0 / 444.2 MB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.4149, allocations: 166.2 kB / 444.4 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.532e-06/0.4149, allocations: 0 / 444.4 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.415, allocations: 15.98 kB / 444.4 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/0.4152, allocations: 33.66 kB / 444.5 MB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.4152, allocations: 3.953 kB / 444.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002307/0.4175, allocations: 2.439 MB / 446.9 MB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.627e-06/0.4176, allocations: 0 / 446.9 MB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004098/0.418, allocations: 310.2 kB / 447.2 MB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.4181, allocations: 85.02 kB / 447.3 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.4181, allocations: 0 / 447.3 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.4183, allocations: 0 / 447.3 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.4183, allocations: 12.03 kB / 447.3 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.4183, allocations: 4 kB / 447.3 MB, free: 4.742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.433e-05/0.4184, allocations: 99.2 kB / 447.4 MB, free: 4.645 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.4184, allocations: 0 / 447.4 MB, free: 4.645 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005316/0.419, allocations: 31.94 kB / 447.4 MB, free: 4.613 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000155/0.4192, allocations: 99.23 kB / 447.5 MB, free: 4.508 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000483/0.4197, allocations: 275.9 kB / 447.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.925e-06/0.4197, allocations: 0 / 447.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.42, allocations: 247.4 kB / 448 MB, free: 3.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.4204, allocations: 19.94 kB / 448.1 MB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008506/0.4213, allocations: 420.2 kB / 448.5 MB, free: 3.496 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.4217, allocations: 0.7123 MB / 449.2 MB, free: 2.758 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.858e-05/0.4218, allocations: 11.44 kB / 449.2 MB, free: 2.746 MB / 378.7 MB Notification: Performance of SimCode: time 1.93e-06/0.4218, allocations: 0 / 449.2 MB, free: 2.746 MB / 378.7 MB Notification: Performance of Templates: time 0.005167/0.4269, allocations: 2.355 MB / 451.5 MB, free: 400 kB / 378.7 MB