Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007252/0.0007254, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1351, allocations: 44.51 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.46/0.5951, allocations: 88.82 MB / 397.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5954, allocations: 96.31 kB / 398 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.524/1.119, allocations: 123.7 MB / 0.5095 GB, free: 14.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.524e-06/1.12, allocations: 0 / 0.5095 GB, free: 14.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005411/1.12, allocations: 120 kB / 0.5096 GB, free: 14.03 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.034/1.154, allocations: 7.116 MB / 0.5165 GB, free: 6.832 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/1.154, allocations: 12.02 kB / 0.5166 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4297/1.584, allocations: 9.405 MB / 0.5257 GB, free: 70.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03228/1.616, allocations: 8.607 MB / 0.5341 GB, free: 69.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006646/1.617, allocations: 433.1 kB / 0.5346 GB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003769/1.621, allocations: 0.5761 MB / 0.5351 GB, free: 69.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04792/1.669, allocations: 14.81 MB / 0.5496 GB, free: 66.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006449/1.669, allocations: 89.94 kB / 0.5497 GB, free: 66.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0038/1.673, allocations: 273.6 kB / 0.5499 GB, free: 66.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003402/1.677, allocations: 1.44 MB / 0.5513 GB, free: 66.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04115/1.718, allocations: 13 MB / 0.564 GB, free: 66.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1024/1.82, allocations: 64.64 MB / 0.6271 GB, free: 24.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03214/1.853, allocations: 7.862 MB / 0.6348 GB, free: 21.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03359/1.886, allocations: 12.97 MB / 0.6475 GB, free: 28.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.846e-05/1.886, allocations: 75.28 kB / 0.6476 GB, free: 28.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.406e-06/1.886, allocations: 0 / 0.6476 GB, free: 28.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 3.729/5.615, allocations: 267.7 MB / 0.909 GB, free: 94.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/5.616, allocations: 273.7 kB / 0.9092 GB, free: 93.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01234/5.628, allocations: 5.365 MB / 0.9145 GB, free: 92.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002097/5.63, allocations: 116.5 kB / 0.9146 GB, free: 92.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003894/5.634, allocations: 3.995 MB / 0.9185 GB, free: 89.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003928/5.638, allocations: 2.114 MB / 0.9205 GB, free: 87.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002183/5.64, allocations: 184 kB / 0.9207 GB, free: 87.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006984/5.641, allocations: 0.712 MB / 0.9214 GB, free: 86.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01957/5.661, allocations: 8.667 MB / 0.9299 GB, free: 79.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0225/5.683, allocations: 12.75 MB / 0.9423 GB, free: 65.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02338/5.707, allocations: 10.58 MB / 0.9527 GB, free: 56.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/5.707, allocations: 40 kB / 0.9527 GB, free: 56.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.4839/6.191, allocations: 40.19 MB / 0.9919 GB, free: 79.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/6.191, allocations: 67.14 kB / 0.992 GB, free: 79.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002747/6.191, allocations: 139.6 kB / 0.9921 GB, free: 79.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1185/6.31, allocations: 21.47 MB / 1.013 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008547/6.318, allocations: 1.434 MB / 1.015 GB, free: 79.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.717/7.035, allocations: 151.1 MB / 1.162 GB, free: 75.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.018/7.053, allocations: 0.7061 MB / 1.163 GB, free: 75.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00339/7.057, allocations: 0.5294 MB / 1.163 GB, free: 75.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 765 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.01164/7.068, allocations: 3.118 MB / 1.166 GB, free: 75.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003097/7.072, allocations: 0.594 MB / 1.167 GB, free: 75.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1502/7.222, allocations: 36.18 MB / 1.202 GB, free: 73.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000113/7.222, allocations: 62.16 kB / 1.202 GB, free: 73.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002025/7.222, allocations: 69.69 kB / 1.202 GB, free: 73.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001253/7.222, allocations: 33.91 kB / 1.202 GB, free: 73.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2001/7.422, allocations: 57.08 MB / 1.258 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001308/7.423, allocations: 0 / 1.258 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002715/7.425, allocations: 281.8 kB / 1.258 GB, free: 45.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1086/7.534, allocations: 20.68 MB / 1.279 GB, free: 26.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002286/7.536, allocations: 101 kB / 1.279 GB, free: 26.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6882/8.225, allocations: 138.8 MB / 1.414 GB, free: 40.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/8.225, allocations: 7.406 kB / 1.414 GB, free: 40.06 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5704/8.795, allocations: 48.59 MB / 1.462 GB, free: 71.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009717/8.805, allocations: 2.404 MB / 1.464 GB, free: 71.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004346/8.809, allocations: 100.4 kB / 1.464 GB, free: 71.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01316/8.822, allocations: 484.3 kB / 1.465 GB, free: 71.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005393/8.828, allocations: 0.5057 MB / 1.465 GB, free: 71.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001883/8.83, allocations: 140 kB / 1.465 GB, free: 71.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01055/8.84, allocations: 3.405 MB / 1.469 GB, free: 71.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/8.84, allocations: 0 / 1.469 GB, free: 71.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.02438/8.865, allocations: 3.436 MB / 1.472 GB, free: 71.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.003412/8.868, allocations: 239.8 kB / 1.472 GB, free: 71.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.08208/8.95, allocations: 24.51 MB / 1.496 GB, free: 70.15 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/8.95, allocations: 0 / 1.496 GB, free: 70.15 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04381/8.994, allocations: 13.78 MB / 1.51 GB, free: 69.06 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007792/9.002, allocations: 0.7074 MB / 1.51 GB, free: 69.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0632/9.065, allocations: 26.46 MB / 1.536 GB, free: 59.19 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01273/9.078, allocations: 5.309 MB / 1.541 GB, free: 57.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01004/9.088, allocations: 2.077 MB / 1.543 GB, free: 57.47 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001812/9.09, allocations: 302.8 kB / 1.544 GB, free: 57.46 MB / 442.7 MB Notification: Performance of SimCode: time 1.734e-06/9.09, allocations: 0 / 1.544 GB, free: 57.46 MB / 442.7 MB Notification: Performance of Templates: time 1.049/10.14, allocations: 223.3 MB / 1.762 GB, free: 6.52 MB / 458.7 MB