Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.951/1.951, allocations: 209.3 MB / 224.8 MB, free: 0.6016 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004445, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3963, allocations: 48.71 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.06293/0.4593, allocations: 41.49 MB / 372.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02984/0.4892, allocations: 10.07 MB / 382.8 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009139/0.4984, allocations: 203.5 kB / 383 MB, free: 10.63 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00847/0.5069, allocations: 2.088 MB / 385.1 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02395/0.5309, allocations: 6.019 MB / 391.1 MB, free: 2.496 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004509/0.5354, allocations: 0.784 MB / 391.9 MB, free: 1.711 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008098/0.5436, allocations: 3.089 MB / 395 MB, free: 14.62 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009886/0.5535, allocations: 4.63 MB / 399.6 MB, free: 9.918 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.5565, allocations: 1.246 MB / 400.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003729/0.5603, allocations: 1.753 MB / 402.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001/0.5613, allocations: 168 kB / 402.8 MB, free: 6.746 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.5643, allocations: 0.8894 MB / 403.7 MB, free: 5.855 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003116/0.5675, allocations: 1.847 MB / 405.5 MB, free: 4.004 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001734/0.5693, allocations: 0.9323 MB / 406.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009911/0.5792, allocations: 5.975 MB / 412.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.5793, allocations: 0 / 412.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.36e-06/0.5793, allocations: 0 / 412.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002523/0.5796, allocations: 3.938 kB / 412.5 MB, free: 13.07 MB / 346.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.01754/0.5971, allocations: 4.884 MB / 417.3 MB, free: 8.117 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.5972, allocations: 12.03 kB / 417.3 MB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002735/0.5999, allocations: 0.794 MB / 418.1 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01846/0.6184, allocations: 2.603 MB / 420.7 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00961/0.6281, allocations: 3.426 MB / 424.2 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003854/0.6285, allocations: 278.8 kB / 424.4 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003457/0.632, allocations: 0.589 MB / 425 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.035/0.667, allocations: 11.88 MB / 436.9 MB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002244/0.6673, allocations: 51.53 kB / 437 MB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001218/0.6685, allocations: 171.8 kB / 437.1 MB, free: 3.426 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00593/0.6745, allocations: 2.088 MB / 439.2 MB, free: 1.336 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03666/0.7112, allocations: 10.57 MB / 449.8 MB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3942/1.105, allocations: 46.9 MB / 496.7 MB, free: 100.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02455/1.13, allocations: 5.084 MB / 0.49 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02883/1.159, allocations: 11.19 MB / 0.5009 GB, free: 95.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/1.159, allocations: 55.09 kB / 0.501 GB, free: 95.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=198): time 6.032e-06/1.159, allocations: 0 / 0.501 GB, free: 95.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.1058/1.265, allocations: 24.7 MB / 0.5251 GB, free: 78.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003695/1.269, allocations: 4.596 MB / 0.5296 GB, free: 73.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009908/1.279, allocations: 4.874 MB / 0.5344 GB, free: 68.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007086/1.279, allocations: 63.28 kB / 0.5344 GB, free: 68.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002572/1.282, allocations: 3.39 MB / 0.5377 GB, free: 65.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.283, allocations: 0.9506 MB / 0.5387 GB, free: 64.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/1.285, allocations: 146.6 kB / 0.5388 GB, free: 64.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004872/1.285, allocations: 0.6248 MB / 0.5394 GB, free: 63.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008016/1.293, allocations: 3.192 MB / 0.5425 GB, free: 60.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01052/1.304, allocations: 7.467 MB / 0.5498 GB, free: 51.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/1.315, allocations: 4.73 MB / 0.5544 GB, free: 46.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/1.315, allocations: 40 kB / 0.5545 GB, free: 46.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=967) (initialization): time 0.0421/1.357, allocations: 13.14 MB / 0.5673 GB, free: 33.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.357, allocations: 72 kB / 0.5674 GB, free: 33.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02426/1.381, allocations: 6.609 MB / 0.5738 GB, free: 26.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01948/1.401, allocations: 3.692 MB / 0.5774 GB, free: 22.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009629/1.411, allocations: 1.669 MB / 0.5791 GB, free: 21.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02993/1.441, allocations: 16.71 MB / 0.5954 GB, free: 3.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01041/1.451, allocations: 0.648 MB / 0.596 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001755/1.453, allocations: 452.9 kB / 0.5964 GB, free: 2.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 685 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (888): * Single equations (assignments): 868 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 6 * 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: 0 * 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: 3 {3 1,3 1,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.006276/1.459, allocations: 2.316 MB / 0.5987 GB, free: 344 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001287/1.46, allocations: 406.8 kB / 0.5991 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02952/1.49, allocations: 7.005 MB / 0.6059 GB, free: 8.879 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02706/1.517, allocations: 6.369 MB / 0.6121 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.548e-05/1.517, allocations: 8 kB / 0.6122 GB, free: 2.453 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.047e-05/1.517, allocations: 11.95 kB / 0.6122 GB, free: 2.441 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05433/1.572, allocations: 14.97 MB / 0.6268 GB, free: 3.344 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-05/1.572, allocations: 8.062 kB / 0.6268 GB, free: 3.336 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004215/1.576, allocations: 431.3 kB / 0.6272 GB, free: 2.914 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02019/1.596, allocations: 3.36 MB / 0.6305 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007664/1.597, allocations: 76.58 kB / 0.6306 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3265/1.924, allocations: 16.87 MB / 0.647 GB, free: 156.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003896/1.927, allocations: 4.46 MB / 0.6514 GB, free: 152.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03478/1.962, allocations: 10.41 MB / 0.6616 GB, free: 150.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001556/1.964, allocations: 494 kB / 0.662 GB, free: 150.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/1.966, allocations: 63.02 kB / 0.6621 GB, free: 150.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005582/1.971, allocations: 295.1 kB / 0.6624 GB, free: 150.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00122/1.973, allocations: 188.8 kB / 0.6626 GB, free: 150 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004114/1.973, allocations: 80.27 kB / 0.6626 GB, free: 150 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008552/1.982, allocations: 3.078 MB / 0.6656 GB, free: 149 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.353e-06/1.982, allocations: 0 / 0.6656 GB, free: 149 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009232/1.991, allocations: 1.52 MB / 0.6671 GB, free: 148.9 MB / 458.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 () * Number of clocked 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 {(4,100.0%),(3,100.0%),(4,100.0%),(3,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.03443/2.025, allocations: 11.13 MB / 0.678 GB, free: 144.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02589/2.051, allocations: 9.296 MB / 0.6871 GB, free: 140.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/2.051, allocations: 0 / 0.6871 GB, free: 140.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01555/2.067, allocations: 4.597 MB / 0.6916 GB, free: 135.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004469/2.071, allocations: 0.5077 MB / 0.6921 GB, free: 135.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.126/2.198, allocations: 50.97 MB / 0.7418 GB, free: 80.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007396/2.205, allocations: 3.742 MB / 0.7455 GB, free: 76.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005014/2.21, allocations: 2.288 MB / 0.7477 GB, free: 74.19 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/2.21, allocations: 0 / 0.7477 GB, free: 74.19 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.292/8.502, allocations: 307.1 MB / 1.048 GB, free: 115.7 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat