Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadModel(ModelicaTest): time 2.063/2.063, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005635/0.0005637, allocations: 16 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3558, allocations: 48.71 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4884, allocations: 75.52 MB / 407.3 MB, free: 2.949 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003317/0.4888, allocations: 79.95 kB / 407.4 MB, free: 2.871 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02563/0.5145, allocations: 5.766 MB / 413.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.5145, allocations: 0 / 413.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.583e-05/0.5146, allocations: 5.531 kB / 413.2 MB, free: 13.09 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001289/0.5159, allocations: 0.589 MB / 413.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.5159, allocations: 8.031 kB / 413.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.516, allocations: 39.53 kB / 413.8 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.5165, allocations: 266.3 kB / 414.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.5165, allocations: 29 kB / 414.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.5166, allocations: 39.91 kB / 414.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009792/0.5176, allocations: 394.1 kB / 414.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.5177, allocations: 7.906 kB / 414.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.5178, allocations: 16 kB / 414.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.5178, allocations: 12 kB / 414.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007799/0.5186, allocations: 242.2 kB / 414.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003562/0.5222, allocations: 1.719 MB / 416.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006855/0.5229, allocations: 270.3 kB / 416.8 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.5229, allocations: 4 kB / 416.8 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/0.523, allocations: 50.61 kB / 416.8 MB, free: 9.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.557e-06/0.523, allocations: 0 / 416.8 MB, free: 9.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001106/0.5241, allocations: 277.4 kB / 417.1 MB, free: 8.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.5243, allocations: 217.5 kB / 417.3 MB, free: 8.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004516/0.5248, allocations: 271.2 kB / 417.6 MB, free: 8.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.621e-05/0.5248, allocations: 33.7 kB / 417.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.5251, allocations: 301.8 kB / 417.9 MB, free: 7.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.5252, allocations: 114.3 kB / 418 MB, free: 7.867 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.5253, allocations: 12 kB / 418 MB, free: 7.855 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.5255, allocations: 338.8 kB / 418.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.5258, allocations: 97.27 kB / 418.4 MB, free: 7.422 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006339/0.5265, allocations: 428.8 kB / 418.9 MB, free: 6.844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000503/0.527, allocations: 171.7 kB / 419 MB, free: 6.676 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.527, allocations: 4 kB / 419 MB, free: 6.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001423/0.5284, allocations: 0.513 MB / 419.5 MB, free: 6.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.5285, allocations: 12 kB / 419.6 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.5286, allocations: 8 kB / 419.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.489e-05/0.5286, allocations: 21 kB / 419.6 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008702/0.5295, allocations: 151.7 kB / 419.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.971e-05/0.5295, allocations: 15.94 kB / 419.8 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.5301, allocations: 79.73 kB / 419.8 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.5301, allocations: 35.94 kB / 419.9 MB, free: 5.836 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003168/0.5305, allocations: 177.5 kB / 420 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.5307, allocations: 27.72 kB / 420.1 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.5308, allocations: 37.83 kB / 420.1 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.5308, allocations: 7.984 kB / 420.1 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.5308, allocations: 0 / 420.1 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.5309, allocations: 7.984 kB / 420.1 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.5329, allocations: 0.6513 MB / 420.8 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.5329, allocations: 3.984 kB / 420.8 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009175/0.5339, allocations: 87.89 kB / 420.9 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.5339, allocations: 4 kB / 420.9 MB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.372e-05/0.534, allocations: 8 kB / 420.9 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.158e-05/0.534, allocations: 12.67 kB / 420.9 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/0.534, allocations: 7.938 kB / 420.9 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.5352, allocations: 0.8299 MB / 421.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.5355, allocations: 120.8 kB / 421.8 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.5356, allocations: 23.94 kB / 421.9 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005098/0.5361, allocations: 11.98 kB / 421.9 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.245e-05/0.5362, allocations: 27.92 kB / 421.9 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.5362, allocations: 8 kB / 421.9 MB, free: 3.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003016/0.5365, allocations: 186 kB / 422.1 MB, free: 3.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5366, allocations: 0 / 422.1 MB, free: 3.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001016/0.5376, allocations: 103.8 kB / 422.2 MB, free: 3.379 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001895/0.5378, allocations: 111.1 kB / 422.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009263/0.5387, allocations: 301.7 kB / 422.6 MB, free: 2.969 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.5388, allocations: 0 / 422.6 MB, free: 2.969 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003037/0.5391, allocations: 92.58 kB / 422.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009612/0.54, allocations: 56.56 kB / 422.7 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004067/0.5441, allocations: 1.937 MB / 424.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005592/0.5447, allocations: 0.8033 MB / 425.5 MB, free: 0 / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.5449, allocations: 31.48 kB / 425.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5449, allocations: 0 / 425.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of Templates: time 0.01054/0.5555, allocations: 3.975 MB / 429.5 MB, free: 11.99 MB / 362.7 MB