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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.41/2.41, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006879/0.0006878, allocations: 16 kB / 314.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.345, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2172/0.5622, allocations: 97.98 MB / 467.3 MB, free: 8.469 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004151/0.5627, allocations: 87.89 kB / 467.4 MB, free: 8.383 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6316/1.194, allocations: 90.92 MB / 0.5453 GB, free: 25.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.256e-06/1.194, allocations: 0 / 0.5453 GB, free: 25.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001817/1.195, allocations: 76 kB / 0.5453 GB, free: 25.71 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.02235/1.217, allocations: 4.433 MB / 0.5497 GB, free: 21.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/1.217, allocations: 8.031 kB / 0.5497 GB, free: 21.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003774/1.221, allocations: 0.8653 MB / 0.5505 GB, free: 20.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02626/1.247, allocations: 3.578 MB / 0.554 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01707/1.264, allocations: 4.725 MB / 0.5586 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004065/1.265, allocations: 332.8 kB / 0.5589 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00287/1.268, allocations: 447.7 kB / 0.5594 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03326/1.301, allocations: 11.49 MB / 0.5706 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002338/1.301, allocations: 23.81 kB / 0.5706 GB, free: 15.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002473/1.304, allocations: 199.9 kB / 0.5708 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/1.307, allocations: 1.251 MB / 0.572 GB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03484/1.342, allocations: 11.1 MB / 0.5829 GB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08747/1.429, allocations: 38.03 MB / 0.62 GB, free: 11.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01509/1.444, allocations: 4.686 MB / 0.6246 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001877/1.446, allocations: 1.315 MB / 0.6259 GB, free: 5.266 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.203e-05/1.446, allocations: 64.58 kB / 0.6259 GB, free: 5.195 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 6.482e-06/1.446, allocations: 0 / 0.6259 GB, free: 5.195 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.06985/1.516, allocations: 14.33 MB / 0.6399 GB, free: 6.664 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/1.516, allocations: 77.34 kB / 0.64 GB, free: 6.574 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005695/1.522, allocations: 2.498 MB / 0.6424 GB, free: 4.066 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000559/1.523, allocations: 65.7 kB / 0.6425 GB, free: 3.996 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002968/1.526, allocations: 2.952 MB / 0.6454 GB, free: 1.004 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.527, allocations: 0.9404 MB / 0.6463 GB, free: 52 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.3249/1.852, allocations: 109.6 kB / 0.6464 GB, free: 120.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008018/1.853, allocations: 0.5557 MB / 0.6469 GB, free: 120.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006945/1.86, allocations: 2.274 MB / 0.6492 GB, free: 120.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008608/1.869, allocations: 5.408 MB / 0.6544 GB, free: 116.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007913/1.877, allocations: 3.519 MB / 0.6579 GB, free: 116.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001188/1.877, allocations: 32.88 kB / 0.6579 GB, free: 116.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02386/1.901, allocations: 8.318 MB / 0.666 GB, free: 116 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.673e-05/1.901, allocations: 52.28 kB / 0.6661 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00017/1.901, allocations: 112.1 kB / 0.6662 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006112/1.907, allocations: 1.029 MB / 0.6672 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007862/1.915, allocations: 1.314 MB / 0.6685 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/1.919, allocations: 2.495 MB / 0.6709 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005433/1.924, allocations: 313.2 kB / 0.6712 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001217/1.926, allocations: 339 kB / 0.6715 GB, free: 114.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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 (710): * Single equations (assignments): 701 * 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.00592/1.932, allocations: 2.266 MB / 0.6738 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006348/1.932, allocations: 282.1 kB / 0.674 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.947, allocations: 4.9 MB / 0.6788 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/1.948, allocations: 47.89 kB / 0.6789 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/1.948, allocations: 4.844 kB / 0.6789 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.419e-05/1.948, allocations: 10.83 kB / 0.6789 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03078/1.978, allocations: 11.5 MB / 0.6901 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.37e-05/1.979, allocations: 10.62 kB / 0.6901 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003468/1.982, allocations: 410.7 kB / 0.6905 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004873/1.987, allocations: 0.611 MB / 0.6911 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005869/1.988, allocations: 65.12 kB / 0.6912 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/1.991, allocations: 2.093 MB / 0.6932 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/1.991, allocations: 15.34 kB / 0.6932 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01862/2.01, allocations: 7.724 MB / 0.7008 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008103/2.01, allocations: 330.1 kB / 0.7011 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008394/2.011, allocations: 56.33 kB / 0.7011 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002276/2.014, allocations: 130.6 kB / 0.7013 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005078/2.014, allocations: 159.5 kB / 0.7014 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000239/2.014, allocations: 71.53 kB / 0.7015 GB, free: 104.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003563/2.018, allocations: 1.71 MB / 0.7031 GB, free: 103.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.02e-07/2.018, allocations: 2.625 kB / 0.7032 GB, free: 103.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006251/2.024, allocations: 0.9959 MB / 0.7041 GB, free: 103.1 MB / 474.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.01779/2.042, allocations: 10.69 MB / 0.7146 GB, free: 93.06 MB / 474.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.01403/2.056, allocations: 5.973 MB / 0.7204 GB, free: 87.85 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/2.056, allocations: 0 / 0.7204 GB, free: 87.85 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006158/2.062, allocations: 2.369 MB / 0.7227 GB, free: 85.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/2.065, allocations: 395.2 kB / 0.7231 GB, free: 85.42 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0935/2.159, allocations: 108.2 MB / 0.8288 GB, free: 9.695 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008918/2.168, allocations: 3.627 MB / 0.8323 GB, free: 6.914 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005505/2.173, allocations: 1.99 MB / 0.8343 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/2.173, allocations: 0 / 0.8343 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.832/7.006, allocations: 139.1 MB / 0.9701 GB, free: 56.59 MB / 0.4948 GB 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