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.242/2.242, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005866/0.0005868, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.362, allocations: 54.86 MB / 369.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.06355/0.4256, allocations: 41.51 MB / 410.8 MB, free: 3.152 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0278/0.4534, allocations: 10.08 MB / 420.9 MB, free: 9.035 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008846/0.4623, allocations: 211.4 kB / 421.1 MB, free: 8.828 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007393/0.4698, allocations: 2.08 MB / 423.1 MB, free: 6.738 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02355/0.4934, allocations: 6.023 MB / 429.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004545/0.498, allocations: 0.7684 MB / 429.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.007841/0.5058, allocations: 3.085 MB / 433 MB, free: 12.84 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009815/0.5157, allocations: 4.645 MB / 437.7 MB, free: 8.129 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00289/0.5187, allocations: 1.242 MB / 438.9 MB, free: 6.883 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003736/0.5224, allocations: 1.749 MB / 440.7 MB, free: 5.129 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001154/0.5236, allocations: 172 kB / 440.8 MB, free: 4.961 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003275/0.5269, allocations: 0.9012 MB / 441.7 MB, free: 4.059 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003273/0.5303, allocations: 1.847 MB / 443.6 MB, free: 2.207 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001575/0.5319, allocations: 0.9323 MB / 444.5 MB, free: 1.266 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.542, allocations: 5.99 MB / 450.5 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.542, allocations: 0 / 450.5 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.542, allocations: 0 / 450.5 MB, free: 11.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002496/0.5423, allocations: 0 / 450.5 MB, free: 11.26 MB / 378.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.01747/0.5598, allocations: 4.888 MB / 455.4 MB, free: 6.305 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.5599, allocations: 16.03 kB / 455.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002425/0.5623, allocations: 0.794 MB / 456.2 MB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0193/0.5816, allocations: 2.677 MB / 458.9 MB, free: 2.797 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009597/0.5913, allocations: 3.446 MB / 462.3 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.5916, allocations: 278.8 kB / 462.6 MB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003305/0.595, allocations: 0.589 MB / 463.2 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03407/0.629, allocations: 11.87 MB / 475.1 MB, free: 1.742 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/0.6293, allocations: 59.52 kB / 475.1 MB, free: 1.684 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009043/0.6302, allocations: 175.8 kB / 475.3 MB, free: 1.512 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005654/0.6359, allocations: 2.084 MB / 477.4 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03574/0.6717, allocations: 10.56 MB / 487.9 MB, free: 4.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3974/1.069, allocations: 46.97 MB / 0.5224 GB, free: 91.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02292/1.092, allocations: 5.08 MB / 0.5273 GB, free: 89.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02388/1.116, allocations: 11.23 MB / 0.5383 GB, free: 81.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/1.116, allocations: 61.42 kB / 0.5383 GB, free: 81.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 6.582e-06/1.116, allocations: 0 / 0.5383 GB, free: 81.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.09645/1.213, allocations: 24.7 MB / 0.5625 GB, free: 56.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003423/1.216, allocations: 4.601 MB / 0.567 GB, free: 51.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008465/1.225, allocations: 4.866 MB / 0.5717 GB, free: 46.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007282/1.225, allocations: 58.64 kB / 0.5718 GB, free: 46.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002431/1.228, allocations: 3.395 MB / 0.5751 GB, free: 43.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.229, allocations: 0.9498 MB / 0.576 GB, free: 42.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007236/1.23, allocations: 148 kB / 0.5761 GB, free: 42.22 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003846/1.23, allocations: 0.621 MB / 0.5768 GB, free: 41.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007666/1.238, allocations: 3.274 MB / 0.58 GB, free: 38.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01039/1.249, allocations: 7.542 MB / 0.5873 GB, free: 28.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.259, allocations: 4.809 MB / 0.592 GB, free: 23.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/1.26, allocations: 40 kB / 0.592 GB, free: 23.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=967) (initialization): time 0.07266/1.332, allocations: 15.87 MB / 0.6075 GB, free: 7.918 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.977e-05/1.332, allocations: 72.19 kB / 0.6076 GB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05558/1.388, allocations: 9.34 MB / 0.6167 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06066/1.449, allocations: 6.657 MB / 0.6232 GB, free: 7.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/1.459, allocations: 1.665 MB / 0.6249 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0563/1.515, allocations: 21.94 MB / 0.6463 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01045/1.526, allocations: 0.6552 MB / 0.6469 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/1.527, allocations: 459.9 kB / 0.6474 GB, free: 14.26 MB / 474.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): 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.006572/1.534, allocations: 2.309 MB / 0.6496 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.535, allocations: 410.7 kB / 0.65 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02746/1.563, allocations: 7.009 MB / 0.6569 GB, free: 4.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02638/1.589, allocations: 6.358 MB / 0.6631 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.79e-05/1.589, allocations: 8 kB / 0.6631 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.725e-05/1.589, allocations: 19.95 kB / 0.6631 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3715/1.961, allocations: 14.98 MB / 0.6777 GB, free: 164.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.456e-05/1.961, allocations: 4.906 kB / 0.6777 GB, free: 164.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004373/1.965, allocations: 421.7 kB / 0.6781 GB, free: 164.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0191/1.985, allocations: 3.361 MB / 0.6814 GB, free: 164.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008572/1.985, allocations: 70.78 kB / 0.6815 GB, free: 164.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03032/2.016, allocations: 16.88 MB / 0.698 GB, free: 155.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00355/2.019, allocations: 4.459 MB / 0.7023 GB, free: 151.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03117/2.051, allocations: 10.41 MB / 0.7125 GB, free: 147.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/2.052, allocations: 495.9 kB / 0.713 GB, free: 147.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001794/2.054, allocations: 61.38 kB / 0.713 GB, free: 147.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005214/2.059, allocations: 302 kB / 0.7133 GB, free: 147.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/2.06, allocations: 189.1 kB / 0.7135 GB, free: 146.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003673/2.061, allocations: 80.58 kB / 0.7136 GB, free: 146.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006918/2.068, allocations: 3.074 MB / 0.7166 GB, free: 143.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.41e-07/2.068, allocations: 0 / 0.7166 GB, free: 143.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009142/2.077, allocations: 1.579 MB / 0.7181 GB, free: 142.2 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 () * 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.03221/2.109, allocations: 11.14 MB / 0.729 GB, free: 131.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02602/2.135, allocations: 9.448 MB / 0.7382 GB, free: 121.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/2.135, allocations: 0 / 0.7382 GB, free: 121.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01486/2.15, allocations: 4.61 MB / 0.7427 GB, free: 116.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004393/2.155, allocations: 0.4956 MB / 0.7432 GB, free: 116.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1519/2.306, allocations: 53.85 MB / 0.7958 GB, free: 58.26 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006612/2.313, allocations: 3.746 MB / 0.7994 GB, free: 54.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004873/2.318, allocations: 2.284 MB / 0.8017 GB, free: 52.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.193e-06/2.318, allocations: 4 kB / 0.8017 GB, free: 52.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.964/8.282, allocations: 309.5 MB / 1.104 GB, free: 147.5 MB / 0.5105 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