Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.554/2.554, allocations: 235 MB / 248.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.502e-05/5.526e-05, allocations: 4 kB / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4776/0.4777, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1751/0.6529, allocations: 95.48 MB / 460.1 MB, free: 1.016 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.6533, allocations: 75.97 kB / 460.2 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7367/1.39, allocations: 96.23 MB / 0.5434 GB, free: 103.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.39, allocations: 0 / 0.5434 GB, free: 103.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003455/1.39, allocations: 94.8 kB / 0.5435 GB, free: 103.1 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.04501/1.435, allocations: 5.823 MB / 0.5492 GB, free: 101.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/1.436, allocations: 9.875 kB / 0.5492 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004277/1.44, allocations: 0.8662 MB / 0.55 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02549/1.465, allocations: 2.921 MB / 0.5529 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02718/1.493, allocations: 7.198 MB / 0.5599 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005191/1.493, allocations: 362.1 kB / 0.5602 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002735/1.496, allocations: 480.6 kB / 0.5607 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03594/1.532, allocations: 12.08 MB / 0.5725 GB, free: 96.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003924/1.532, allocations: 78.34 kB / 0.5726 GB, free: 96.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002352/1.535, allocations: 234.7 kB / 0.5728 GB, free: 96.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003011/1.538, allocations: 1.195 MB / 0.574 GB, free: 96.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0316/1.569, allocations: 10.14 MB / 0.5839 GB, free: 93.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09087/1.66, allocations: 57.06 MB / 0.6396 GB, free: 46.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02368/1.684, allocations: 5.015 MB / 0.6445 GB, free: 41.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005671/1.69, allocations: 2.359 MB / 0.6468 GB, free: 38.92 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02793/1.718, allocations: 11.14 MB / 0.6577 GB, free: 27.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/1.718, allocations: 63.8 kB / 0.6577 GB, free: 27.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=198): time 6.212e-06/1.718, allocations: 0 / 0.6577 GB, free: 27.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=237): time 0.0929/1.811, allocations: 20.57 MB / 0.6778 GB, free: 6.684 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003544/1.814, allocations: 4.601 MB / 0.6823 GB, free: 1.613 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/1.825, allocations: 3.976 MB / 0.6862 GB, free: 13.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000862/1.826, allocations: 64.83 kB / 0.6863 GB, free: 13.56 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003988/1.83, allocations: 3.39 MB / 0.6896 GB, free: 10.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002039/1.832, allocations: 0.9491 MB / 0.6905 GB, free: 9.234 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/1.833, allocations: 144 kB / 0.6906 GB, free: 9.094 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008007/1.834, allocations: 0.6208 MB / 0.6912 GB, free: 8.465 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009337/1.844, allocations: 3.044 MB / 0.6942 GB, free: 5.418 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01338/1.857, allocations: 7.277 MB / 0.7013 GB, free: 12.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/1.87, allocations: 4.645 MB / 0.7058 GB, free: 7.406 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001516/1.87, allocations: 44 kB / 0.7059 GB, free: 7.363 MB / 490.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.3903/2.26, allocations: 12.7 MB / 0.7183 GB, free: 114.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/2.26, allocations: 69.12 kB / 0.7184 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02647/2.287, allocations: 6.369 MB / 0.7246 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02051/2.307, allocations: 3.349 MB / 0.7279 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01078/2.318, allocations: 1.7 MB / 0.7295 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02719/2.346, allocations: 15.93 MB / 0.7451 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01204/2.358, allocations: 0.7626 MB / 0.7458 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002135/2.36, allocations: 450 kB / 0.7462 GB, free: 106.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (882): * Single equations (assignments): 862 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003566/2.363, allocations: 0.6606 MB / 0.7469 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/2.365, allocations: 410.6 kB / 0.7473 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0272/2.392, allocations: 6.95 MB / 0.7541 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02453/2.416, allocations: 6.302 MB / 0.7602 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.877e-05/2.417, allocations: 14.67 kB / 0.7602 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.157e-05/2.417, allocations: 10.22 kB / 0.7602 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04924/2.466, allocations: 14.93 MB / 0.7748 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.194e-05/2.466, allocations: 5.781 kB / 0.7748 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004038/2.47, allocations: 424.4 kB / 0.7752 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01847/2.489, allocations: 3.336 MB / 0.7785 GB, free: 99.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008322/2.489, allocations: 79.06 kB / 0.7786 GB, free: 99.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02943/2.519, allocations: 16.55 MB / 0.7947 GB, free: 89.57 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003574/2.523, allocations: 4.41 MB / 0.799 GB, free: 85.32 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03269/2.555, allocations: 10.83 MB / 0.8096 GB, free: 78.47 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/2.557, allocations: 486.3 kB / 0.8101 GB, free: 78.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002061/2.559, allocations: 68.08 kB / 0.8101 GB, free: 77.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006302/2.566, allocations: 338.5 kB / 0.8105 GB, free: 77.63 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/2.567, allocations: 187.6 kB / 0.8106 GB, free: 77.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003599/2.567, allocations: 77.05 kB / 0.8107 GB, free: 77.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007257/2.575, allocations: 2.745 MB / 0.8134 GB, free: 74.63 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.81e-07/2.575, allocations: 0 / 0.8134 GB, free: 74.63 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01026/2.585, allocations: 1.497 MB / 0.8149 GB, free: 73.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03369/2.619, allocations: 12.4 MB / 0.827 GB, free: 60.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02464/2.643, allocations: 9.068 MB / 0.8358 GB, free: 51.69 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/2.643, allocations: 2.844 kB / 0.8358 GB, free: 51.69 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01484/2.658, allocations: 4.542 MB / 0.8403 GB, free: 46.99 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004494/2.663, allocations: 0.4894 MB / 0.8407 GB, free: 46.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03818/2.701, allocations: 13.49 MB / 0.8539 GB, free: 33.15 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007308/2.708, allocations: 3.73 MB / 0.8575 GB, free: 29.41 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005254/2.714, allocations: 2.264 MB / 0.8598 GB, free: 27.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.323e-06/2.714, allocations: 0 / 0.8598 GB, free: 27.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.923/9.637, allocations: 307 MB / 1.16 GB, free: 131.1 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat