Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Worldtorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque") Notification: Performance of loadModel(ModelicaTest): time 2.331/2.331, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004527, allocations: 16 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3728, allocations: 54.85 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.5519, allocations: 99.76 MB / 469.6 MB, free: 8.902 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003596/0.5523, allocations: 83.95 kB / 469.6 MB, free: 8.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.006/1.558, allocations: 143.9 MB / 0.5992 GB, free: 33.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.827e-06/1.558, allocations: 0 / 0.5992 GB, free: 33.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005354/1.559, allocations: 139.9 kB / 0.5993 GB, free: 33.54 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.03167/1.591, allocations: 7.479 MB / 0.6066 GB, free: 25.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/1.591, allocations: 8.031 kB / 0.6066 GB, free: 25.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06827/1.659, allocations: 9.526 MB / 0.6159 GB, free: 16.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03061/1.69, allocations: 8.867 MB / 0.6246 GB, free: 7.465 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007192/1.69, allocations: 0.5301 MB / 0.6251 GB, free: 6.934 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003821/1.694, allocations: 0.7067 MB / 0.6258 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05382/1.748, allocations: 16.74 MB / 0.6421 GB, free: 4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005728/1.749, allocations: 99.03 kB / 0.6422 GB, free: 3.902 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003576/1.752, allocations: 339.8 kB / 0.6425 GB, free: 3.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004097/1.756, allocations: 1.53 MB / 0.644 GB, free: 2.031 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06963/1.826, allocations: 13.34 MB / 0.6571 GB, free: 4.664 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8645/2.691, allocations: 72.58 MB / 0.7279 GB, free: 37.83 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02379/2.715, allocations: 5.924 MB / 0.7337 GB, free: 37.14 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003708/2.715, allocations: 57.08 kB / 0.7338 GB, free: 37.14 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/2.715, allocations: 61.88 kB / 0.7338 GB, free: 37.1 MB / 474.8 MB Notification: Performance of pre-optimization done (n=249): time 7.073e-06/2.715, allocations: 0 / 0.7338 GB, free: 37.1 MB / 474.8 MB Notification: Performance of matching and sorting (n=267): time 0.1037/2.819, allocations: 23.46 MB / 0.7568 GB, free: 31.32 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/2.819, allocations: 262.9 kB / 0.757 GB, free: 31.04 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01833/2.837, allocations: 6.953 MB / 0.7638 GB, free: 30.52 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007757/2.838, allocations: 69.36 kB / 0.7639 GB, free: 30.48 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004573/2.843, allocations: 4.788 MB / 0.7685 GB, free: 27.98 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001713/2.845, allocations: 1.019 MB / 0.7695 GB, free: 27.41 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001153/2.846, allocations: 178.2 kB / 0.7697 GB, free: 27.41 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0007205/2.846, allocations: 0.6753 MB / 0.7704 GB, free: 27.07 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008142/2.855, allocations: 2.97 MB / 0.7733 GB, free: 27.04 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01207/2.867, allocations: 8.258 MB / 0.7813 GB, free: 18.99 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/2.879, allocations: 4.83 MB / 0.786 GB, free: 17.39 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002543/2.879, allocations: 50.47 kB / 0.7861 GB, free: 17.39 MB / 474.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03091/2.91, allocations: 11.29 MB / 0.7971 GB, free: 13.65 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/2.91, allocations: 85.97 kB / 0.7972 GB, free: 13.65 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003404/2.91, allocations: 187.8 kB / 0.7974 GB, free: 13.65 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003332/2.914, allocations: 0.8443 MB / 0.7982 GB, free: 13.49 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01247/2.926, allocations: 1.985 MB / 0.8001 GB, free: 13.25 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/2.94, allocations: 8.643 MB / 0.8086 GB, free: 6.879 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01039/2.951, allocations: 474.3 kB / 0.809 GB, free: 6.457 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002126/2.953, allocations: 0.5164 MB / 0.8095 GB, free: 5.953 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1056): * Single equations (assignments): 1050 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01011/2.963, allocations: 3.32 MB / 0.8128 GB, free: 3.035 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001733/2.965, allocations: 0.5891 MB / 0.8133 GB, free: 2.441 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01852/2.983, allocations: 4.74 MB / 0.818 GB, free: 15.15 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.859e-05/2.983, allocations: 28 kB / 0.818 GB, free: 15.12 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.244e-05/2.983, allocations: 8 kB / 0.818 GB, free: 15.12 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.829e-05/2.984, allocations: 18.92 kB / 0.818 GB, free: 15.11 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04258/3.026, allocations: 11.69 MB / 0.8294 GB, free: 5.613 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.971e-05/3.026, allocations: 4 kB / 0.8295 GB, free: 5.609 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004756/3.031, allocations: 447.2 kB / 0.8299 GB, free: 5.258 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002875/3.034, allocations: 0.5202 MB / 0.8304 GB, free: 4.867 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007515/3.035, allocations: 51.73 kB / 0.8304 GB, free: 4.824 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/3.051, allocations: 7.762 MB / 0.838 GB, free: 13.52 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/3.051, allocations: 4.031 kB / 0.838 GB, free: 13.52 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02414/3.075, allocations: 7.875 MB / 0.8457 GB, free: 6.559 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004633/3.08, allocations: 1.008 MB / 0.8467 GB, free: 5.613 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002617/3.082, allocations: 44.94 kB / 0.8467 GB, free: 5.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005571/3.088, allocations: 148.8 kB / 0.8469 GB, free: 5.469 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/3.089, allocations: 161.5 kB / 0.847 GB, free: 5.375 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003258/3.089, allocations: 74.25 kB / 0.8471 GB, free: 5.305 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01425/3.104, allocations: 4.418 MB / 0.8514 GB, free: 1.691 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.01e-07/3.104, allocations: 7.312 kB / 0.8514 GB, free: 1.688 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01246/3.116, allocations: 1.557 MB / 0.8529 GB, free: 140 kB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001212/3.117, allocations: 188.7 kB / 0.8531 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02136/3.139, allocations: 7.497 MB / 0.8604 GB, free: 9.332 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/3.139, allocations: 3.609 kB / 0.8605 GB, free: 9.332 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00712/3.146, allocations: 2.539 MB / 0.8629 GB, free: 7.051 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007243/3.153, allocations: 0.7613 MB / 0.8637 GB, free: 6.406 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4307/3.584, allocations: 18.52 MB / 0.8818 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01359/3.598, allocations: 5.21 MB / 0.8869 GB, free: 122 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002859/3.601, allocations: 461.3 kB / 0.8873 GB, free: 122 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/3.601, allocations: 0 / 0.8873 GB, free: 122 MB / 0.5105 GB Notification: Performance of Templates: time 0.7147/4.315, allocations: 177.4 MB / 1.06 GB, free: 140.3 MB / 0.5262 GB