Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01068/0.01068, allocations: 106.4 kB / 15.06 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001268/0.001268, allocations: 181.8 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.129/2.129, allocations: 194.6 MB / 211.3 MB, free: 11.07 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2666/0.2666, allocations: 40.04 MB / 296.5 MB, free: 6.305 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.0004741, allocations: 8 kB / 361.1 MB, free: 9.551 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1158, allocations: 54.87 MB / 416 MB, free: 2.582 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04375/0.1596, allocations: 28.09 MB / 444.1 MB, free: 6.406 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3248/0.4844, allocations: 7.275 MB / 451.4 MB, free: 30.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005519/0.49, allocations: 132.6 kB / 451.5 MB, free: 30.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004761/0.4948, allocations: 1.454 MB / 453 MB, free: 30.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01516/0.51, allocations: 4.236 MB / 457.2 MB, free: 30.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002721/0.5128, allocations: 426.8 kB / 457.6 MB, free: 30.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005154/0.518, allocations: 2.128 MB / 459.7 MB, free: 30.49 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006886/0.5249, allocations: 3.328 MB / 463.1 MB, free: 30.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.5274, allocations: 0.933 MB / 464 MB, free: 30.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.5302, allocations: 1.296 MB / 465.3 MB, free: 30.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001147/0.5314, allocations: 148.1 kB / 465.4 MB, free: 30.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003304/0.5348, allocations: 0.8573 MB / 466.3 MB, free: 30.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003065/0.5379, allocations: 1.549 MB / 467.9 MB, free: 30.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.5395, allocations: 0.8454 MB / 468.7 MB, free: 30.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008571/0.5481, allocations: 5.641 MB / 474.3 MB, free: 29.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.5482, allocations: 3.344 kB / 474.3 MB, free: 29.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5482, allocations: 0 / 474.3 MB, free: 29.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002839/0.5485, allocations: 0 / 474.3 MB, free: 29.82 MB / 378.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.01458/0.5631, allocations: 4.155 MB / 478.5 MB, free: 27.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.5632, allocations: 12.31 kB / 478.5 MB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003135/0.5663, allocations: 0.7996 MB / 479.3 MB, free: 27.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02396/0.5903, allocations: 3.809 MB / 483.1 MB, free: 27.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00748/0.5978, allocations: 2.33 MB / 485.4 MB, free: 26.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/0.5983, allocations: 226.3 kB / 485.7 MB, free: 26.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002187/0.6005, allocations: 303 kB / 486 MB, free: 26.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/0.6337, allocations: 11.95 MB / 497.9 MB, free: 23.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002316/0.6339, allocations: 23.62 kB / 497.9 MB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00208/0.636, allocations: 139.8 kB / 498.1 MB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007694/0.6438, allocations: 2.709 MB / 0.489 GB, free: 23.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0334/0.6772, allocations: 11.15 MB / 0.4999 GB, free: 18.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.112/0.7892, allocations: 37.12 MB / 0.5362 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01569/0.805, allocations: 4.688 MB / 0.5408 GB, free: 8.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00206/0.8071, allocations: 1.323 MB / 0.5421 GB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.515e-05/0.8072, allocations: 52.56 kB / 0.5421 GB, free: 6.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=244): time 8.827e-06/0.8073, allocations: 0 / 0.5421 GB, free: 6.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=256): time 0.07319/0.8805, allocations: 14.1 MB / 0.5559 GB, free: 8.238 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.8806, allocations: 77.41 kB / 0.5559 GB, free: 8.152 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006755/0.8874, allocations: 2.915 MB / 0.5588 GB, free: 5.227 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000638/0.8881, allocations: 57.7 kB / 0.5588 GB, free: 5.164 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003447/0.8915, allocations: 2.956 MB / 0.5617 GB, free: 2.219 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001784/0.8934, allocations: 0.9362 MB / 0.5626 GB, free: 1.289 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006775/0.8941, allocations: 115.5 kB / 0.5628 GB, free: 1.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006292/0.8947, allocations: 0.5555 MB / 0.5633 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006938/0.9017, allocations: 2.279 MB / 0.5655 GB, free: 14.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/0.9123, allocations: 5.404 MB / 0.5708 GB, free: 7.395 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009903/0.9223, allocations: 3.517 MB / 0.5742 GB, free: 3.887 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001161/0.9224, allocations: 32 kB / 0.5743 GB, free: 3.855 MB / 442.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.02797/0.9504, allocations: 8.385 MB / 0.5825 GB, free: 11.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.9506, allocations: 52 kB / 0.5825 GB, free: 11.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001739/0.9507, allocations: 116 kB / 0.5826 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006639/0.9574, allocations: 1.029 MB / 0.5836 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008503/0.9659, allocations: 1.314 MB / 0.5849 GB, free: 8.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004747/0.9707, allocations: 2.498 MB / 0.5873 GB, free: 6.289 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00552/0.9763, allocations: 325.2 kB / 0.5877 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/0.9777, allocations: 328 kB / 0.588 GB, free: 5.656 MB / 458.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.006509/0.9842, allocations: 2.265 MB / 0.5902 GB, free: 3.379 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007642/0.985, allocations: 284.3 kB / 0.5904 GB, free: 3.098 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02272/1.008, allocations: 4.907 MB / 0.5952 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001604/1.008, allocations: 51.19 kB / 0.5953 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/1.008, allocations: 0 / 0.5953 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.857e-05/1.008, allocations: 11.95 kB / 0.5953 GB, free: 14.06 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04792/1.056, allocations: 11.46 MB / 0.6065 GB, free: 2.465 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.233e-05/1.056, allocations: 8 kB / 0.6065 GB, free: 2.457 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004946/1.061, allocations: 407.4 kB / 0.6069 GB, free: 2.059 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006853/1.068, allocations: 0.6233 MB / 0.6075 GB, free: 1.426 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005533/1.068, allocations: 51.98 kB / 0.6075 GB, free: 1.375 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/1.072, allocations: 2.087 MB / 0.6096 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.528e-05/1.072, allocations: 11.94 kB / 0.6096 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02022/1.093, allocations: 7.729 MB / 0.6171 GB, free: 7.035 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000976/1.094, allocations: 333.6 kB / 0.6175 GB, free: 6.688 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007228/1.094, allocations: 51.98 kB / 0.6175 GB, free: 6.637 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/1.097, allocations: 134.8 kB / 0.6176 GB, free: 6.508 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005899/1.097, allocations: 153.6 kB / 0.6178 GB, free: 6.359 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002891/1.097, allocations: 87.97 kB / 0.6179 GB, free: 6.273 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004059/1.102, allocations: 1.788 MB / 0.6196 GB, free: 4.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.102, allocations: 0 / 0.6196 GB, free: 4.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006296/1.108, allocations: 1.01 MB / 0.6206 GB, free: 3.473 MB / 490.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.3314/1.439, allocations: 10.69 MB / 0.631 GB, free: 151.6 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.01531/1.455, allocations: 5.961 MB / 0.6369 GB, free: 150.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.455, allocations: 3.25 kB / 0.6369 GB, free: 150.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007111/1.462, allocations: 2.376 MB / 0.6392 GB, free: 149.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/1.465, allocations: 388.9 kB / 0.6396 GB, free: 149.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09397/1.559, allocations: 107.7 MB / 0.7447 GB, free: 55.01 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007553/1.567, allocations: 3.602 MB / 0.7483 GB, free: 53.64 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008162/1.575, allocations: 2.068 MB / 0.7503 GB, free: 53.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004441/1.579, allocations: 1.924 MB / 0.7521 GB, free: 51.92 MB / 490.7 MB Notification: Performance of SimCode: time 1.202e-06/1.579, allocations: 0 / 0.7521 GB, free: 51.92 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4524/2.032, allocations: 70.27 MB / 0.8208 GB, free: 142.7 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/2.032, allocations: 217.8 kB / 0.821 GB, free: 142.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.735/6.766, allocations: 0 / 0.821 GB, free: 142.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat