Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.8 MB / 212.3 MB, free: 3.023 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005477/0.0005479, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1201, allocations: 44.5 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4127/0.5329, allocations: 73.15 MB / 382.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.5333, allocations: 76.2 kB / 382.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01564/0.549, allocations: 3.673 MB / 385.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.549, allocations: 0 / 385.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.549, allocations: 7.172 kB / 385.9 MB, free: 14.3 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007667/0.5498, allocations: 491.9 kB / 386.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.5499, allocations: 8.344 kB / 386.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.297e-05/0.55, allocations: 24.75 kB / 386.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.5503, allocations: 236.9 kB / 386.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.5503, allocations: 16.19 kB / 386.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.351e-05/0.5504, allocations: 27.86 kB / 386.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.5509, allocations: 207.2 kB / 386.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.5509, allocations: 3.875 kB / 386.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.769e-05/0.551, allocations: 7.469 kB / 386.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.551, allocations: 9 kB / 386.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.5514, allocations: 135.1 kB / 387 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.5528, allocations: 0.701 MB / 387.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.5532, allocations: 153.9 kB / 387.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.5533, allocations: 2.594 kB / 387.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.5533, allocations: 43.36 kB / 387.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 3.217e-06/0.5533, allocations: 3.984 kB / 387.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002349/0.5557, allocations: 0.882 MB / 388.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.5557, allocations: 54.09 kB / 388.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.556, allocations: 178.6 kB / 389 MB, free: 12.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.556, allocations: 30.42 kB / 389 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.5561, allocations: 201.6 kB / 389.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.866e-05/0.5562, allocations: 91.89 kB / 389.3 MB, free: 12.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.413e-05/0.5562, allocations: 6.312 kB / 389.3 MB, free: 12.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/0.5563, allocations: 321.9 kB / 389.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.5565, allocations: 55 kB / 389.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.5567, allocations: 114.1 kB / 389.8 MB, free: 11.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.557, allocations: 73.84 kB / 389.9 MB, free: 11.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.557, allocations: 1.312 kB / 389.9 MB, free: 11.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000688/0.5577, allocations: 239.6 kB / 390.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.5577, allocations: 9.203 kB / 390.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5578, allocations: 1.281 kB / 390.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002483/0.558, allocations: 35.53 kB / 390.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/0.5584, allocations: 50.75 kB / 390.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.5598, allocations: 1.389 MB / 391.6 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.5601, allocations: 12.97 kB / 391.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.5601, allocations: 11.25 kB / 391.6 MB, free: 10.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.5603, allocations: 134.5 kB / 391.8 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.5604, allocations: 21.14 kB / 391.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.217e-05/0.5605, allocations: 26.16 kB / 391.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.5605, allocations: 3.031 kB / 391.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.5605, allocations: 0 / 391.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.5605, allocations: 2.109 kB / 391.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.5617, allocations: 0.6581 MB / 392.5 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5617, allocations: 7.016 kB / 392.5 MB, free: 9.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.5621, allocations: 46.31 kB / 392.5 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001799/0.5623, allocations: 33.72 kB / 392.6 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.5624, allocations: 6.125 kB / 392.6 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.5636, allocations: 1.393 MB / 394 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5636, allocations: 0 / 394 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.5645, allocations: 412.5 kB / 394.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.532e-05/0.5646, allocations: 92.52 kB / 394.4 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/0.5646, allocations: 11.28 kB / 394.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.5648, allocations: 9.797 kB / 394.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.5649, allocations: 20.53 kB / 394.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.565, allocations: 3.875 kB / 394.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001304/0.5651, allocations: 130.9 kB / 394.6 MB, free: 8.262 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5651, allocations: 3.938 kB / 394.6 MB, free: 8.258 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004708/0.5656, allocations: 57.34 kB / 394.7 MB, free: 8.258 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001497/0.5657, allocations: 107.2 kB / 394.8 MB, free: 8.168 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007569/0.5665, allocations: 296.7 kB / 395.1 MB, free: 8.039 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5665, allocations: 0 / 395.1 MB, free: 8.039 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004286/0.567, allocations: 212.4 kB / 395.3 MB, free: 7.926 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005446/0.5675, allocations: 47.34 kB / 395.3 MB, free: 7.914 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.5693, allocations: 0.8289 MB / 396.2 MB, free: 7.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.5695, allocations: 0.7536 MB / 396.9 MB, free: 6.664 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.205e-05/0.5696, allocations: 20.31 kB / 396.9 MB, free: 6.656 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.5696, allocations: 0 / 396.9 MB, free: 6.656 MB / 314.7 MB Notification: Performance of Templates: time 0.006922/0.5766, allocations: 3.323 MB / 400.3 MB, free: 6.445 MB / 314.7 MB