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.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 2.2/2.2, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004443, allocations: 16 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3523, allocations: 54.86 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.03812/0.3905, allocations: 28.09 MB / 397.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01838/0.4089, allocations: 7.267 MB / 404.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005376/0.4143, allocations: 135.6 kB / 404.7 MB, free: 7.141 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004493/0.4188, allocations: 1.447 MB / 406.1 MB, free: 5.688 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0143/0.4332, allocations: 4.243 MB / 410.4 MB, free: 1.434 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.4354, allocations: 427.3 kB / 410.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004744/0.4402, allocations: 2.132 MB / 412.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006637/0.4469, allocations: 3.372 MB / 416.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.4489, allocations: 0.9342 MB / 417.2 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002527/0.4514, allocations: 1.304 MB / 418.5 MB, free: 9.211 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006356/0.4521, allocations: 148 kB / 418.7 MB, free: 9.066 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002455/0.4546, allocations: 0.8504 MB / 419.5 MB, free: 8.215 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.457, allocations: 1.547 MB / 421.1 MB, free: 6.664 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.4584, allocations: 0.8505 MB / 421.9 MB, free: 5.805 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008673/0.4671, allocations: 5.643 MB / 427.6 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.391e-06/0.4671, allocations: 0 / 427.6 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.978e-06/0.4671, allocations: 0 / 427.6 MB, free: 152 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001644/0.4673, allocations: 0 / 427.6 MB, free: 152 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01101/0.4783, allocations: 4.147 MB / 431.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.4784, allocations: 15.97 kB / 431.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01709/0.4955, allocations: 3.808 MB / 435.5 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005965/0.5015, allocations: 2.336 MB / 437.9 MB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003403/0.5019, allocations: 225.6 kB / 438.1 MB, free: 5.488 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/0.5032, allocations: 291.7 kB / 438.4 MB, free: 5.203 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02704/0.5303, allocations: 11.98 MB / 450.3 MB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001243/0.5305, allocations: 23.81 kB / 450.4 MB, free: 8.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008502/0.5313, allocations: 135.8 kB / 450.5 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005798/0.5372, allocations: 2.718 MB / 453.2 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02912/0.5663, allocations: 11.15 MB / 464.4 MB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3264/0.8928, allocations: 37.11 MB / 0.4897 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0116/0.9044, allocations: 4.68 MB / 0.4943 GB, free: 63.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001299/0.9058, allocations: 1.322 MB / 0.4956 GB, free: 62.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.9058, allocations: 59.09 kB / 0.4956 GB, free: 62.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 9.005e-06/0.9059, allocations: 0 / 0.4956 GB, free: 62.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.04934/0.9552, allocations: 14.07 MB / 0.5094 GB, free: 51.42 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.9553, allocations: 85.28 kB / 0.5095 GB, free: 51.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004445/0.9598, allocations: 2.913 MB / 0.5123 GB, free: 48.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004091/0.9602, allocations: 63.11 kB / 0.5124 GB, free: 48.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001713/0.9619, allocations: 2.954 MB / 0.5153 GB, free: 45.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/0.963, allocations: 0.9293 MB / 0.5162 GB, free: 44.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004299/0.9635, allocations: 116.2 kB / 0.5163 GB, free: 44.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003587/0.9638, allocations: 0.5625 MB / 0.5168 GB, free: 43.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004473/0.9683, allocations: 2.276 MB / 0.519 GB, free: 41.49 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006029/0.9744, allocations: 5.428 MB / 0.5243 GB, free: 34.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006117/0.9806, allocations: 3.521 MB / 0.5278 GB, free: 31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.754e-05/0.9807, allocations: 35.95 kB / 0.5278 GB, free: 30.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01874/0.9994, allocations: 8.325 MB / 0.5359 GB, free: 22.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.562e-05/0.9996, allocations: 52 kB / 0.536 GB, free: 22.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/0.9997, allocations: 112 kB / 0.5361 GB, free: 22.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004149/1.004, allocations: 1.03 MB / 0.5371 GB, free: 21.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005274/1.009, allocations: 1.318 MB / 0.5384 GB, free: 20.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003043/1.012, allocations: 2.498 MB / 0.5408 GB, free: 17.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004674/1.017, allocations: 317.2 kB / 0.5411 GB, free: 17.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009257/1.018, allocations: 336 kB / 0.5415 GB, free: 16.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 499 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (711): * Single equations (assignments): 702 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005125/1.023, allocations: 2.268 MB / 0.5437 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005258/1.024, allocations: 280.3 kB / 0.5439 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.034, allocations: 4.905 MB / 0.5487 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.986e-05/1.035, allocations: 45.56 kB / 0.5488 GB, free: 9.254 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/1.035, allocations: 7.984 kB / 0.5488 GB, free: 9.246 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.686e-05/1.035, allocations: 7.969 kB / 0.5488 GB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.06, allocations: 11.46 MB / 0.56 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.255e-05/1.06, allocations: 12 kB / 0.56 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002551/1.063, allocations: 415.3 kB / 0.5604 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003567/1.066, allocations: 0.6151 MB / 0.561 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005066/1.067, allocations: 57.31 kB / 0.561 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/1.07, allocations: 2.077 MB / 0.5631 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-05/1.07, allocations: 19.89 kB / 0.5631 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01624/1.086, allocations: 6.953 MB / 0.5699 GB, free: 3.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008464/1.087, allocations: 341.2 kB / 0.5702 GB, free: 2.824 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007503/1.088, allocations: 49.97 kB / 0.5703 GB, free: 2.777 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/1.09, allocations: 135.8 kB / 0.5704 GB, free: 2.645 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005785/1.091, allocations: 156.7 kB / 0.5705 GB, free: 2.496 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/1.091, allocations: 75.98 kB / 0.5706 GB, free: 2.422 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004124/1.095, allocations: 1.795 MB / 0.5724 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.278e-06/1.095, allocations: 0 / 0.5724 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006123/1.101, allocations: 1.006 MB / 0.5733 GB, free: 15.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * 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 (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000859/1.102, allocations: 211.5 kB / 0.5735 GB, free: 15.41 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01383/1.116, allocations: 5.965 MB / 0.5794 GB, free: 9.414 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/1.116, allocations: 4 kB / 0.5794 GB, free: 9.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005916/1.122, allocations: 2.375 MB / 0.5817 GB, free: 6.984 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/1.125, allocations: 396.1 kB / 0.5821 GB, free: 6.602 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02839/1.153, allocations: 13.45 MB / 0.5952 GB, free: 8.984 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007852/1.161, allocations: 3.612 MB / 0.5987 GB, free: 5.336 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/1.162, allocations: 279.4 kB / 0.599 GB, free: 5.062 MB / 442.7 MB Notification: Performance of SimCode: time 2.326e-06/1.162, allocations: 0 / 0.599 GB, free: 5.062 MB / 442.7 MB Notification: Performance of Templates: time 0.4806/1.643, allocations: 114.3 MB / 0.7107 GB, free: 117.8 MB / 490.7 MB