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.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004381/0.0004383, allocations: 8 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2765, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.08279/0.3593, allocations: 61.13 MB / 430.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03715/0.3965, allocations: 14.46 MB / 444.8 MB, free: 14.93 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01251/0.4091, allocations: 311.2 kB / 445.1 MB, free: 14.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009763/0.4189, allocations: 3.122 MB / 448.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02994/0.4489, allocations: 8.801 MB / 457 MB, free: 2.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004869/0.4538, allocations: 0.9127 MB / 457.9 MB, free: 1.746 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3165/0.7703, allocations: 18.41 MB / 476.3 MB, free: 18.93 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01176/0.7821, allocations: 6.294 MB / 482.6 MB, free: 18.46 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003232/0.7854, allocations: 1.525 MB / 484.1 MB, free: 18.46 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003892/0.7893, allocations: 2.097 MB / 486.2 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001363/0.7907, allocations: 211.2 kB / 486.4 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003133/0.7939, allocations: 1.028 MB / 487.5 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003187/0.7971, allocations: 2.287 MB / 489.8 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.7991, allocations: 1.199 MB / 491 MB, free: 18.42 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009893/0.809, allocations: 8.194 MB / 499.1 MB, free: 16.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.685e-06/0.809, allocations: 0 / 499.1 MB, free: 16.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.27e-06/0.8091, allocations: 0 / 499.1 MB, free: 16.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000275/0.8093, allocations: 0 / 499.1 MB, free: 16.71 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.01936/0.8287, allocations: 6.507 MB / 0.4938 GB, free: 12.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.8288, allocations: 10.12 kB / 0.4938 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1794/1.008, allocations: 14.76 MB / 0.5082 GB, free: 4.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/1.021, allocations: 4.992 MB / 0.5131 GB, free: 1.297 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003435/1.021, allocations: 334.3 kB / 0.5134 GB, free: 1.113 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/1.023, allocations: 467.7 kB / 0.5139 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03292/1.056, allocations: 13.73 MB / 0.5273 GB, free: 6.211 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002864/1.056, allocations: 71.22 kB / 0.5273 GB, free: 6.172 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001306/1.057, allocations: 213.6 kB / 0.5276 GB, free: 6.109 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004747/1.062, allocations: 2.415 MB / 0.5299 GB, free: 4.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03151/1.094, allocations: 11.73 MB / 0.5414 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09133/1.185, allocations: 53.78 MB / 0.5939 GB, free: 15.29 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01996/1.205, allocations: 5.816 MB / 0.5996 GB, free: 10.25 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001089/1.206, allocations: 0.6971 MB / 0.6002 GB, free: 9.457 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.619e-05/1.206, allocations: 60.88 kB / 0.6003 GB, free: 9.395 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 8.039e-06/1.206, allocations: 0 / 0.6003 GB, free: 9.395 MB / 474.7 MB Notification: Performance of matching and sorting (n=324): time 0.1704/1.377, allocations: 36.77 MB / 0.6362 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000206/1.377, allocations: 261.4 kB / 0.6365 GB, free: 4.199 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01246/1.389, allocations: 5.649 MB / 0.642 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000754/1.39, allocations: 73.7 kB / 0.642 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004406/1.395, allocations: 3.86 MB / 0.6458 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002086/1.397, allocations: 1.201 MB / 0.647 GB, free: 9.461 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007911/1.398, allocations: 156 kB / 0.6471 GB, free: 9.309 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006739/1.398, allocations: 0.6352 MB / 0.6478 GB, free: 8.668 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008238/1.407, allocations: 3.442 MB / 0.6511 GB, free: 5.227 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3176/1.724, allocations: 7.666 MB / 0.6586 GB, free: 192.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01109/1.735, allocations: 5.048 MB / 0.6635 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002616/1.736, allocations: 42.41 kB / 0.6636 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03199/1.768, allocations: 12.68 MB / 0.676 GB, free: 186.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001612/1.768, allocations: 66.72 kB / 0.676 GB, free: 186.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002054/1.768, allocations: 149.3 kB / 0.6762 GB, free: 186.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00794/1.776, allocations: 2.27 MB / 0.6784 GB, free: 186.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007955/1.784, allocations: 1.758 MB / 0.6801 GB, free: 186.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02588/1.81, allocations: 15.76 MB / 0.6955 GB, free: 177.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007594/1.818, allocations: 463.3 kB / 0.6959 GB, free: 177.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001595/1.819, allocations: 452.3 kB / 0.6964 GB, free: 177 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 669 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (928): * Single equations (assignments): 923 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006432/1.826, allocations: 2.818 MB / 0.6991 GB, free: 174.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/1.827, allocations: 0.4902 MB / 0.6996 GB, free: 174.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01615/1.843, allocations: 7.414 MB / 0.7068 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.878e-05/1.843, allocations: 33.56 kB / 0.7069 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.037e-05/1.843, allocations: 14.28 kB / 0.7069 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.269e-05/1.843, allocations: 19.52 kB / 0.7069 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03596/1.879, allocations: 16.67 MB / 0.7232 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.244e-05/1.879, allocations: 11.95 kB / 0.7232 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/1.883, allocations: 0.5109 MB / 0.7237 GB, free: 151.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006351/1.889, allocations: 2.01 MB / 0.7256 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007224/1.89, allocations: 67.98 kB / 0.7257 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02324/1.913, allocations: 14.23 MB / 0.7396 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.763e-06/1.913, allocations: 7.938 kB / 0.7396 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02277/1.936, allocations: 11.81 MB / 0.7511 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003225/1.939, allocations: 1.1 MB / 0.7522 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001395/1.94, allocations: 63.98 kB / 0.7523 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003768/1.944, allocations: 220.7 kB / 0.7525 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009692/1.945, allocations: 213.5 kB / 0.7527 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004163/1.946, allocations: 93.02 kB / 0.7528 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0071/1.953, allocations: 3.633 MB / 0.7563 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.202e-06/1.953, allocations: 3.938 kB / 0.7563 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008855/1.962, allocations: 1.532 MB / 0.7578 GB, free: 116.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009978/1.963, allocations: 234.1 kB / 0.7581 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01598/1.979, allocations: 8.545 MB / 0.7664 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/1.979, allocations: 8 kB / 0.7664 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009572/1.988, allocations: 4.092 MB / 0.7704 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004223/1.993, allocations: 0.6245 MB / 0.771 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03237/2.025, allocations: 17.76 MB / 0.7884 GB, free: 85.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00835/2.034, allocations: 4.536 MB / 0.7928 GB, free: 80.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002316/2.036, allocations: 419.3 kB / 0.7932 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of SimCode: time 2.919e-06/2.036, allocations: 0 / 0.7932 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of Templates: time 0.453/2.489, allocations: 132.8 MB / 0.9228 GB, free: 135.7 MB / 0.5105 GB