Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Spring2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.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 Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01153/0.01154, allocations: 104.5 kB / 15.05 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001189/0.001189, allocations: 169.1 kB / 15.94 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.739/1.739, allocations: 170.9 MB / 187.5 MB, free: 1.008 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2743/0.2743, allocations: 38.1 MB / 265.1 MB, free: 3.969 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005009/0.000501, allocations: 15.98 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1068, allocations: 48.71 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.06555/0.1724, allocations: 41.48 MB / 413.8 MB, free: 3.258 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02999/0.2025, allocations: 10.07 MB / 423.8 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009226/0.2118, allocations: 203.5 kB / 424 MB, free: 8.953 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008066/0.2199, allocations: 2.084 MB / 426.1 MB, free: 6.859 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02479/0.2448, allocations: 6.019 MB / 432.1 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004709/0.2495, allocations: 0.7879 MB / 432.9 MB, free: 36 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.3027/0.5522, allocations: 2.978 MB / 435.9 MB, free: 11.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.5631, allocations: 4.633 MB / 440.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00422/0.5674, allocations: 1.236 MB / 441.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005124/0.5726, allocations: 1.737 MB / 443.5 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001725/0.5744, allocations: 169.6 kB / 443.7 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003902/0.5783, allocations: 0.8846 MB / 444.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004267/0.5827, allocations: 1.841 MB / 446.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00297/0.5857, allocations: 0.9299 MB / 447.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009774/0.5955, allocations: 5.982 MB / 453.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.5956, allocations: 0 / 453.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.5956, allocations: 0 / 453.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003237/0.5959, allocations: 0 / 453.3 MB, free: 9.262 MB / 330.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.01766/0.6136, allocations: 4.883 MB / 458.2 MB, free: 6.371 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.6137, allocations: 12.78 kB / 458.2 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002968/0.6167, allocations: 0.7979 MB / 459 MB, free: 6.133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0186/0.6353, allocations: 2.594 MB / 461.6 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009852/0.6452, allocations: 3.431 MB / 465 MB, free: 3.949 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004273/0.6457, allocations: 283.9 kB / 465.3 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003621/0.6494, allocations: 0.5839 MB / 465.9 MB, free: 3.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03529/0.6847, allocations: 11.86 MB / 477.8 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003079/0.6851, allocations: 49.12 kB / 477.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002235/0.6873, allocations: 174.2 kB / 478 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006254/0.6937, allocations: 2.083 MB / 480.1 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03893/0.7326, allocations: 10.56 MB / 490.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.111/0.8437, allocations: 46.93 MB / 0.525 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02628/0.87, allocations: 5.085 MB / 0.5299 GB, free: 4.875 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.032/0.9021, allocations: 11.18 MB / 0.5408 GB, free: 9.422 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.589e-05/0.9022, allocations: 60.25 kB / 0.5409 GB, free: 9.359 MB / 410.7 MB Notification: Performance of pre-optimization done (n=198): time 6.742e-06/0.9022, allocations: 0 / 0.5409 GB, free: 9.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.1198/1.022, allocations: 24.69 MB / 0.565 GB, free: 392 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004884/1.027, allocations: 4.597 MB / 0.5695 GB, free: 11.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01233/1.039, allocations: 4.875 MB / 0.5743 GB, free: 6.461 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008822/1.04, allocations: 57.7 kB / 0.5743 GB, free: 6.398 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00425/1.045, allocations: 3.485 MB / 0.5777 GB, free: 2.938 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002155/1.047, allocations: 0.9555 MB / 0.5787 GB, free: 1.992 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/1.048, allocations: 148 kB / 0.5788 GB, free: 1.848 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006671/1.049, allocations: 0.6123 MB / 0.5794 GB, free: 1.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009898/1.059, allocations: 3.194 MB / 0.5825 GB, free: 14.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01436/1.073, allocations: 7.441 MB / 0.5898 GB, free: 4.566 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3157/1.389, allocations: 4.724 MB / 0.5944 GB, free: 160.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001781/1.389, allocations: 42.75 kB / 0.5944 GB, free: 160.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=967) (initialization): time 0.04823/1.437, allocations: 13.27 MB / 0.6074 GB, free: 158.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/1.437, allocations: 70.69 kB / 0.6075 GB, free: 158.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02549/1.463, allocations: 6.61 MB / 0.6139 GB, free: 156.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01951/1.482, allocations: 3.693 MB / 0.6175 GB, free: 156.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009619/1.492, allocations: 1.668 MB / 0.6191 GB, free: 156 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02873/1.521, allocations: 16.72 MB / 0.6355 GB, free: 145.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/1.531, allocations: 0.6461 MB / 0.6361 GB, free: 144.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001748/1.533, allocations: 449.4 kB / 0.6365 GB, free: 144.4 MB / 458.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.007007/1.54, allocations: 2.309 MB / 0.6388 GB, free: 142.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/1.541, allocations: 410 kB / 0.6392 GB, free: 141.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02592/1.567, allocations: 7.019 MB / 0.646 GB, free: 134.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02423/1.591, allocations: 6.357 MB / 0.6522 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.647e-05/1.592, allocations: 11.98 kB / 0.6523 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.946e-05/1.592, allocations: 7.969 kB / 0.6523 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04815/1.64, allocations: 14.99 MB / 0.6669 GB, free: 113.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-05/1.64, allocations: 4 kB / 0.6669 GB, free: 113.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003932/1.644, allocations: 423.8 kB / 0.6673 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01872/1.663, allocations: 3.354 MB / 0.6706 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009174/1.664, allocations: 75.94 kB / 0.6707 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03017/1.694, allocations: 16.88 MB / 0.6871 GB, free: 92 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003479/1.697, allocations: 4.47 MB / 0.6915 GB, free: 87.14 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03171/1.729, allocations: 10.91 MB / 0.7021 GB, free: 75.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/1.731, allocations: 491.6 kB / 0.7026 GB, free: 75.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001837/1.733, allocations: 63.97 kB / 0.7027 GB, free: 75.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005452/1.738, allocations: 292.8 kB / 0.703 GB, free: 75.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001418/1.74, allocations: 189.6 kB / 0.7031 GB, free: 74.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005638/1.74, allocations: 75.94 kB / 0.7032 GB, free: 74.87 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007679/1.748, allocations: 3.078 MB / 0.7062 GB, free: 71.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.12e-07/1.748, allocations: 0 / 0.7062 GB, free: 71.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01008/1.758, allocations: 1.519 MB / 0.7077 GB, free: 70.28 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.03396/1.792, allocations: 12.49 MB / 0.7199 GB, free: 57.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02639/1.818, allocations: 9.283 MB / 0.729 GB, free: 48.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/1.818, allocations: 8.375 kB / 0.729 GB, free: 48.17 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01504/1.834, allocations: 4.587 MB / 0.7335 GB, free: 43.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004745/1.838, allocations: 0.501 MB / 0.7339 GB, free: 42.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4348/2.273, allocations: 152.4 MB / 0.8828 GB, free: 61.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006843/2.28, allocations: 3.729 MB / 0.8865 GB, free: 60.56 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009556/2.29, allocations: 2.207 MB / 0.8886 GB, free: 60.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005101/2.295, allocations: 2.237 MB / 0.8908 GB, free: 58.68 MB / 458.7 MB Notification: Performance of SimCode: time 2.615e-06/2.295, allocations: 0 / 0.8908 GB, free: 58.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5759/2.871, allocations: 106 MB / 0.9943 GB, free: 134.1 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/2.871, allocations: 203.6 kB / 0.9945 GB, free: 133.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.537/9.408, allocations: 3.938 kB / 0.9945 GB, free: 133.8 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat