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.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.397/2.397, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.258e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3589, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2062/0.5652, allocations: 100.9 MB / 459.1 MB, free: 9.766 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5655, allocations: 75.97 kB / 459.1 MB, free: 9.691 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7601/1.326, allocations: 95.68 MB / 0.5418 GB, free: 25.19 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.326, allocations: 3.938 kB / 0.5418 GB, free: 25.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002207/1.326, allocations: 88 kB / 0.5419 GB, free: 25.1 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02376/1.35, allocations: 4.639 MB / 0.5464 GB, free: 20.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/1.35, allocations: 15.97 kB / 0.5464 GB, free: 20.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02718/1.377, allocations: 3.62 MB / 0.55 GB, free: 16.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01829/1.395, allocations: 4.882 MB / 0.5548 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003523/1.396, allocations: 156.3 kB / 0.5549 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002953/1.399, allocations: 288 kB / 0.5552 GB, free: 11.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01981/1.419, allocations: 8.427 MB / 0.5634 GB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03442/1.453, allocations: 11.12 MB / 0.5743 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002905/1.453, allocations: 35.75 kB / 0.5743 GB, free: 7.254 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002705/1.456, allocations: 16 kB / 0.5743 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003635/1.46, allocations: 1.314 MB / 0.5756 GB, free: 5.918 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1119/1.572, allocations: 39.39 MB / 0.6141 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009055/1.581, allocations: 4.282 MB / 0.6182 GB, free: 9.195 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005473/1.586, allocations: 2.289 MB / 0.6205 GB, free: 6.898 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002001/1.588, allocations: 1.327 MB / 0.6218 GB, free: 5.352 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.456e-05/1.589, allocations: 56.59 kB / 0.6218 GB, free: 5.285 MB / 458.7 MB Notification: Performance of pre-optimization done (n=262): time 6.913e-06/1.589, allocations: 0 / 0.6218 GB, free: 5.285 MB / 458.7 MB Notification: Performance of matching and sorting (n=271): time 0.3699/1.959, allocations: 14.35 MB / 0.6358 GB, free: 104.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/1.959, allocations: 100.3 kB / 0.6359 GB, free: 104.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005503/1.964, allocations: 2.578 MB / 0.6385 GB, free: 103.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006404/1.965, allocations: 25.7 kB / 0.6385 GB, free: 103.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002573/1.967, allocations: 3.293 MB / 0.6417 GB, free: 102.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001547/1.969, allocations: 0.9699 MB / 0.6426 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006622/1.97, allocations: 3.312 kB / 0.6426 GB, free: 101.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004656/1.97, allocations: 0.5966 MB / 0.6432 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005241/1.975, allocations: 2.337 MB / 0.6455 GB, free: 101.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007927/1.983, allocations: 5.935 MB / 0.6513 GB, free: 96.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008204/1.992, allocations: 3.776 MB / 0.655 GB, free: 96.46 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001489/1.992, allocations: 36.41 kB / 0.655 GB, free: 96.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.02449/2.016, allocations: 8.412 MB / 0.6632 GB, free: 95.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/2.017, allocations: 65.27 kB / 0.6633 GB, free: 95.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/2.017, allocations: 128.6 kB / 0.6634 GB, free: 95.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005808/2.023, allocations: 1.136 MB / 0.6645 GB, free: 95.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009166/2.032, allocations: 1.488 MB / 0.666 GB, free: 95.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008201/2.04, allocations: 4.481 MB / 0.6704 GB, free: 93.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006282/2.046, allocations: 220.6 kB / 0.6706 GB, free: 93.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/2.048, allocations: 377 kB / 0.6709 GB, free: 93.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (801): * Single equations (assignments): 793 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.001582/2.05, allocations: 436.4 kB / 0.6714 GB, free: 93.12 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01105/2.061, allocations: 4.191 MB / 0.6754 GB, free: 91.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/2.062, allocations: 302.9 kB / 0.6757 GB, free: 91.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01296/2.075, allocations: 4.775 MB / 0.6804 GB, free: 89.99 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001223/2.075, allocations: 49.58 kB / 0.6804 GB, free: 89.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/2.075, allocations: 3.906 kB / 0.6805 GB, free: 89.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.229e-05/2.075, allocations: 15.25 kB / 0.6805 GB, free: 89.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02826/2.103, allocations: 10.59 MB / 0.6908 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-05/2.104, allocations: 8 kB / 0.6908 GB, free: 85.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003965/2.107, allocations: 449.5 kB / 0.6912 GB, free: 85.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00344/2.111, allocations: 0.6647 MB / 0.6919 GB, free: 84.73 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005852/2.112, allocations: 30.03 kB / 0.6919 GB, free: 84.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003689/2.115, allocations: 2.345 MB / 0.6942 GB, free: 82.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/2.115, allocations: 19.72 kB / 0.6942 GB, free: 82.53 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01716/2.133, allocations: 8.02 MB / 0.7021 GB, free: 74.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009526/2.134, allocations: 348.4 kB / 0.7024 GB, free: 74.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/2.135, allocations: 12 kB / 0.7024 GB, free: 74.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003034/2.138, allocations: 111.2 kB / 0.7025 GB, free: 74.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007152/2.139, allocations: 170.2 kB / 0.7027 GB, free: 74.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002637/2.139, allocations: 80.8 kB / 0.7028 GB, free: 74.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003464/2.142, allocations: 1.687 MB / 0.7044 GB, free: 72.85 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.52e-07/2.142, allocations: 0 / 0.7044 GB, free: 72.85 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007502/2.15, allocations: 0.9392 MB / 0.7053 GB, free: 71.92 MB / 458.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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 213 * 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.01729/2.167, allocations: 10.92 MB / 0.716 GB, free: 61.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01324/2.18, allocations: 5.78 MB / 0.7216 GB, free: 56.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/2.181, allocations: 0 / 0.7216 GB, free: 56.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006931/2.188, allocations: 2.512 MB / 0.7241 GB, free: 54.13 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003045/2.191, allocations: 313.6 kB / 0.7244 GB, free: 53.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03442/2.225, allocations: 11.85 MB / 0.7359 GB, free: 43.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00789/2.233, allocations: 3.844 MB / 0.7397 GB, free: 40.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005551/2.239, allocations: 2.198 MB / 0.7418 GB, free: 38.52 MB / 458.7 MB Notification: Performance of SimCode: time 1.814e-06/2.239, allocations: 0 / 0.7418 GB, free: 38.52 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.852/7.09, allocations: 139.3 MB / 0.8779 GB, free: 103.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat