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.Directions2.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.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.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadModel(ModelicaTest): time 2.185/2.185, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000431/0.0004312, allocations: 8 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3241, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003383/0.3275, allocations: 2.21 MB / 371.4 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.329, allocations: 0.7066 MB / 372.1 MB, free: 7.773 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.3292, allocations: 11.94 kB / 372.1 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.099e-05/0.3293, allocations: 39.69 kB / 372.1 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003331/0.3297, allocations: 131.6 kB / 372.3 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002645/0.3299, allocations: 67.86 kB / 372.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.3304, allocations: 299.4 kB / 372.6 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.3307, allocations: 108 kB / 372.7 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.3309, allocations: 139.5 kB / 372.9 MB, free: 6.992 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.3312, allocations: 155.3 kB / 373 MB, free: 6.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.3313, allocations: 20 kB / 373 MB, free: 6.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.764e-05/0.3314, allocations: 20 kB / 373.1 MB, free: 6.801 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.24e-05/0.3314, allocations: 55.77 kB / 373.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.3316, allocations: 101.5 kB / 373.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.332, allocations: 311.7 kB / 373.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.666e-06/0.332, allocations: 0 / 373.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.839e-06/0.332, allocations: 0 / 373.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.882e-06/0.332, allocations: 0 / 373.5 MB, free: 6.336 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.00104/0.3331, allocations: 0.5888 MB / 374.1 MB, free: 5.699 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3331, allocations: 8.031 kB / 374.1 MB, free: 5.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.959e-05/0.3332, allocations: 43.53 kB / 374.2 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.3337, allocations: 279.2 kB / 374.4 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.3337, allocations: 29 kB / 374.5 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.3338, allocations: 39.91 kB / 374.5 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008492/0.3347, allocations: 394.1 kB / 374.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.3347, allocations: 4 kB / 374.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.821e-05/0.3348, allocations: 16 kB / 374.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.3348, allocations: 8 kB / 374.9 MB, free: 4.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006137/0.3354, allocations: 231.7 kB / 375.1 MB, free: 4.594 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003126/0.3386, allocations: 1.738 MB / 376.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006217/0.3392, allocations: 266.3 kB / 377.1 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.3393, allocations: 4 kB / 377.1 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.3393, allocations: 46.5 kB / 377.2 MB, free: 2.367 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 3.494e-06/0.3393, allocations: 0 / 377.2 MB, free: 2.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009438/0.3403, allocations: 273.4 kB / 377.5 MB, free: 2.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.3405, allocations: 217.6 kB / 377.7 MB, free: 1.832 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.3408, allocations: 270.8 kB / 377.9 MB, free: 1.559 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.3409, allocations: 33.7 kB / 378 MB, free: 1.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.3411, allocations: 301.8 kB / 378.3 MB, free: 1.219 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.3413, allocations: 110.5 kB / 378.4 MB, free: 1.109 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/0.3413, allocations: 8 kB / 378.4 MB, free: 1.102 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.3415, allocations: 338.8 kB / 378.7 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.3418, allocations: 97.27 kB / 378.8 MB, free: 0.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005599/0.3424, allocations: 428.8 kB / 379.2 MB, free: 88 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004577/0.3428, allocations: 167.8 kB / 379.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.3429, allocations: 4 kB / 379.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001259/0.3441, allocations: 0.5175 MB / 379.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.3442, allocations: 12 kB / 379.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.3442, allocations: 12 kB / 379.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.102e-05/0.3443, allocations: 16 kB / 379.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/0.3449, allocations: 155.7 kB / 380.1 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.76e-05/0.345, allocations: 15.94 kB / 380.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.3454, allocations: 79.61 kB / 380.2 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-05/0.3455, allocations: 35.95 kB / 380.2 MB, free: 15.07 MB / 314.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.0002725/0.3458, allocations: 169.6 kB / 380.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/0.346, allocations: 35.61 kB / 380.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.856e-05/0.3461, allocations: 41.77 kB / 380.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.3461, allocations: 4 kB / 380.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.3462, allocations: 0 / 380.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.3462, allocations: 7.984 kB / 380.5 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.348, allocations: 0.652 MB / 381.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.297e-06/0.3481, allocations: 0 / 381.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006207/0.3487, allocations: 91.89 kB / 381.2 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-05/0.3487, allocations: 11.92 kB / 381.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.3488, allocations: 8 kB / 381.2 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.3488, allocations: 8 kB / 381.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.803e-06/0.3488, allocations: 7.953 kB / 381.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.3499, allocations: 0.8455 MB / 382.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.35, allocations: 104.9 kB / 382.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.984e-05/0.3501, allocations: 12 kB / 382.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.3506, allocations: 15.98 kB / 382.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.3507, allocations: 23.92 kB / 382.3 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.3508, allocations: 12 kB / 382.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.351, allocations: 182 kB / 382.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.04e-07/0.351, allocations: 0 / 382.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001016/0.3521, allocations: 103.8 kB / 382.5 MB, free: 12.63 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.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.0001488/0.3522, allocations: 115.1 kB / 382.7 MB, free: 12.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007671/0.353, allocations: 294.3 kB / 382.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.395e-06/0.353, allocations: 0 / 382.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002457/0.3533, allocations: 96.39 kB / 383 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008088/0.3541, allocations: 52.38 kB / 383.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/0.3574, allocations: 1.943 MB / 385 MB, free: 10.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.3581, allocations: 0.7994 MB / 385.8 MB, free: 9.254 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.3582, allocations: 35.38 kB / 385.9 MB, free: 9.219 MB / 314.7 MB Notification: Performance of SimCode: time 1.813e-06/0.3582, allocations: 0 / 385.9 MB, free: 9.219 MB / 314.7 MB Notification: Performance of Templates: time 0.008393/0.3666, allocations: 3.966 MB / 389.8 MB, free: 5.246 MB / 314.7 MB