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.FreeMotionScalarInit4.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.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.439/2.439, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004448/0.0004449, allocations: 16 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3405, allocations: 54.85 MB / 369.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1824/0.523, allocations: 101.7 MB / 471.1 MB, free: 4.859 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.5234, allocations: 87.91 kB / 471.2 MB, free: 4.773 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6739/1.197, allocations: 97.87 MB / 0.5557 GB, free: 15.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.276e-06/1.197, allocations: 0 / 0.5557 GB, free: 15.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002036/1.198, allocations: 95.92 kB / 0.5558 GB, free: 15.77 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02351/1.221, allocations: 4.818 MB / 0.5605 GB, free: 10.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/1.221, allocations: 8.031 kB / 0.5605 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004438/1.226, allocations: 0.9475 MB / 0.5614 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02701/1.253, allocations: 3.62 MB / 0.565 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01802/1.271, allocations: 4.913 MB / 0.5698 GB, free: 1.309 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004893/1.271, allocations: 381.8 kB / 0.5701 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003196/1.275, allocations: 0.492 MB / 0.5706 GB, free: 452 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04294/1.317, allocations: 12.24 MB / 0.5826 GB, free: 3.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004181/1.318, allocations: 39.66 kB / 0.5826 GB, free: 3.621 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003456/1.321, allocations: 223.8 kB / 0.5828 GB, free: 3.402 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003479/1.325, allocations: 1.322 MB / 0.5841 GB, free: 2.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03845/1.363, allocations: 11.52 MB / 0.5954 GB, free: 6.539 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1246/1.488, allocations: 41.98 MB / 0.6364 GB, free: 11.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02473/1.513, allocations: 4.881 MB / 0.6411 GB, free: 6.414 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.376/1.889, allocations: 6.576 MB / 0.6475 GB, free: 115.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/1.889, allocations: 54.28 kB / 0.6476 GB, free: 115.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=231): time 7.424e-06/1.889, allocations: 4.344 kB / 0.6476 GB, free: 115.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=252): time 0.08442/1.973, allocations: 19.36 MB / 0.6665 GB, free: 113.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/1.974, allocations: 75.77 kB / 0.6666 GB, free: 113.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00622/1.98, allocations: 2.843 MB / 0.6694 GB, free: 112.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005439/1.98, allocations: 60.78 kB / 0.6694 GB, free: 112.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002599/1.983, allocations: 3.275 MB / 0.6726 GB, free: 111 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001574/1.985, allocations: 0.9389 MB / 0.6735 GB, free: 110.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007892/1.985, allocations: 122.8 kB / 0.6736 GB, free: 110.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005662/1.986, allocations: 0.5748 MB / 0.6742 GB, free: 110.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006299/1.992, allocations: 2.456 MB / 0.6766 GB, free: 110.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008829/2.001, allocations: 5.827 MB / 0.6823 GB, free: 105.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008792/2.01, allocations: 3.775 MB / 0.686 GB, free: 105.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001436/2.01, allocations: 39.48 kB / 0.686 GB, free: 105.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03372/2.044, allocations: 9.975 MB / 0.6958 GB, free: 102.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/2.044, allocations: 56.75 kB / 0.6958 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001966/2.044, allocations: 117.6 kB / 0.6959 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01614/2.061, allocations: 2.347 MB / 0.6982 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008143/2.069, allocations: 1.362 MB / 0.6996 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02795/2.097, allocations: 11.1 MB / 0.7104 GB, free: 97.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006584/2.103, allocations: 333 kB / 0.7107 GB, free: 97.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001485/2.105, allocations: 360 kB / 0.711 GB, free: 96.96 MB / 474.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.00687/2.112, allocations: 2.436 MB / 0.7134 GB, free: 94.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007704/2.113, allocations: 304 kB / 0.7137 GB, free: 94.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01351/2.126, allocations: 4.633 MB / 0.7182 GB, free: 90.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/2.126, allocations: 48.98 kB / 0.7183 GB, free: 90.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/2.126, allocations: 3.5 kB / 0.7183 GB, free: 90.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.656e-05/2.126, allocations: 11.2 kB / 0.7183 GB, free: 90.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03118/2.158, allocations: 10.84 MB / 0.7289 GB, free: 81.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-05/2.158, allocations: 7.797 kB / 0.7289 GB, free: 81.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003795/2.162, allocations: 416.6 kB / 0.7293 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003599/2.165, allocations: 0.6891 MB / 0.73 GB, free: 80.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006224/2.166, allocations: 57.05 kB / 0.73 GB, free: 80.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003846/2.17, allocations: 2.444 MB / 0.7324 GB, free: 78.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/2.17, allocations: 11.94 kB / 0.7324 GB, free: 78.47 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/2.187, allocations: 7.464 MB / 0.7397 GB, free: 71.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009583/2.188, allocations: 354.8 kB / 0.74 GB, free: 71.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001159/2.19, allocations: 47.47 kB / 0.7401 GB, free: 71.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002997/2.193, allocations: 137.1 kB / 0.7402 GB, free: 71.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006504/2.193, allocations: 147 kB / 0.7404 GB, free: 71.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002579/2.194, allocations: 64.27 kB / 0.7404 GB, free: 71.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004666/2.198, allocations: 1.93 MB / 0.7423 GB, free: 69.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.198, allocations: 0 / 0.7423 GB, free: 69.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008011/2.206, allocations: 1.134 MB / 0.7434 GB, free: 68.35 MB / 474.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.01812/2.225, allocations: 9.075 MB / 0.7523 GB, free: 60.03 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960: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.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.2/Mechanics/MultiBody/Joints.mo:1955:5-1957: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.0202/2.245, allocations: 6.141 MB / 0.7583 GB, free: 54.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/2.245, allocations: 4 kB / 0.7583 GB, free: 54.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009678/2.255, allocations: 2.53 MB / 0.7607 GB, free: 52.42 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004635/2.259, allocations: 420.2 kB / 0.7612 GB, free: 52.08 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4729/2.732, allocations: 117.5 MB / 0.8759 GB, free: 88.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008721/2.741, allocations: 3.883 MB / 0.8797 GB, free: 87.51 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005601/2.747, allocations: 2.176 MB / 0.8818 GB, free: 87.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/2.747, allocations: 0 / 0.8818 GB, free: 87.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.357/8.104, allocations: 141.6 MB / 1.02 GB, free: 133.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat