Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.159/2.159, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004442, allocations: 12 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.38, allocations: 48.7 MB / 331.8 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1711/0.5512, allocations: 93.46 MB / 425.3 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/0.5516, allocations: 87.95 kB / 425.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5821/1.134, allocations: 72.27 MB / 497.6 MB, free: 93.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.846e-06/1.134, allocations: 0 / 497.6 MB, free: 93.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002137/1.134, allocations: 68.94 kB / 497.7 MB, free: 93.16 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.013/1.147, allocations: 3.563 MB / 0.4895 GB, free: 91.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/1.147, allocations: 12.97 kB / 0.4895 GB, free: 91.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01563/1.163, allocations: 2.082 MB / 0.4915 GB, free: 91.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/1.178, allocations: 4.081 MB / 0.4955 GB, free: 90.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003051/1.178, allocations: 259.1 kB / 0.4958 GB, free: 90.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001958/1.18, allocations: 339.9 kB / 0.4961 GB, free: 90.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02425/1.204, allocations: 8.885 MB / 0.5048 GB, free: 85.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002303/1.205, allocations: 61.34 kB / 0.5048 GB, free: 85.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001382/1.206, allocations: 181 kB / 0.505 GB, free: 85.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001828/1.208, allocations: 0.8616 MB / 0.5058 GB, free: 85.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/1.228, allocations: 7.166 MB / 0.5128 GB, free: 82.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05803/1.286, allocations: 42.61 MB / 0.5545 GB, free: 38.71 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/1.298, allocations: 3.166 MB / 0.5576 GB, free: 35.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009363/1.307, allocations: 4.083 MB / 0.5615 GB, free: 31.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/1.307, allocations: 47.06 kB / 0.5616 GB, free: 31.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=114): time 5.13e-06/1.307, allocations: 0 / 0.5616 GB, free: 31.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.04466/1.352, allocations: 11.56 MB / 0.5729 GB, free: 19.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/1.352, allocations: 174.7 kB / 0.573 GB, free: 19.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007467/1.36, allocations: 3.697 MB / 0.5767 GB, free: 15.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000361/1.36, allocations: 41.7 kB / 0.5767 GB, free: 15.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002283/1.362, allocations: 2.674 MB / 0.5793 GB, free: 12.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008092/1.363, allocations: 0.5051 MB / 0.5798 GB, free: 12.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006005/1.364, allocations: 100 kB / 0.5799 GB, free: 12.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003396/1.364, allocations: 0.5299 MB / 0.5804 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004109/1.368, allocations: 1.665 MB / 0.582 GB, free: 9.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006059/1.374, allocations: 5.071 MB / 0.587 GB, free: 3.133 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006002/1.38, allocations: 2.847 MB / 0.5898 GB, free: 292 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.553e-05/1.38, allocations: 36 kB / 0.5898 GB, free: 256 kB / 394.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.0187/1.399, allocations: 6.521 MB / 0.5962 GB, free: 9.723 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/1.399, allocations: 56 kB / 0.5962 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/1.4, allocations: 127.9 kB / 0.5963 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/1.401, allocations: 341.4 kB / 0.5967 GB, free: 9.207 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007991/1.409, allocations: 1.267 MB / 0.5979 GB, free: 7.938 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/1.413, allocations: 2.387 MB / 0.6002 GB, free: 5.418 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005671/1.418, allocations: 290.9 kB / 0.6005 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/1.42, allocations: 336 kB / 0.6008 GB, free: 4.809 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008244/1.428, allocations: 1.77 MB / 0.6026 GB, free: 3.027 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/1.429, allocations: 308 kB / 0.6029 GB, free: 2.723 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008505/1.438, allocations: 2.323 MB / 0.6051 GB, free: 392 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.309e-05/1.438, allocations: 16 kB / 0.6051 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/1.438, allocations: 4 kB / 0.6051 GB, free: 372 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.807e-05/1.438, allocations: 3.984 kB / 0.6052 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/1.46, allocations: 5.853 MB / 0.6109 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-05/1.46, allocations: 4 kB / 0.6109 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/1.461, allocations: 160.2 kB / 0.611 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004043/1.465, allocations: 0.7147 MB / 0.6117 GB, free: 9.586 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/1.466, allocations: 20 kB / 0.6117 GB, free: 9.566 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/1.476, allocations: 4.558 MB / 0.6162 GB, free: 4.871 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/1.476, allocations: 4 kB / 0.6162 GB, free: 4.867 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01188/1.488, allocations: 4.268 MB / 0.6204 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/1.49, allocations: 0.5244 MB / 0.6209 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.2884/1.778, allocations: 25.94 kB / 0.6209 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/1.781, allocations: 72.84 kB / 0.621 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/1.781, allocations: 66.34 kB / 0.621 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/1.782, allocations: 35.69 kB / 0.6211 GB, free: 109.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007048/1.789, allocations: 2.306 MB / 0.6233 GB, free: 109.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.789, allocations: 0 / 0.6233 GB, free: 109.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00663/1.795, allocations: 0.8123 MB / 0.6241 GB, free: 109.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (90): * Single equations (assignments): 86 * 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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006634/1.796, allocations: 159.3 kB / 0.6243 GB, free: 109.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01481/1.811, allocations: 3.943 MB / 0.6281 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.811, allocations: 1.281 kB / 0.6281 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00403/1.815, allocations: 1.083 MB / 0.6292 GB, free: 109.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004666/1.82, allocations: 355 kB / 0.6295 GB, free: 109.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0297/1.85, allocations: 8.898 MB / 0.6382 GB, free: 106.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006171/1.856, allocations: 2.827 MB / 0.641 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/1.857, allocations: 248.2 kB / 0.6412 GB, free: 105.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/1.857, allocations: 0 / 0.6412 GB, free: 105.3 MB / 426.7 MB Notification: Performance of Templates: time 0.115/1.972, allocations: 60.91 MB / 0.7007 GB, free: 71.35 MB / 426.7 MB