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.ConnectionPossibilities.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.ConnectionPossibilities,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities") Notification: Performance of loadModel(ModelicaTest): time 2.18/2.18, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004445, allocations: 16 kB / 314.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2765, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.002273/0.2788, allocations: 1.421 MB / 370.6 MB, free: 9.289 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003577/0.2792, allocations: 151.6 kB / 370.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.664e-05/0.2793, allocations: 0 / 370.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.171e-05/0.2794, allocations: 19.84 kB / 370.8 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.2796, allocations: 55.86 kB / 370.8 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001301/0.2797, allocations: 31.92 kB / 370.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.2799, allocations: 127.8 kB / 371 MB, free: 8.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.2801, allocations: 50.33 kB / 371 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.2802, allocations: 51.86 kB / 371.1 MB, free: 8.809 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2803, allocations: 67.69 kB / 371.1 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.2804, allocations: 8 kB / 371.2 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.268e-05/0.2804, allocations: 8 kB / 371.2 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.225e-05/0.2805, allocations: 27.86 kB / 371.2 MB, free: 8.699 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.2805, allocations: 61.58 kB / 371.2 MB, free: 8.633 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.2807, allocations: 132.4 kB / 371.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2808, allocations: 0 / 371.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.732e-06/0.2808, allocations: 0 / 371.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.09e-06/0.2808, allocations: 0 / 371.4 MB, free: 8.504 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000607/0.2814, allocations: 427.1 kB / 371.8 MB, free: 8.039 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2815, allocations: 12.03 kB / 371.8 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.433e-05/0.2815, allocations: 19.77 kB / 371.8 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.2818, allocations: 198.9 kB / 372 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.2818, allocations: 16.33 kB / 372 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.2819, allocations: 19.98 kB / 372.1 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.2822, allocations: 165.6 kB / 372.2 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.2823, allocations: 7.891 kB / 372.2 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.2823, allocations: 8 kB / 372.2 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.581e-06/0.2823, allocations: 4 kB / 372.2 MB, free: 7.547 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.2826, allocations: 91.84 kB / 372.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.2837, allocations: 0.6112 MB / 372.9 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.284, allocations: 129.2 kB / 373.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.284, allocations: 3.938 kB / 373.1 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.2841, allocations: 42.55 kB / 373.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.429e-06/0.2841, allocations: 192 / 373.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001002/0.2851, allocations: 381.2 kB / 373.5 MB, free: 6.164 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.2852, allocations: 81.11 kB / 373.6 MB, free: 6.066 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.2853, allocations: 137.3 kB / 373.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.2854, allocations: 29.7 kB / 373.7 MB, free: 5.887 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.2855, allocations: 194.4 kB / 373.9 MB, free: 5.695 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.713e-05/0.2856, allocations: 51.27 kB / 374 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.2856, allocations: 4 kB / 374 MB, free: 5.641 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.2858, allocations: 327.2 kB / 374.3 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.998e-05/0.2859, allocations: 35.98 kB / 374.3 MB, free: 5.277 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.2861, allocations: 104.4 kB / 374.4 MB, free: 5.145 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.2862, allocations: 55.88 kB / 374.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.423e-06/0.2862, allocations: 4 kB / 374.5 MB, free: 5.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000529/0.2868, allocations: 215 kB / 374.7 MB, free: 4.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.2868, allocations: 11.95 kB / 374.7 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.2868, allocations: 4 kB / 374.7 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002654/0.2871, allocations: 53.89 kB / 374.8 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.2873, allocations: 31.98 kB / 374.8 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002973/0.2903, allocations: 2.744 MB / 377.5 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.2904, allocations: 11.84 kB / 377.5 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.2904, allocations: 12 kB / 377.6 MB, free: 1.719 MB / 298.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.2906, allocations: 125.8 kB / 377.7 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.2907, allocations: 7.906 kB / 377.7 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.2908, allocations: 20.7 kB / 377.7 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.191e-06/0.2908, allocations: 192 / 377.7 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.643e-06/0.2908, allocations: 4 kB / 377.7 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.497e-06/0.2908, allocations: 4 kB / 377.7 MB, free: 1.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004144/0.2912, allocations: 241.3 kB / 378 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.083e-06/0.2912, allocations: 0 / 378 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.2915, allocations: 27.98 kB / 378 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002153/0.2917, allocations: 49.69 kB / 378 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.2917, allocations: 8 kB / 378 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002873/0.2946, allocations: 2.72 MB / 380.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2946, allocations: 3.969 kB / 380.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00058/0.2952, allocations: 376.5 kB / 381.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.252e-05/0.2953, allocations: 88.95 kB / 381.2 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.2954, allocations: 4.062 kB / 381.2 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.2955, allocations: 0 / 381.2 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.816e-05/0.2956, allocations: 23.91 kB / 381.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.254e-06/0.2956, allocations: 96 / 381.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.333e-05/0.2957, allocations: 107.2 kB / 381.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.3e-07/0.2957, allocations: 4 kB / 381.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006317/0.2964, allocations: 51.84 kB / 381.4 MB, free: 13.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (inertia1.w,inertia2.phi,inertia3.phi,inertia3.w,inertia4.phi,inertia4.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 (10): * Single equations (assignments): 8 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001344/0.2965, allocations: 99.25 kB / 381.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006659/0.2972, allocations: 345.5 kB / 381.8 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.248e-06/0.2972, allocations: 4 kB / 381.8 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.2977, allocations: 285.2 kB / 382.1 MB, free: 12.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2981, allocations: 28.3 kB / 382.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.2995, allocations: 0.8057 MB / 383 MB, free: 11.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.3, allocations: 0.732 MB / 383.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.481e-05/0.3, allocations: 15.44 kB / 383.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.449e-06/0.3, allocations: 0 / 383.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of Templates: time 0.005945/0.306, allocations: 2.997 MB / 386.7 MB, free: 8.09 MB / 314.7 MB