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.Directions.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.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadModel(ModelicaTest): time 1.944/1.944, allocations: 209.3 MB / 224.9 MB, free: 1.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004386/0.0004386, allocations: 11.98 kB / 282.6 MB, free: 9.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.08612, allocations: 48.71 MB / 331.3 MB, free: 8.949 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3319/0.4181, allocations: 75.59 MB / 406.9 MB, free: 9.605 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004137/0.4186, allocations: 75.95 kB / 406.9 MB, free: 9.531 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0387/0.4573, allocations: 5.827 MB / 412.8 MB, free: 3.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.032e-06/0.4574, allocations: 0 / 412.8 MB, free: 3.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.4574, allocations: 12 kB / 412.8 MB, free: 3.684 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001136/0.4586, allocations: 0.6062 MB / 413.4 MB, free: 3.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.4586, allocations: 8.031 kB / 413.4 MB, free: 3.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.4587, allocations: 51.39 kB / 413.4 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.4592, allocations: 281.9 kB / 413.7 MB, free: 2.656 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.4592, allocations: 29 kB / 413.7 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.484e-05/0.4593, allocations: 39.98 kB / 413.8 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008985/0.4602, allocations: 381 kB / 414.2 MB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.4603, allocations: 7.906 kB / 414.2 MB, free: 2.191 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/0.4603, allocations: 16 kB / 414.2 MB, free: 2.176 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.4604, allocations: 15.98 kB / 414.2 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007237/0.4611, allocations: 259.7 kB / 414.4 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.4632, allocations: 1.097 MB / 415.5 MB, free: 0.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008532/0.4641, allocations: 367.4 kB / 415.9 MB, free: 372 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.186e-05/0.4642, allocations: 10.62 kB / 415.9 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.4642, allocations: 30.56 kB / 415.9 MB, free: 324 kB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 5.125e-06/0.4643, allocations: 0 / 415.9 MB, free: 324 kB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.005686/0.47, allocations: 2.49 MB / 418.4 MB, free: 13.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.4701, allocations: 114.8 kB / 418.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.4704, allocations: 217.9 kB / 418.8 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.4705, allocations: 33.7 kB / 418.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.4707, allocations: 239 kB / 419 MB, free: 12.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.4709, allocations: 197.1 kB / 419.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.4709, allocations: 8 kB / 419.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.4711, allocations: 338.8 kB / 419.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.4715, allocations: 133.1 kB / 419.7 MB, free: 12.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.472, allocations: 239.8 kB / 419.9 MB, free: 11.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004633/0.4725, allocations: 175.8 kB / 420.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.702e-06/0.4725, allocations: 0 / 420.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001491/0.474, allocations: 0.5423 MB / 420.6 MB, free: 11.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.4741, allocations: 12.58 kB / 420.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4741, allocations: 4 kB / 420.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005097/0.4746, allocations: 126.6 kB / 420.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.4751, allocations: 99.98 kB / 420.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005716/0.4809, allocations: 4.703 MB / 425.6 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.4812, allocations: 28.09 kB / 425.6 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.817e-05/0.4813, allocations: 20 kB / 425.6 MB, free: 5.867 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003156/0.4816, allocations: 166.4 kB / 425.8 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.4818, allocations: 35.53 kB / 425.8 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.4819, allocations: 54.12 kB / 425.9 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.4819, allocations: 12 kB / 425.9 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.482, allocations: 0 / 425.9 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-06/0.482, allocations: 4 kB / 425.9 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.4849, allocations: 1.344 MB / 427.2 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.485, allocations: 0 / 427.2 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005656/0.4855, allocations: 103.9 kB / 427.3 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003924/0.4859, allocations: 98.5 kB / 427.4 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.486, allocations: 12 kB / 427.4 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/0.4906, allocations: 4.131 MB / 431.6 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.308e-06/0.4906, allocations: 4.062 kB / 431.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.4926, allocations: 1.013 MB / 432.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.4929, allocations: 144.6 kB / 432.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.004e-05/0.493, allocations: 8 kB / 432.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.4933, allocations: 20 kB / 432.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4935, allocations: 47.94 kB / 432.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.4935, allocations: 15.98 kB / 432.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002452/0.4938, allocations: 174 kB / 433 MB, free: 13.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.54e-07/0.4938, allocations: 0 / 433 MB, free: 13.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009643/0.4948, allocations: 120 kB / 433.1 MB, free: 13.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001963/0.495, allocations: 127 kB / 433.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.4967, allocations: 0.7812 MB / 434 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.285e-06/0.4967, allocations: 0 / 434 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.4979, allocations: 0.5819 MB / 434.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006614/0.4985, allocations: 44.72 kB / 434.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.5012, allocations: 1.348 MB / 436 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006113/0.5019, allocations: 0.8319 MB / 436.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.502, allocations: 35.42 kB / 436.9 MB, free: 9.898 MB / 362.7 MB Notification: Performance of SimCode: time 2.056e-06/0.502, allocations: 0 / 436.9 MB, free: 9.898 MB / 362.7 MB Notification: Performance of Templates: time 0.0144/0.5164, allocations: 8.786 MB / 445.6 MB, free: 1.102 MB / 362.7 MB