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.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.228/2.228, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004445, allocations: 15.98 kB / 314.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2793, allocations: 54.87 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.08143/0.3608, allocations: 60.06 MB / 429.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0355/0.3964, allocations: 14.16 MB / 443.4 MB, free: 312 kB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01139/0.4078, allocations: 315.2 kB / 443.7 MB, free: 15.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009307/0.4171, allocations: 3.009 MB / 446.7 MB, free: 12.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02866/0.4458, allocations: 8.606 MB / 455.3 MB, free: 4.344 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005256/0.4511, allocations: 1.272 MB / 456.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.371/0.8222, allocations: 19.19 MB / 475.8 MB, free: 19.33 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01127/0.8335, allocations: 6.339 MB / 482.1 MB, free: 18.86 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003419/0.837, allocations: 1.868 MB / 484 MB, free: 18.86 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004563/0.8416, allocations: 2.678 MB / 486.7 MB, free: 18.85 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.843, allocations: 248.7 kB / 486.9 MB, free: 18.85 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003412/0.8464, allocations: 1.209 MB / 488.1 MB, free: 18.84 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00356/0.85, allocations: 2.773 MB / 490.9 MB, free: 18.84 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001796/0.8518, allocations: 1.311 MB / 492.2 MB, free: 18.81 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.8623, allocations: 8.883 MB / 0.4894 GB, free: 16.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.07e-06/0.8624, allocations: 0 / 0.4894 GB, free: 16.42 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.698e-06/0.8624, allocations: 0 / 0.4894 GB, free: 16.42 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000281/0.8627, allocations: 0 / 0.4894 GB, free: 16.42 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02152/0.8842, allocations: 7.439 MB / 0.4966 GB, free: 12.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.8843, allocations: 7.844 kB / 0.4966 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1809/1.065, allocations: 15.1 MB / 0.5114 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/1.081, allocations: 6.189 MB / 0.5174 GB, free: 13.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004688/1.081, allocations: 376.1 kB / 0.5178 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/1.084, allocations: 0.5047 MB / 0.5183 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03922/1.123, allocations: 16.41 MB / 0.5343 GB, free: 332 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000286/1.123, allocations: 83.23 kB / 0.5344 GB, free: 280 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009826/1.124, allocations: 235.3 kB / 0.5346 GB, free: 208 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005476/1.13, allocations: 2.805 MB / 0.5373 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03764/1.167, allocations: 13.66 MB / 0.5507 GB, free: 4.223 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1066/1.274, allocations: 64.34 MB / 0.6135 GB, free: 12.04 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0306/1.305, allocations: 7.825 MB / 0.6212 GB, free: 4.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04148/1.346, allocations: 18.84 MB / 0.6396 GB, free: 0.7617 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.515e-05/1.346, allocations: 64.56 kB / 0.6396 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=280): time 6.976e-06/1.346, allocations: 0 / 0.6396 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of matching and sorting (n=360): time 0.4808/1.827, allocations: 50.09 MB / 0.6885 GB, free: 191.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/1.827, allocations: 269.4 kB / 0.6888 GB, free: 191.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01137/1.839, allocations: 6.545 MB / 0.6952 GB, free: 185.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007138/1.839, allocations: 83.42 kB / 0.6953 GB, free: 185.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003092/1.842, allocations: 4.535 MB / 0.6997 GB, free: 181.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.844, allocations: 1.331 MB / 0.701 GB, free: 180.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008668/1.845, allocations: 180.9 kB / 0.7012 GB, free: 180 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005173/1.846, allocations: 0.6992 MB / 0.7018 GB, free: 179.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007588/1.853, allocations: 3.879 MB / 0.7056 GB, free: 175.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/1.863, allocations: 9.102 MB / 0.7145 GB, free: 163.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.874, allocations: 5.747 MB / 0.7201 GB, free: 158 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001314/1.874, allocations: 52 kB / 0.7202 GB, free: 158 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.04188/1.916, allocations: 16.66 MB / 0.7365 GB, free: 141.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/1.916, allocations: 89.75 kB / 0.7365 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001868/1.916, allocations: 180 kB / 0.7367 GB, free: 141 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01673/1.933, allocations: 4.215 MB / 0.7408 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008282/1.941, allocations: 2.039 MB / 0.7428 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0434/1.985, allocations: 23.98 MB / 0.7662 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008858/1.994, allocations: 0.515 MB / 0.7667 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/1.995, allocations: 0.5281 MB / 0.7673 GB, free: 109.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1076): * Single equations (assignments): 1071 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007022/2.002, allocations: 3.118 MB / 0.7703 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/2.004, allocations: 0.5785 MB / 0.7709 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0262/2.03, allocations: 10.08 MB / 0.7807 GB, free: 95.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.027e-05/2.03, allocations: 43.94 kB / 0.7808 GB, free: 95.58 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.149e-05/2.03, allocations: 16 kB / 0.7808 GB, free: 95.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.924e-05/2.03, allocations: 15.94 kB / 0.7808 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04861/2.079, allocations: 19.74 MB / 0.8001 GB, free: 75.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.214e-05/2.079, allocations: 0 / 0.8001 GB, free: 75.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003875/2.083, allocations: 0.5266 MB / 0.8006 GB, free: 75.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01851/2.101, allocations: 3.719 MB / 0.8042 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007121/2.102, allocations: 63.98 kB / 0.8043 GB, free: 71.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0376/2.14, allocations: 20.84 MB / 0.8246 GB, free: 50.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.649e-06/2.14, allocations: 0 / 0.8246 GB, free: 50.28 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03362/2.173, allocations: 14.6 MB / 0.8389 GB, free: 35.59 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00342/2.177, allocations: 1.157 MB / 0.84 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/2.178, allocations: 63.94 kB / 0.8401 GB, free: 34.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003812/2.182, allocations: 220.4 kB / 0.8403 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008336/2.183, allocations: 214.1 kB / 0.8405 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003877/2.183, allocations: 100.6 kB / 0.8406 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007648/2.191, allocations: 4.163 MB / 0.8446 GB, free: 29.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.044e-06/2.191, allocations: 0 / 0.8446 GB, free: 29.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009791/2.201, allocations: 1.874 MB / 0.8465 GB, free: 27.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (263): * Single equations (assignments): 258 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009424/2.202, allocations: 227.5 kB / 0.8467 GB, free: 27.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.333/2.535, allocations: 9.875 MB / 0.8563 GB, free: 193.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.479e-06/2.535, allocations: 3.938 kB / 0.8563 GB, free: 193.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008221/2.543, allocations: 3.893 MB / 0.8601 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004427/2.547, allocations: 0.7119 MB / 0.8608 GB, free: 192.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03504/2.583, allocations: 19.27 MB / 0.8797 GB, free: 183.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009397/2.592, allocations: 5.003 MB / 0.8845 GB, free: 181.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002138/2.594, allocations: 451.9 kB / 0.885 GB, free: 181.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.711e-06/2.594, allocations: 2.953 kB / 0.885 GB, free: 181.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.1979/2.792, allocations: 146.7 MB / 1.028 GB, free: 38.12 MB / 0.5105 GB