Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.681/1.681, allocations: 171.2 MB / 184.2 MB, free: 12.05 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.039e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2125, allocations: 38.76 MB / 267.6 MB, free: 9.457 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1314/0.3439, allocations: 87.06 MB / 354.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.3443, allocations: 83.95 kB / 354.7 MB, free: 2.176 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4524/0.7966, allocations: 73.96 MB / 428.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.671e-06/0.7967, allocations: 4 kB / 428.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001575/0.7969, allocations: 64 kB / 428.8 MB, free: 17.98 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: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.009856/0.8067, allocations: 3.429 MB / 432.2 MB, free: 14.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.8068, allocations: 8.031 kB / 432.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01216/0.819, allocations: 2.269 MB / 434.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.8305, allocations: 3.886 MB / 438.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/0.8309, allocations: 271.2 kB / 438.6 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001513/0.8325, allocations: 375.8 kB / 439 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02947/0.862, allocations: 10.25 MB / 449.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003155/0.8623, allocations: 47.56 kB / 449.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001978/0.8643, allocations: 183.9 kB / 449.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003685/0.8681, allocations: 0.974 MB / 450.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03039/0.8985, allocations: 8.473 MB / 458.9 MB, free: 2.719 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2873/1.186, allocations: 44.01 MB / 0.4911 GB, free: 46.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/1.199, allocations: 3.546 MB / 0.4946 GB, free: 46.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00302/1.202, allocations: 1.724 MB / 0.4963 GB, free: 46.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01361/1.215, allocations: 7.144 MB / 0.5033 GB, free: 44.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/1.215, allocations: 53.81 kB / 0.5033 GB, free: 44.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.486e-06/1.215, allocations: 0 / 0.5033 GB, free: 44.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.05743/1.273, allocations: 14.37 MB / 0.5173 GB, free: 41.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/1.273, allocations: 141.1 kB / 0.5175 GB, free: 41.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006581/1.28, allocations: 3.041 MB / 0.5204 GB, free: 41.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003419/1.28, allocations: 47.77 kB / 0.5205 GB, free: 41.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001932/1.282, allocations: 2.667 MB / 0.5231 GB, free: 39.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008099/1.283, allocations: 0.6049 MB / 0.5237 GB, free: 39.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000484/1.283, allocations: 108.1 kB / 0.5238 GB, free: 39.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003436/1.284, allocations: 0.5362 MB / 0.5243 GB, free: 39.24 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003853/1.287, allocations: 1.838 MB / 0.5261 GB, free: 39.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005653/1.293, allocations: 5.207 MB / 0.5312 GB, free: 34.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005938/1.299, allocations: 3.045 MB / 0.5342 GB, free: 33.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/1.299, allocations: 36.47 kB / 0.5342 GB, free: 33.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.01953/1.319, allocations: 7.8 MB / 0.5418 GB, free: 31.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.695e-05/1.319, allocations: 59.28 kB / 0.5419 GB, free: 31.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/1.319, allocations: 120.1 kB / 0.542 GB, free: 31.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005282/1.324, allocations: 1.306 MB / 0.5433 GB, free: 31.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006581/1.331, allocations: 1.259 MB / 0.5445 GB, free: 30.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01723/1.348, allocations: 6.111 MB / 0.5505 GB, free: 25.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009214/1.358, allocations: 339.5 kB / 0.5508 GB, free: 25.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001498/1.359, allocations: 339.6 kB / 0.5511 GB, free: 24.94 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (665): * Single equations (assignments): 661 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001802/1.361, allocations: 0.526 MB / 0.5516 GB, free: 24.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/1.362, allocations: 300.1 kB / 0.5519 GB, free: 24.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/1.375, allocations: 3.237 MB / 0.5551 GB, free: 21.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.723e-05/1.375, allocations: 17.95 kB / 0.5551 GB, free: 21.61 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/1.375, allocations: 8.562 kB / 0.5551 GB, free: 21.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.198e-05/1.375, allocations: 15.3 kB / 0.5551 GB, free: 21.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01775/1.393, allocations: 7.305 MB / 0.5622 GB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.222e-05/1.393, allocations: 0 / 0.5622 GB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/1.394, allocations: 231.3 kB / 0.5625 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004655/1.399, allocations: 1.119 MB / 0.5636 GB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003162/1.399, allocations: 33.69 kB / 0.5636 GB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/1.409, allocations: 5.735 MB / 0.5692 GB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.129e-06/1.409, allocations: 3.953 kB / 0.5692 GB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/1.421, allocations: 5.545 MB / 0.5746 GB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/1.422, allocations: 0.5711 MB / 0.5752 GB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007169/1.423, allocations: 29.36 kB / 0.5752 GB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/1.425, allocations: 105.8 kB / 0.5753 GB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/1.426, allocations: 86.34 kB / 0.5754 GB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/1.426, allocations: 48.53 kB / 0.5754 GB, free: 4.496 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004011/1.43, allocations: 2.086 MB / 0.5775 GB, free: 2.656 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.023e-06/1.43, allocations: 0 / 0.5775 GB, free: 2.656 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005874/1.436, allocations: 0.8925 MB / 0.5783 GB, free: 1.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004971/1.436, allocations: 170.5 kB / 0.5785 GB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01074/1.447, allocations: 4.594 MB / 0.583 GB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.53e-06/1.447, allocations: 0 / 0.583 GB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003297/1.45, allocations: 1.457 MB / 0.5844 GB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/1.453, allocations: 316.9 kB / 0.5847 GB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01957/1.472, allocations: 6.971 MB / 0.5915 GB, free: 4.754 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006095/1.478, allocations: 2.895 MB / 0.5943 GB, free: 1.848 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/1.48, allocations: 255.4 kB / 0.5946 GB, free: 1.598 MB / 362.7 MB Notification: Performance of SimCode: time 2.39e-06/1.48, allocations: 4 kB / 0.5946 GB, free: 1.594 MB / 362.7 MB Notification: Performance of Templates: time 0.3903/1.87, allocations: 62.09 MB / 0.6552 GB, free: 106.9 MB / 394.7 MB