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 2.102/2.102, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004831/0.0004831, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1163, allocations: 48.71 MB / 331.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4821/0.5984, allocations: 95 MB / 426.4 MB, free: 6.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.5987, allocations: 75.97 kB / 426.5 MB, free: 5.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.697/1.296, allocations: 97.86 MB / 0.512 GB, free: 90.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.296, allocations: 0 / 0.512 GB, free: 90.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002081/1.296, allocations: 91.81 kB / 0.5121 GB, free: 90.07 MB / 410.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.02464/1.321, allocations: 4.81 MB / 0.5168 GB, free: 88.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/1.321, allocations: 7.406 kB / 0.5168 GB, free: 88.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005158/1.326, allocations: 0.9494 MB / 0.5177 GB, free: 87.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02739/1.353, allocations: 3.622 MB / 0.5213 GB, free: 87.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01804/1.371, allocations: 4.924 MB / 0.5261 GB, free: 86.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004302/1.372, allocations: 374.2 kB / 0.5264 GB, free: 86.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003119/1.375, allocations: 498.7 kB / 0.5269 GB, free: 86.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03715/1.412, allocations: 12.25 MB / 0.5389 GB, free: 82.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003018/1.413, allocations: 35.12 kB / 0.5389 GB, free: 82.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003224/1.416, allocations: 221.4 kB / 0.5391 GB, free: 82.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002876/1.419, allocations: 1.325 MB / 0.5404 GB, free: 82.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03321/1.452, allocations: 11.53 MB / 0.5517 GB, free: 77.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08442/1.536, allocations: 41.97 MB / 0.5927 GB, free: 37.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01605/1.553, allocations: 4.882 MB / 0.5974 GB, free: 32.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/1.568, allocations: 6.581 MB / 0.6039 GB, free: 25.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/1.568, allocations: 52.5 kB / 0.6039 GB, free: 25.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 6.031e-06/1.568, allocations: 4 kB / 0.6039 GB, free: 25.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.08262/1.651, allocations: 19.36 MB / 0.6228 GB, free: 5.613 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/1.651, allocations: 77.36 kB / 0.6229 GB, free: 5.523 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006074/1.657, allocations: 2.835 MB / 0.6257 GB, free: 2.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000569/1.657, allocations: 57.7 kB / 0.6257 GB, free: 2.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002714/1.66, allocations: 3.281 MB / 0.6289 GB, free: 15.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001799/1.662, allocations: 0.9371 MB / 0.6298 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008416/1.663, allocations: 120 kB / 0.63 GB, free: 14.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006501/1.664, allocations: 0.5713 MB / 0.6305 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007212/1.671, allocations: 2.46 MB / 0.6329 GB, free: 11.24 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/1.682, allocations: 5.83 MB / 0.6386 GB, free: 3.742 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3057/1.988, allocations: 3.772 MB / 0.6423 GB, free: 91.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001508/1.988, allocations: 35.22 kB / 0.6423 GB, free: 91.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03786/2.026, allocations: 9.979 MB / 0.6521 GB, free: 91.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/2.026, allocations: 55 kB / 0.6521 GB, free: 91.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000293/2.026, allocations: 122 kB / 0.6522 GB, free: 91.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01713/2.043, allocations: 2.349 MB / 0.6545 GB, free: 91.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008414/2.052, allocations: 1.358 MB / 0.6559 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02953/2.081, allocations: 11.08 MB / 0.6667 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006922/2.088, allocations: 330.1 kB / 0.667 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/2.09, allocations: 361.6 kB / 0.6674 GB, free: 89.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * 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 (733): * Single equations (assignments): 725 * 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.006807/2.097, allocations: 2.437 MB / 0.6697 GB, free: 88.81 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000711/2.098, allocations: 304.1 kB / 0.67 GB, free: 88.81 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/2.111, allocations: 4.628 MB / 0.6745 GB, free: 87.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/2.111, allocations: 54.41 kB / 0.6746 GB, free: 87.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/2.111, allocations: 7.516 kB / 0.6746 GB, free: 87.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.747e-05/2.111, allocations: 11.02 kB / 0.6746 GB, free: 87.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03054/2.141, allocations: 10.84 MB / 0.6852 GB, free: 83.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-05/2.142, allocations: 10.77 kB / 0.6852 GB, free: 83.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003734/2.145, allocations: 412.6 kB / 0.6856 GB, free: 83.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003559/2.149, allocations: 0.6953 MB / 0.6863 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006439/2.15, allocations: 57.17 kB / 0.6863 GB, free: 83.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003906/2.153, allocations: 2.442 MB / 0.6887 GB, free: 81.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/2.154, allocations: 11.38 kB / 0.6887 GB, free: 81.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01693/2.17, allocations: 7.459 MB / 0.696 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00099/2.172, allocations: 356.2 kB / 0.6963 GB, free: 78.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/2.173, allocations: 46.95 kB / 0.6964 GB, free: 78.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002682/2.175, allocations: 140.5 kB / 0.6965 GB, free: 78.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005849/2.176, allocations: 132.7 kB / 0.6967 GB, free: 78.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/2.176, allocations: 75.28 kB / 0.6967 GB, free: 78.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004265/2.18, allocations: 1.927 MB / 0.6986 GB, free: 77.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.71e-07/2.18, allocations: 0 / 0.6986 GB, free: 77.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00708/2.188, allocations: 1.136 MB / 0.6997 GB, free: 77.58 MB / 426.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.01854/2.206, allocations: 9.082 MB / 0.7086 GB, free: 72.97 MB / 426.7 MB [/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: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: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.01572/2.222, allocations: 6.138 MB / 0.7146 GB, free: 69.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/2.222, allocations: 3.969 kB / 0.7146 GB, free: 69.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007108/2.229, allocations: 2.527 MB / 0.7171 GB, free: 67.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003359/2.232, allocations: 424.5 kB / 0.7175 GB, free: 67.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4472/2.68, allocations: 117.5 MB / 0.8322 GB, free: 113.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00998/2.69, allocations: 3.88 MB / 0.836 GB, free: 112.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005661/2.695, allocations: 2.176 MB / 0.8381 GB, free: 112.4 MB / 458.7 MB Notification: Performance of SimCode: time 9.61e-07/2.695, allocations: 0 / 0.8381 GB, free: 112.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.355/8.05, allocations: 141.6 MB / 0.9764 GB, free: 102.8 MB / 458.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