Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.074/2.074, allocations: 209.2 MB / 224.8 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006382/0.0006384, allocations: 16 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3594, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.FreeBodies2): time 0.1531/0.5125, allocations: 84.83 MB / 416.1 MB, free: 9.492 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0585/0.5711, allocations: 19.12 MB / 435.2 MB, free: 6.305 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0185/0.5896, allocations: 430.9 kB / 435.6 MB, free: 5.883 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01668/0.6064, allocations: 4.336 MB / 440 MB, free: 1.527 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05157/0.658, allocations: 12.07 MB / 452 MB, free: 5.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009263/0.6673, allocations: 1.186 MB / 453.2 MB, free: 4.242 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.4381/1.106, allocations: 20.31 MB / 473.5 MB, free: 21.24 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02094/1.127, allocations: 9.422 MB / 483 MB, free: 20.47 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005381/1.132, allocations: 2.04 MB / 485 MB, free: 20.46 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005752/1.138, allocations: 2.643 MB / 487.7 MB, free: 20.46 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002122/1.14, allocations: 267.4 kB / 487.9 MB, free: 20.46 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00447/1.144, allocations: 1.124 MB / 489 MB, free: 20.46 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005342/1.15, allocations: 3.035 MB / 492.1 MB, free: 20.45 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003436/1.153, allocations: 1.52 MB / 493.6 MB, free: 20.42 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01545/1.169, allocations: 10.44 MB / 0.4922 GB, free: 17.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/1.169, allocations: 0 / 0.4922 GB, free: 17.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.166e-06/1.169, allocations: 0 / 0.4922 GB, free: 17.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005354/1.169, allocations: 0 / 0.4922 GB, free: 17.29 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.03018/1.2, allocations: 7.812 MB / 0.4998 GB, free: 12.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/1.2, allocations: 8.562 kB / 0.4999 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004445/1.204, allocations: 1.212 MB / 0.501 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2184/1.423, allocations: 11.97 MB / 0.5127 GB, free: 5.691 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01832/1.441, allocations: 6.257 MB / 0.5188 GB, free: 1.215 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004885/1.442, allocations: 471.5 kB / 0.5193 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005088/1.447, allocations: 0.9729 MB / 0.5202 GB, free: 284 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05651/1.503, allocations: 17.44 MB / 0.5373 GB, free: 2.609 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004883/1.504, allocations: 84.77 kB / 0.5373 GB, free: 2.562 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003013/1.507, allocations: 290.7 kB / 0.5376 GB, free: 2.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007126/1.514, allocations: 2.666 MB / 0.5402 GB, free: 320 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05193/1.566, allocations: 14.71 MB / 0.5546 GB, free: 5.793 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1367/1.703, allocations: 67.53 MB / 0.6205 GB, free: 13.61 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03639/1.739, allocations: 7.143 MB / 0.6275 GB, free: 7.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3212/2.06, allocations: 14.97 MB / 0.6421 GB, free: 191.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.82e-05/2.061, allocations: 64.94 kB / 0.6422 GB, free: 191.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=261): time 7.093e-06/2.061, allocations: 0 / 0.6422 GB, free: 191.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=289): time 0.1269/2.187, allocations: 28.48 MB / 0.67 GB, free: 181.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004927/2.192, allocations: 6.305 MB / 0.6762 GB, free: 175.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01538/2.208, allocations: 7.071 MB / 0.6831 GB, free: 172.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001006/2.209, allocations: 64.3 kB / 0.6831 GB, free: 172.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004284/2.213, allocations: 5.03 MB / 0.688 GB, free: 168.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002208/2.215, allocations: 1.184 MB / 0.6892 GB, free: 167.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/2.217, allocations: 195.9 kB / 0.6894 GB, free: 167.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006351/2.218, allocations: 0.7164 MB / 0.6901 GB, free: 167.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01011/2.228, allocations: 4.055 MB / 0.694 GB, free: 164.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01355/2.241, allocations: 9.827 MB / 0.7036 GB, free: 151.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/2.255, allocations: 6.076 MB / 0.7096 GB, free: 145.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002063/2.255, allocations: 56 kB / 0.7096 GB, free: 145.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=1267) (initialization): time 0.04768/2.303, allocations: 15.87 MB / 0.7251 GB, free: 129.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/2.303, allocations: 92.97 kB / 0.7252 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02478/2.328, allocations: 7.511 MB / 0.7326 GB, free: 121.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01836/2.347, allocations: 3.645 MB / 0.7361 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01338/2.36, allocations: 2.3 MB / 0.7384 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02011/2.38, allocations: 13.63 MB / 0.7517 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01357/2.394, allocations: 0.8407 MB / 0.7525 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002275/2.396, allocations: 0.5875 MB / 0.7531 GB, free: 100 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 925 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1191): * Single equations (assignments): 1166 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 4 {3 1,3 1,3 1,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.009589/2.406, allocations: 3.406 MB / 0.7564 GB, free: 96.63 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/2.407, allocations: 0.5823 MB / 0.757 GB, free: 96.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02736/2.435, allocations: 7.824 MB / 0.7646 GB, free: 88.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02458/2.459, allocations: 6.978 MB / 0.7714 GB, free: 81.13 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-05/2.46, allocations: 11.94 kB / 0.7714 GB, free: 81.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.732e-05/2.46, allocations: 15.91 kB / 0.7714 GB, free: 81.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01922/2.479, allocations: 7.552 MB / 0.7788 GB, free: 73.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.814e-05/2.479, allocations: 0 / 0.7788 GB, free: 73.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006326/2.485, allocations: 0.6201 MB / 0.7794 GB, free: 72.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01742/2.503, allocations: 3.214 MB / 0.7826 GB, free: 69.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.504, allocations: 96.92 kB / 0.7827 GB, free: 69.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/2.526, allocations: 14.31 MB / 0.7966 GB, free: 54.49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004723/2.531, allocations: 6.087 MB / 0.8026 GB, free: 47.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03514/2.566, allocations: 11.97 MB / 0.8143 GB, free: 35.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004563/2.57, allocations: 1.173 MB / 0.8154 GB, free: 34.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002471/2.573, allocations: 75.97 kB / 0.8155 GB, free: 34.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007261/2.58, allocations: 372.9 kB / 0.8158 GB, free: 34.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001432/2.582, allocations: 221.6 kB / 0.816 GB, free: 33.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004225/2.582, allocations: 87.94 kB / 0.8161 GB, free: 33.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01058/2.593, allocations: 4.478 MB / 0.8205 GB, free: 29.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.525e-06/2.593, allocations: 0 / 0.8205 GB, free: 29.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01327/2.606, allocations: 2.072 MB / 0.8225 GB, free: 27.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$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],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.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],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[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 (235): * Single equations (assignments): 218 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.03593/2.642, allocations: 12.71 MB / 0.8349 GB, free: 14.44 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02978/2.672, allocations: 11.47 MB / 0.8461 GB, free: 2.742 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/2.672, allocations: 0 / 0.8461 GB, free: 2.742 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.305/2.977, allocations: 5.449 MB / 0.8515 GB, free: 183.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007573/2.985, allocations: 0.8589 MB / 0.8523 GB, free: 183 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1946/3.179, allocations: 76.99 MB / 0.9275 GB, free: 127.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/3.191, allocations: 5.413 MB / 0.9328 GB, free: 122.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008869/3.2, allocations: 3.678 MB / 0.9364 GB, free: 118.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.062e-06/3.2, allocations: 0 / 0.9364 GB, free: 118.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.026/11.23, allocations: 0.5456 GB / 1.482 GB, free: 107.9 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat