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.Spring.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.165e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.353, allocations: 54.84 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1965/0.5495, allocations: 96.66 MB / 454.8 MB, free: 14.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.5499, allocations: 75.95 kB / 454.8 MB, free: 13.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6314/1.181, allocations: 83.03 MB / 0.5253 GB, free: 43.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.181, allocations: 0 / 0.5253 GB, free: 43.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002492/1.182, allocations: 87.92 kB / 0.5254 GB, free: 42.97 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: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.01516/1.197, allocations: 3.9 MB / 0.5292 GB, free: 39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/1.197, allocations: 8.031 kB / 0.5292 GB, free: 39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01925/1.216, allocations: 2.443 MB / 0.5316 GB, free: 36.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01744/1.234, allocations: 5.114 MB / 0.5366 GB, free: 31.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003031/1.234, allocations: 136.7 kB / 0.5367 GB, free: 31.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002355/1.236, allocations: 251.9 kB / 0.5369 GB, free: 30.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0152/1.252, allocations: 6.01 MB / 0.5428 GB, free: 24.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02311/1.275, allocations: 9.261 MB / 0.5518 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002369/1.275, allocations: 59.41 kB / 0.5519 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001464/1.276, allocations: 40 kB / 0.5519 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002286/1.279, allocations: 1.006 MB / 0.5529 GB, free: 13.49 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07011/1.349, allocations: 46.62 MB / 0.5984 GB, free: 13.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004115/1.353, allocations: 1.974 MB / 0.6004 GB, free: 11.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/1.355, allocations: 0.8724 MB / 0.6012 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008613/1.356, allocations: 0.5605 MB / 0.6018 GB, free: 9.582 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/1.356, allocations: 51.28 kB / 0.6018 GB, free: 9.523 MB / 442.7 MB Notification: Performance of pre-optimization done (n=144): time 4.989e-06/1.356, allocations: 4 kB / 0.6018 GB, free: 9.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.03056/1.387, allocations: 8.747 MB / 0.6104 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/1.387, allocations: 248.2 kB / 0.6106 GB, free: 340 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007667/1.395, allocations: 3.038 MB / 0.6136 GB, free: 13.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003733/1.395, allocations: 25.7 kB / 0.6136 GB, free: 13.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003607/1.399, allocations: 3.154 MB / 0.6167 GB, free: 10.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/1.4, allocations: 0.6095 MB / 0.6173 GB, free: 9.453 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006519/1.401, allocations: 0 / 0.6173 GB, free: 9.453 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005175/1.401, allocations: 0.5671 MB / 0.6178 GB, free: 8.875 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003917/1.405, allocations: 1.465 MB / 0.6193 GB, free: 7.406 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008096/1.413, allocations: 5.381 MB / 0.6245 GB, free: 40 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3518/1.765, allocations: 2.807 MB / 0.6272 GB, free: 106.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001992/1.765, allocations: 40.38 kB / 0.6273 GB, free: 106.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02265/1.788, allocations: 5.847 MB / 0.633 GB, free: 106.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/1.788, allocations: 65.56 kB / 0.6331 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002887/1.789, allocations: 144.2 kB / 0.6332 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/1.789, allocations: 203.2 kB / 0.6334 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01217/1.801, allocations: 1.471 MB / 0.6348 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003825/1.802, allocations: 271 kB / 0.6351 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00973/1.811, allocations: 273.8 kB / 0.6353 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.813, allocations: 386.9 kB / 0.6357 GB, free: 105.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (776): * Single equations (assignments): 773 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001258/1.814, allocations: 463.3 kB / 0.6362 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003662/1.818, allocations: 1.593 MB / 0.6377 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007274/1.819, allocations: 317 kB / 0.638 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/1.822, allocations: 1.165 MB / 0.6392 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.165e-05/1.822, allocations: 15.03 kB / 0.6392 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/1.822, allocations: 6.844 kB / 0.6392 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/1.822, allocations: 7.875 kB / 0.6392 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.834, allocations: 5.022 MB / 0.6441 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.621e-05/1.834, allocations: 16.53 kB / 0.6441 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/1.836, allocations: 278.6 kB / 0.6444 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.31e-05/1.836, allocations: 23.62 kB / 0.6444 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/1.836, allocations: 30.28 kB / 0.6444 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-05/1.836, allocations: 27.59 kB / 0.6444 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.149e-05/1.836, allocations: 30.02 kB / 0.6445 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005158/1.841, allocations: 4.761 MB / 0.6491 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/1.842, allocations: 0.4963 MB / 0.6496 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004881/1.843, allocations: 27.95 kB / 0.6496 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/1.845, allocations: 70.84 kB / 0.6497 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/1.845, allocations: 135.8 kB / 0.6498 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/1.845, allocations: 67.31 kB / 0.6499 GB, free: 100.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003943/1.849, allocations: 2.002 MB / 0.6518 GB, free: 100.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.849, allocations: 0 / 0.6518 GB, free: 100.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00691/1.856, allocations: 0.7574 MB / 0.6526 GB, free: 100.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 71 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006994/1.863, allocations: 9.362 MB / 0.6617 GB, free: 93.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007415/1.871, allocations: 3.371 MB / 0.665 GB, free: 92.83 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/1.871, allocations: 0 / 0.665 GB, free: 92.83 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/1.872, allocations: 0.6871 MB / 0.6657 GB, free: 92.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003034/1.875, allocations: 340.5 kB / 0.666 GB, free: 92.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0269/1.902, allocations: 8.579 MB / 0.6744 GB, free: 89.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00643/1.909, allocations: 3.219 MB / 0.6775 GB, free: 88.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004065/1.913, allocations: 1.86 MB / 0.6794 GB, free: 86.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/1.913, allocations: 0 / 0.6794 GB, free: 86.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.762/5.675, allocations: 72.92 MB / 0.7506 GB, free: 25.96 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat