Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.813/1.813, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004331/0.0004333, allocations: 16 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3529, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.05127/0.4043, allocations: 34.84 MB / 366.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02449/0.4288, allocations: 8.683 MB / 374.8 MB, free: 2.902 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00727/0.4361, allocations: 167.6 kB / 375 MB, free: 2.738 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006368/0.4425, allocations: 1.793 MB / 376.8 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0192/0.4618, allocations: 5.147 MB / 381.9 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00322/0.4651, allocations: 0.503 MB / 382.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005977/0.4711, allocations: 2.383 MB / 384.8 MB, free: 8.883 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008799/0.4799, allocations: 4.302 MB / 389.1 MB, free: 4.527 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.4821, allocations: 1.043 MB / 390.1 MB, free: 3.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002736/0.4848, allocations: 1.425 MB / 391.6 MB, free: 2.051 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007934/0.4857, allocations: 164 kB / 391.7 MB, free: 1.891 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002656/0.4883, allocations: 0.909 MB / 392.6 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002517/0.4909, allocations: 1.687 MB / 394.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001332/0.4922, allocations: 0.9361 MB / 395.2 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009781/0.502, allocations: 6.313 MB / 401.6 MB, free: 8.016 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.5021, allocations: 0 / 401.6 MB, free: 8.016 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.5021, allocations: 0 / 401.6 MB, free: 8.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002133/0.5023, allocations: 0 / 401.6 MB, free: 8.016 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.01492/0.5173, allocations: 4.544 MB / 406.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5173, allocations: 12.02 kB / 406.1 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002511/0.5199, allocations: 0.881 MB / 407 MB, free: 2.496 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02305/0.5429, allocations: 3.85 MB / 410.8 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007392/0.5504, allocations: 2.531 MB / 413.4 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/0.5507, allocations: 266.8 kB / 413.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/0.5523, allocations: 359.8 kB / 414 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03161/0.5839, allocations: 12.66 MB / 426.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001609/0.5842, allocations: 27.75 kB / 426.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000957/0.5851, allocations: 167.8 kB / 426.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00767/0.5928, allocations: 2.75 MB / 429.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03437/0.6272, allocations: 11.59 MB / 441.2 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0878/0.7151, allocations: 40.21 MB / 481.4 MB, free: 6.617 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01677/0.7319, allocations: 4.9 MB / 486.3 MB, free: 1.488 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2756/1.008, allocations: 6.55 MB / 492.8 MB, free: 128.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/1.008, allocations: 51.03 kB / 492.9 MB, free: 128.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 6.883e-06/1.008, allocations: 1.156 kB / 492.9 MB, free: 128.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.08361/1.091, allocations: 19.58 MB / 0.5005 GB, free: 121.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/1.091, allocations: 72.84 kB / 0.5005 GB, free: 121.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005241/1.097, allocations: 3.288 MB / 0.5037 GB, free: 120.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00051/1.097, allocations: 57.91 kB / 0.5038 GB, free: 120.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00192/1.099, allocations: 3.275 MB / 0.507 GB, free: 117.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001168/1.1, allocations: 0.9468 MB / 0.5079 GB, free: 116.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004888/1.101, allocations: 116 kB / 0.508 GB, free: 116.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003537/1.101, allocations: 0.5865 MB / 0.5086 GB, free: 115.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005107/1.106, allocations: 2.46 MB / 0.511 GB, free: 113 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006859/1.113, allocations: 5.851 MB / 0.5167 GB, free: 105.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007675/1.121, allocations: 3.779 MB / 0.5204 GB, free: 101.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/1.121, allocations: 32 kB / 0.5204 GB, free: 101.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03137/1.152, allocations: 10.04 MB / 0.5302 GB, free: 91.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.228e-05/1.153, allocations: 52.97 kB / 0.5303 GB, free: 91.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/1.153, allocations: 120 kB / 0.5304 GB, free: 91.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01615/1.169, allocations: 2.422 MB / 0.5328 GB, free: 89.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007541/1.176, allocations: 1.357 MB / 0.5341 GB, free: 87.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02819/1.205, allocations: 11.16 MB / 0.545 GB, free: 76.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005642/1.21, allocations: 327.7 kB / 0.5453 GB, free: 76.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008016/1.211, allocations: 361.1 kB / 0.5457 GB, free: 75.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (734): * Single equations (assignments): 726 * Array equations: 6 * 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: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.005068/1.216, allocations: 2.436 MB / 0.548 GB, free: 73.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006824/1.217, allocations: 304.1 kB / 0.5483 GB, free: 73.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/1.228, allocations: 4.642 MB / 0.5529 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-05/1.228, allocations: 49.16 kB / 0.5529 GB, free: 68.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/1.228, allocations: 0 / 0.5529 GB, free: 68.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.333e-05/1.229, allocations: 15.95 kB / 0.5529 GB, free: 68.27 MB / 410.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 postOpt removeSimpleEquations (simulation): time 0.02576/1.254, allocations: 11.01 MB / 0.5637 GB, free: 57.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.254, allocations: 4 kB / 0.5637 GB, free: 57.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003419/1.258, allocations: 415.4 kB / 0.5641 GB, free: 56.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003481/1.261, allocations: 0.6971 MB / 0.5648 GB, free: 56.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002807/1.262, allocations: 47.98 kB / 0.5648 GB, free: 55.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/1.265, allocations: 2.444 MB / 0.5672 GB, free: 53.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.265, allocations: 12.09 kB / 0.5672 GB, free: 53.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01505/1.28, allocations: 7.116 MB / 0.5741 GB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009004/1.281, allocations: 361 kB / 0.5745 GB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008368/1.282, allocations: 51.98 kB / 0.5745 GB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/1.285, allocations: 133.3 kB / 0.5747 GB, free: 45.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000401/1.285, allocations: 137.7 kB / 0.5748 GB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/1.285, allocations: 73.14 kB / 0.5749 GB, free: 45.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003652/1.289, allocations: 2.014 MB / 0.5768 GB, free: 43.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.289, allocations: 0 / 0.5768 GB, free: 43.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006012/1.295, allocations: 1.149 MB / 0.578 GB, free: 42.24 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (206): * Single equations (assignments): 197 * 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.01648/1.311, allocations: 7.814 MB / 0.5856 GB, free: 34.3 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable freeMotionScalarInit.angle_1 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.1/Mechanics/MultiBody/Joints.mo:1990:5-1992:161:writable] Warning: Variable freeMotionScalarInit.angle_3 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.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0139/1.325, allocations: 6.14 MB / 0.5916 GB, free: 28.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.325, allocations: 0 / 0.5916 GB, free: 28.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006629/1.332, allocations: 2.537 MB / 0.5941 GB, free: 25.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/1.335, allocations: 417.2 kB / 0.5945 GB, free: 25.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.352/1.687, allocations: 37.49 MB / 0.6311 GB, free: 138.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007982/1.695, allocations: 3.874 MB / 0.6349 GB, free: 138 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004809/1.7, allocations: 2.177 MB / 0.637 GB, free: 137.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/1.7, allocations: 3.562 kB / 0.637 GB, free: 137.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.473/6.173, allocations: 141.9 MB / 0.7756 GB, free: 10.57 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat