Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.19/2.19, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.054e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2768, allocations: 54.85 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.4313, allocations: 99.52 MB / 457.6 MB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.4316, allocations: 79.95 kB / 457.6 MB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5614/0.9929, allocations: 70.46 MB / 0.5157 GB, free: 53.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.082e-06/0.993, allocations: 0 / 0.5157 GB, free: 53.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001643/0.9932, allocations: 64 kB / 0.5158 GB, free: 53.04 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.009297/1.002, allocations: 3.342 MB / 0.519 GB, free: 49.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/1.003, allocations: 16.02 kB / 0.5191 GB, free: 49.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01094/1.013, allocations: 2.082 MB / 0.5211 GB, free: 47.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/1.025, allocations: 4.066 MB / 0.5251 GB, free: 43.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/1.025, allocations: 108 kB / 0.5252 GB, free: 43.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/1.027, allocations: 204.2 kB / 0.5254 GB, free: 43.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01009/1.037, allocations: 5.034 MB / 0.5303 GB, free: 38.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/1.052, allocations: 7.951 MB / 0.538 GB, free: 29.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001721/1.052, allocations: 59.41 kB / 0.5381 GB, free: 29.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000823/1.053, allocations: 31.94 kB / 0.5381 GB, free: 29.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001299/1.055, allocations: 0.8722 MB / 0.539 GB, free: 28.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0628/1.117, allocations: 40.95 MB / 0.579 GB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007977/1.125, allocations: 2.474 MB / 0.5814 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004892/1.13, allocations: 1.366 MB / 0.5827 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008544/1.131, allocations: 335.8 kB / 0.583 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.169e-05/1.131, allocations: 55.06 kB / 0.5831 GB, free: 13.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 1.028e-05/1.131, allocations: 0 / 0.5831 GB, free: 13.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=130): time 0.0489/1.18, allocations: 11.26 MB / 0.5941 GB, free: 2.066 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/1.181, allocations: 188.5 kB / 0.5943 GB, free: 1.836 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006681/1.187, allocations: 2.785 MB / 0.597 GB, free: 15.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002719/1.188, allocations: 29.64 kB / 0.597 GB, free: 15.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00305/1.191, allocations: 2.758 MB / 0.5997 GB, free: 12.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008886/1.192, allocations: 0.5092 MB / 0.6002 GB, free: 11.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004973/1.192, allocations: 0 / 0.6002 GB, free: 11.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006042/1.193, allocations: 0.5421 MB / 0.6007 GB, free: 11.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/1.196, allocations: 1.596 MB / 0.6023 GB, free: 9.543 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007521/1.204, allocations: 5.096 MB / 0.6073 GB, free: 2.656 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006278/1.21, allocations: 2.845 MB / 0.61 GB, free: 15.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/1.211, allocations: 36 kB / 0.6101 GB, free: 15.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01611/1.227, allocations: 5.932 MB / 0.6159 GB, free: 9.832 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/1.227, allocations: 56 kB / 0.6159 GB, free: 9.777 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/1.227, allocations: 132.1 kB / 0.6161 GB, free: 9.648 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008972/1.228, allocations: 344.7 kB / 0.6164 GB, free: 9.309 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005714/1.234, allocations: 1.322 MB / 0.6177 GB, free: 7.984 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003362/1.237, allocations: 2.246 MB / 0.6199 GB, free: 5.621 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00515/1.242, allocations: 195.5 kB / 0.6201 GB, free: 5.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/1.243, allocations: 344.1 kB / 0.6204 GB, free: 5.094 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (686): * Single equations (assignments): 682 * 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.001008/1.244, allocations: 430.6 kB / 0.6208 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007387/1.245, allocations: 272.4 kB / 0.621 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006216/1.251, allocations: 2.251 MB / 0.6232 GB, free: 2.117 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-05/1.252, allocations: 20.03 kB / 0.6233 GB, free: 2.098 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/1.252, allocations: 4 kB / 0.6233 GB, free: 2.094 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.041e-05/1.252, allocations: 7.969 kB / 0.6233 GB, free: 2.086 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2821/1.534, allocations: 5.613 MB / 0.6288 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.78e-05/1.534, allocations: 6.062 kB / 0.6288 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/1.535, allocations: 177 kB / 0.6289 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003068/1.538, allocations: 0.7031 MB / 0.6296 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002461/1.538, allocations: 8.891 kB / 0.6296 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006907/1.545, allocations: 4.285 MB / 0.6338 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.633e-06/1.545, allocations: 6.719 kB / 0.6338 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008496/1.554, allocations: 4.394 MB / 0.6381 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/1.555, allocations: 0.4952 MB / 0.6386 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005337/1.556, allocations: 6.156 kB / 0.6386 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/1.558, allocations: 59.88 kB / 0.6387 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/1.558, allocations: 72.58 kB / 0.6387 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/1.558, allocations: 35.73 kB / 0.6388 GB, free: 110 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003571/1.562, allocations: 1.847 MB / 0.6406 GB, free: 109.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.151e-06/1.562, allocations: 0 / 0.6406 GB, free: 109.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006012/1.568, allocations: 0.7071 MB / 0.6413 GB, free: 109.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 93 * 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.0004606/1.568, allocations: 143.4 kB / 0.6414 GB, free: 109.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007005/1.575, allocations: 3.753 MB / 0.6451 GB, free: 109.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.874e-06/1.575, allocations: 0 / 0.6451 GB, free: 109.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/1.577, allocations: 1.071 MB / 0.6461 GB, free: 109.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/1.579, allocations: 292.7 kB / 0.6464 GB, free: 109.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/1.594, allocations: 6.208 MB / 0.6524 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005389/1.599, allocations: 2.843 MB / 0.6552 GB, free: 107.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/1.6, allocations: 233.9 kB / 0.6554 GB, free: 107.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.758e-06/1.6, allocations: 0 / 0.6554 GB, free: 107.3 MB / 458.7 MB Notification: Performance of Templates: time 0.08401/1.684, allocations: 59.04 MB / 0.7131 GB, free: 68.15 MB / 458.7 MB