Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.64/2.64, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.233e-05/2.246e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3657, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1755/0.5412, allocations: 97.23 MB / 455.4 MB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.5416, allocations: 75.91 kB / 455.4 MB, free: 13.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6902/1.232, allocations: 89.4 MB / 0.5321 GB, free: 35.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.232, allocations: 0 / 0.5321 GB, free: 35.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001907/1.232, allocations: 83.98 kB / 0.5321 GB, free: 35.49 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.02247/1.255, allocations: 4.297 MB / 0.5363 GB, free: 31.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/1.255, allocations: 12.03 kB / 0.5364 GB, free: 31.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02707/1.282, allocations: 3.582 MB / 0.5399 GB, free: 27.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01778/1.3, allocations: 4.686 MB / 0.5444 GB, free: 22.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/1.3, allocations: 148 kB / 0.5446 GB, free: 22.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002901/1.303, allocations: 255.9 kB / 0.5448 GB, free: 22.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01838/1.321, allocations: 7.937 MB / 0.5526 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02843/1.35, allocations: 10.36 MB / 0.5627 GB, free: 3.605 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002304/1.35, allocations: 35.7 kB / 0.5627 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002492/1.353, allocations: 12 kB / 0.5627 GB, free: 3.559 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002682/1.355, allocations: 1.251 MB / 0.564 GB, free: 2.301 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08662/1.442, allocations: 35.35 MB / 0.5985 GB, free: 14.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008715/1.451, allocations: 4.094 MB / 0.6025 GB, free: 10.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005/1.456, allocations: 2.171 MB / 0.6046 GB, free: 7.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001879/1.458, allocations: 1.319 MB / 0.6059 GB, free: 6.297 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.826e-05/1.458, allocations: 52.56 kB / 0.6059 GB, free: 6.238 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 6.603e-06/1.458, allocations: 4 kB / 0.6059 GB, free: 6.234 MB / 442.7 MB Notification: Performance of matching and sorting (n=258): time 0.04619/1.504, allocations: 10.5 MB / 0.6162 GB, free: 11.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/1.504, allocations: 77.41 kB / 0.6163 GB, free: 11.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006068/1.51, allocations: 2.396 MB / 0.6186 GB, free: 9.188 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006123/1.511, allocations: 25.7 kB / 0.6186 GB, free: 9.156 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00316/1.514, allocations: 3.048 MB / 0.6216 GB, free: 6.066 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001712/1.516, allocations: 0.9248 MB / 0.6225 GB, free: 5.129 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006746/1.517, allocations: 0 / 0.6225 GB, free: 5.129 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006586/1.517, allocations: 0.5751 MB / 0.6231 GB, free: 4.543 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006072/1.523, allocations: 2.191 MB / 0.6252 GB, free: 2.348 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3421/1.865, allocations: 5.569 MB / 0.6306 GB, free: 106 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/1.879, allocations: 3.545 MB / 0.6341 GB, free: 106 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003576/1.88, allocations: 34.84 kB / 0.6341 GB, free: 106 MB / 458.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.03293/1.913, allocations: 7.844 MB / 0.6418 GB, free: 105.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/1.913, allocations: 61.12 kB / 0.6419 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001858/1.913, allocations: 118.3 kB / 0.642 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006567/1.92, allocations: 1.032 MB / 0.643 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008646/1.929, allocations: 1.397 MB / 0.6443 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/1.932, allocations: 2.402 MB / 0.6467 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006285/1.939, allocations: 215.5 kB / 0.6469 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001587/1.94, allocations: 358.7 kB / 0.6472 GB, free: 104.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (757): * Single equations (assignments): 748 * 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.001729/1.942, allocations: 402.7 kB / 0.6476 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0133/1.955, allocations: 4.208 MB / 0.6517 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009712/1.956, allocations: 278.7 kB / 0.652 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/1.971, allocations: 4.739 MB / 0.6566 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/1.971, allocations: 47.83 kB / 0.6567 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/1.971, allocations: 0 / 0.6567 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.783e-05/1.972, allocations: 10.27 kB / 0.6567 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03198/2.004, allocations: 10.3 MB / 0.6667 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.953e-05/2.004, allocations: 11.28 kB / 0.6667 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003612/2.007, allocations: 414.2 kB / 0.6671 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005145/2.012, allocations: 0.597 MB / 0.6677 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005533/2.013, allocations: 31.86 kB / 0.6678 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/2.016, allocations: 2.011 MB / 0.6697 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.438e-05/2.016, allocations: 14.38 kB / 0.6697 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01763/2.034, allocations: 7.606 MB / 0.6772 GB, free: 96.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009407/2.035, allocations: 330.2 kB / 0.6775 GB, free: 96.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/2.036, allocations: 14.98 kB / 0.6775 GB, free: 96.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002726/2.039, allocations: 106.5 kB / 0.6776 GB, free: 96.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006533/2.039, allocations: 155.2 kB / 0.6777 GB, free: 96.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002503/2.04, allocations: 80.69 kB / 0.6778 GB, free: 96.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003562/2.043, allocations: 1.567 MB / 0.6793 GB, free: 96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.042e-06/2.043, allocations: 0 / 0.6793 GB, free: 96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007273/2.05, allocations: 0.8698 MB / 0.6802 GB, free: 95.99 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 200 * 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.0189/2.069, allocations: 10.66 MB / 0.6906 GB, free: 86.91 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01424/2.084, allocations: 5.74 MB / 0.6962 GB, free: 81.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.614e-05/2.084, allocations: 4 kB / 0.6962 GB, free: 81.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006432/2.09, allocations: 2.305 MB / 0.6985 GB, free: 79.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/2.093, allocations: 292.9 kB / 0.6987 GB, free: 79.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03497/2.128, allocations: 11.07 MB / 0.7095 GB, free: 69.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008015/2.136, allocations: 3.606 MB / 0.7131 GB, free: 66.94 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005169/2.142, allocations: 2 MB / 0.715 GB, free: 65.09 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/2.142, allocations: 0 / 0.715 GB, free: 65.09 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.87/7.011, allocations: 138.6 MB / 0.8504 GB, free: 131.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat