Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003646, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09686, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4477/0.5446, allocations: 92.89 MB / 401.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.545, allocations: 98.34 kB / 401.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3247/0.8698, allocations: 73.96 MB / 475.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.8698, allocations: 0 / 475.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002376/0.8701, allocations: 79.92 kB / 475.6 MB, free: 12.29 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01536/0.8855, allocations: 3.595 MB / 479.2 MB, free: 8.625 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.8855, allocations: 12.03 kB / 479.2 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003145/0.8887, allocations: 0.6717 MB / 479.8 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01785/0.9066, allocations: 2.257 MB / 482.1 MB, free: 5.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/0.9223, allocations: 3.916 MB / 486 MB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004356/0.9228, allocations: 279.1 kB / 486.3 MB, free: 1.422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002218/0.9251, allocations: 355.9 kB / 486.6 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03584/0.9609, allocations: 10.36 MB / 497 MB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002266/0.9612, allocations: 59.42 kB / 497.1 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001542/0.9628, allocations: 179.9 kB / 497.2 MB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/0.9655, allocations: 0.9818 MB / 498.2 MB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03175/0.9973, allocations: 8.648 MB / 0.495 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.365/1.362, allocations: 44.34 MB / 0.5383 GB, free: 67.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01663/1.379, allocations: 3.569 MB / 0.5418 GB, free: 67.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01838/1.398, allocations: 7.143 MB / 0.5487 GB, free: 65.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/1.398, allocations: 50.8 kB / 0.5488 GB, free: 65.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 6.512e-06/1.398, allocations: 0 / 0.5488 GB, free: 65.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.08982/1.488, allocations: 17.02 MB / 0.5654 GB, free: 62.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/1.488, allocations: 148.3 kB / 0.5656 GB, free: 62.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007788/1.495, allocations: 3.095 MB / 0.5686 GB, free: 61.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004446/1.496, allocations: 45.17 kB / 0.5686 GB, free: 61.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002404/1.498, allocations: 2.673 MB / 0.5712 GB, free: 60.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/1.499, allocations: 0.6028 MB / 0.5718 GB, free: 60.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000736/1.5, allocations: 109.3 kB / 0.5719 GB, free: 60.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004326/1.501, allocations: 0.5402 MB / 0.5725 GB, free: 59.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005666/1.506, allocations: 1.93 MB / 0.5743 GB, free: 59.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00804/1.514, allocations: 5.289 MB / 0.5795 GB, free: 55.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009881/1.524, allocations: 3.105 MB / 0.5825 GB, free: 55.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002307/1.525, allocations: 32.03 kB / 0.5826 GB, free: 55.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.03525/1.56, allocations: 7.971 MB / 0.5903 GB, free: 53.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/1.56, allocations: 59.55 kB / 0.5904 GB, free: 53.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003014/1.561, allocations: 126.6 kB / 0.5905 GB, free: 53.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009374/1.57, allocations: 1.3 MB / 0.5918 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009435/1.579, allocations: 1.258 MB / 0.593 GB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01966/1.599, allocations: 6.295 MB / 0.5992 GB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009606/1.609, allocations: 349.4 kB / 0.5995 GB, free: 49.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/1.611, allocations: 334.4 kB / 0.5998 GB, free: 49.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (665): * Single equations (assignments): 661 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007357/1.618, allocations: 1.788 MB / 0.6016 GB, free: 48.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.619, allocations: 303 kB / 0.6019 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.636, allocations: 3.301 MB / 0.6051 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.597e-05/1.637, allocations: 20.34 kB / 0.6051 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.748e-05/1.637, allocations: 6.625 kB / 0.6051 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.971e-05/1.637, allocations: 6.469 kB / 0.6051 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03291/1.67, allocations: 7.377 MB / 0.6123 GB, free: 42.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.215e-05/1.67, allocations: 7.953 kB / 0.6123 GB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002587/1.672, allocations: 233.6 kB / 0.6125 GB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008219/1.681, allocations: 1.115 MB / 0.6136 GB, free: 41.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005001/1.681, allocations: 27.84 kB / 0.6137 GB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01828/1.699, allocations: 5.92 MB / 0.6194 GB, free: 36.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/1.7, allocations: 0 / 0.6194 GB, free: 36.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0237/1.723, allocations: 5.647 MB / 0.625 GB, free: 31.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002686/1.726, allocations: 0.5651 MB / 0.6255 GB, free: 31.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001351/1.727, allocations: 29.02 kB / 0.6255 GB, free: 31.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004442/1.732, allocations: 116.9 kB / 0.6257 GB, free: 31.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008662/1.733, allocations: 81.16 kB / 0.6257 GB, free: 31.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002853/1.733, allocations: 40.06 kB / 0.6258 GB, free: 31.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.008309/1.741, allocations: 2.152 MB / 0.6279 GB, free: 29.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.742, allocations: 0 / 0.6279 GB, free: 29.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01131/1.753, allocations: 0.8966 MB / 0.6287 GB, free: 28.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (119): * Single equations (assignments): 115 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01849/1.771, allocations: 6.471 MB / 0.6351 GB, free: 22.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01192/1.783, allocations: 4.697 MB / 0.6396 GB, free: 18.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.783, allocations: 4 kB / 0.6397 GB, free: 18.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003782/1.787, allocations: 1.501 MB / 0.6411 GB, free: 17.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/1.79, allocations: 309 kB / 0.6414 GB, free: 17.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3835/2.173, allocations: 112.4 MB / 0.7512 GB, free: 69.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006167/2.18, allocations: 2.895 MB / 0.754 GB, free: 68.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003837/2.184, allocations: 1.595 MB / 0.7555 GB, free: 68.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/2.184, allocations: 0 / 0.7555 GB, free: 68.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.365/6.549, allocations: 83.36 MB / 0.837 GB, free: 22.49 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat