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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.348/2.348, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004407/0.0004408, allocations: 8 kB / 314.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2838, allocations: 54.88 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.042/0.3258, allocations: 28.36 MB / 397.5 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01948/0.3453, allocations: 7.419 MB / 405 MB, free: 6.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005574/0.3509, allocations: 139.6 kB / 405.1 MB, free: 6.684 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004616/0.3556, allocations: 1.384 MB / 406.5 MB, free: 5.293 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.3702, allocations: 4.142 MB / 410.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002468/0.3727, allocations: 0.4913 MB / 411.1 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004376/0.3771, allocations: 1.926 MB / 413 MB, free: 14.72 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00575/0.3829, allocations: 2.924 MB / 416 MB, free: 11.75 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001912/0.3849, allocations: 0.8642 MB / 416.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002205/0.3871, allocations: 1.121 MB / 418 MB, free: 9.754 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005556/0.3877, allocations: 112 kB / 418.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.39, allocations: 0.8308 MB / 418.9 MB, free: 8.812 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.3921, allocations: 1.27 MB / 420.2 MB, free: 7.539 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.3932, allocations: 0.687 MB / 420.9 MB, free: 6.844 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006937/0.4002, allocations: 4.42 MB / 425.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.4002, allocations: 0 / 425.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.311e-06/0.4003, allocations: 0 / 425.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.4004, allocations: 4 kB / 425.3 MB, free: 2.41 MB / 346.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.008539/0.409, allocations: 3.402 MB / 428.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.409, allocations: 12.03 kB / 428.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009685/0.4187, allocations: 2.101 MB / 430.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005422/0.4242, allocations: 2.138 MB / 432.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.4245, allocations: 188.7 kB / 433.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/0.4255, allocations: 243.8 kB / 433.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01964/0.4452, allocations: 8.41 MB / 441.8 MB, free: 1.117 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001469/0.4454, allocations: 35.75 kB / 441.8 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007738/0.4462, allocations: 127.9 kB / 441.9 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003501/0.4497, allocations: 1.617 MB / 443.5 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/0.4684, allocations: 7.047 MB / 450.6 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3194/0.7878, allocations: 33.88 MB / 484.5 MB, free: 68.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009016/0.7969, allocations: 3.146 MB / 487.6 MB, free: 67.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007644/0.8046, allocations: 4.061 MB / 491.7 MB, free: 65.65 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.8047, allocations: 49.84 kB / 491.7 MB, free: 65.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=114): time 6.785e-06/0.8047, allocations: 2.594 kB / 491.7 MB, free: 65.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.03662/0.8413, allocations: 11.59 MB / 0.4915 GB, free: 60.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.8414, allocations: 164.9 kB / 0.4917 GB, free: 60.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006305/0.8477, allocations: 3.821 MB / 0.4954 GB, free: 56.94 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002261/0.848, allocations: 41.7 kB / 0.4954 GB, free: 56.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.8497, allocations: 2.671 MB / 0.4981 GB, free: 54.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000555/0.8502, allocations: 0.499 MB / 0.4985 GB, free: 53.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.8506, allocations: 102 kB / 0.4986 GB, free: 53.63 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002883/0.8509, allocations: 0.5329 MB / 0.4992 GB, free: 53.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003111/0.854, allocations: 1.665 MB / 0.5008 GB, free: 51.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004822/0.8589, allocations: 5.071 MB / 0.5057 GB, free: 44.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004854/0.8638, allocations: 2.852 MB / 0.5085 GB, free: 42.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-05/0.8639, allocations: 36 kB / 0.5086 GB, free: 41.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01339/0.8773, allocations: 6.51 MB / 0.5149 GB, free: 35.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.8775, allocations: 61.7 kB / 0.515 GB, free: 35.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/0.8776, allocations: 124.9 kB / 0.5151 GB, free: 35.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007857/0.8784, allocations: 340.7 kB / 0.5154 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004641/0.8831, allocations: 1.22 MB / 0.5166 GB, free: 33.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.8859, allocations: 2.364 MB / 0.5189 GB, free: 31.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004781/0.8907, allocations: 284.3 kB / 0.5192 GB, free: 30.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007739/0.8916, allocations: 332.5 kB / 0.5195 GB, free: 30.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (654): * Single equations (assignments): 650 * 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.003387/0.895, allocations: 1.773 MB / 0.5212 GB, free: 28.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006205/0.8956, allocations: 308 kB / 0.5215 GB, free: 28.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005292/0.9009, allocations: 2.332 MB / 0.5238 GB, free: 26.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.964e-05/0.901, allocations: 23.94 kB / 0.5238 GB, free: 26.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.901, allocations: 6.188 kB / 0.5238 GB, free: 26.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.1e-05/0.9011, allocations: 3.984 kB / 0.5238 GB, free: 26.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.9147, allocations: 5.855 MB / 0.5296 GB, free: 20.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.97e-05/0.9148, allocations: 3.984 kB / 0.5296 GB, free: 20.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009867/0.9158, allocations: 167.7 kB / 0.5297 GB, free: 20.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.9184, allocations: 0.7147 MB / 0.5304 GB, free: 19.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/0.9186, allocations: 20.95 kB / 0.5304 GB, free: 19.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006753/0.9254, allocations: 4.578 MB / 0.5349 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.181e-06/0.9254, allocations: 0 / 0.5349 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007852/0.9333, allocations: 4.277 MB / 0.5391 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.9347, allocations: 0.5321 MB / 0.5396 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005533/0.9353, allocations: 16 kB / 0.5396 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/0.9369, allocations: 76.75 kB / 0.5397 GB, free: 9.719 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.9372, allocations: 68.41 kB / 0.5398 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.9373, allocations: 33.33 kB / 0.5398 GB, free: 9.621 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004315/0.9416, allocations: 2.401 MB / 0.5421 GB, free: 7.234 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.459e-06/0.9417, allocations: 0 / 0.5421 GB, free: 7.234 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00524/0.9469, allocations: 0.8185 MB / 0.5429 GB, free: 6.422 MB / 394.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.0005121/0.9475, allocations: 167.1 kB / 0.5431 GB, free: 6.258 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00724/0.9547, allocations: 3.966 MB / 0.547 GB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.75e-06/0.9548, allocations: 4 kB / 0.547 GB, free: 2.305 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001891/0.9567, allocations: 1.086 MB / 0.548 GB, free: 1.203 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/0.9589, allocations: 356.4 kB / 0.5484 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01824/0.9772, allocations: 8.923 MB / 0.5571 GB, free: 7.895 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005242/0.9825, allocations: 2.834 MB / 0.5599 GB, free: 5.031 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/0.9836, allocations: 251.4 kB / 0.5601 GB, free: 4.785 MB / 410.7 MB Notification: Performance of SimCode: time 1.918e-06/0.9836, allocations: 0 / 0.5601 GB, free: 4.785 MB / 410.7 MB Notification: Performance of Templates: time 0.1682/1.152, allocations: 61.3 MB / 0.62 GB, free: 7.422 MB / 474.7 MB