Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.578/1.578, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.000351, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.08175, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3747/0.4565, allocations: 91.1 MB / 363.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.4568, allocations: 86.33 kB / 363.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8069/1.264, allocations: 135.5 MB / 498.8 MB, free: 63.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.264, allocations: 0 / 498.8 MB, free: 63.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004687/1.264, allocations: 132 kB / 499 MB, free: 63.51 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03191/1.296, allocations: 7.656 MB / 0.4947 GB, free: 55.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/1.296, allocations: 12.02 kB / 0.4947 GB, free: 55.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005471/1.302, allocations: 1.148 MB / 0.4959 GB, free: 54.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06583/1.368, allocations: 7.549 MB / 0.5032 GB, free: 47.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04501/1.413, allocations: 9.724 MB / 0.5127 GB, free: 37.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008843/1.414, allocations: 493 kB / 0.5132 GB, free: 37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003892/1.418, allocations: 0.6481 MB / 0.5138 GB, free: 36.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05052/1.468, allocations: 16.72 MB / 0.5302 GB, free: 18.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004853/1.469, allocations: 103 kB / 0.5303 GB, free: 18.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002984/1.472, allocations: 315.8 kB / 0.5306 GB, free: 17.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003467/1.475, allocations: 1.584 MB / 0.5321 GB, free: 16.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04548/1.521, allocations: 13.75 MB / 0.5455 GB, free: 2.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3891/1.91, allocations: 74.31 MB / 0.6181 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03797/1.948, allocations: 7.741 MB / 0.6257 GB, free: 35.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04478/1.993, allocations: 18.71 MB / 0.6439 GB, free: 29.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.028e-05/1.993, allocations: 62.91 kB / 0.644 GB, free: 29.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 6.672e-06/1.993, allocations: 0 / 0.644 GB, free: 29.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=367): time 0.3579/2.351, allocations: 50.5 MB / 0.6933 GB, free: 6.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/2.351, allocations: 269.4 kB / 0.6936 GB, free: 5.918 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01562/2.367, allocations: 5.38 MB / 0.6988 GB, free: 1.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/2.368, allocations: 85.7 kB / 0.6989 GB, free: 1.301 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2923/2.66, allocations: 4.548 MB / 0.7033 GB, free: 86.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002848/2.663, allocations: 1.343 MB / 0.7047 GB, free: 85.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00186/2.665, allocations: 183.9 kB / 0.7048 GB, free: 85.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.001187/2.666, allocations: 0.7019 MB / 0.7055 GB, free: 85.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01221/2.678, allocations: 3.807 MB / 0.7092 GB, free: 85.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01919/2.698, allocations: 8.988 MB / 0.718 GB, free: 78.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02053/2.718, allocations: 5.682 MB / 0.7236 GB, free: 78.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004179/2.719, allocations: 54.69 kB / 0.7236 GB, free: 78.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.08248/2.801, allocations: 16.48 MB / 0.7397 GB, free: 76.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000523/2.802, allocations: 86.84 kB / 0.7398 GB, free: 76.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007955/2.803, allocations: 179.8 kB / 0.74 GB, free: 76.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03012/2.833, allocations: 4.147 MB / 0.744 GB, free: 75.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01763/2.85, allocations: 2.04 MB / 0.746 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08298/2.934, allocations: 22.89 MB / 0.7684 GB, free: 65.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01559/2.949, allocations: 0.5411 MB / 0.7689 GB, free: 65.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002624/2.952, allocations: 0.5383 MB / 0.7694 GB, free: 65.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1083): * Single equations (assignments): 1078 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009866/2.962, allocations: 3.118 MB / 0.7725 GB, free: 63.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001617/2.963, allocations: 0.5747 MB / 0.773 GB, free: 62.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03953/3.003, allocations: 9.844 MB / 0.7826 GB, free: 55.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.898e-05/3.003, allocations: 44.53 kB / 0.7827 GB, free: 54.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.754e-05/3.003, allocations: 16 kB / 0.7827 GB, free: 54.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001033/3.003, allocations: 20.22 kB / 0.7827 GB, free: 54.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06703/3.07, allocations: 19.24 MB / 0.8015 GB, free: 39.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.44e-05/3.07, allocations: 2.5 kB / 0.8015 GB, free: 39.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005203/3.076, allocations: 0.514 MB / 0.802 GB, free: 39.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02143/3.097, allocations: 3.616 MB / 0.8055 GB, free: 36.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001181/3.098, allocations: 65.55 kB / 0.8056 GB, free: 35.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04883/3.147, allocations: 19.8 MB / 0.8249 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/3.147, allocations: 7.875 kB / 0.8249 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3502/3.497, allocations: 14.36 MB / 0.839 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004295/3.502, allocations: 1.114 MB / 0.8401 GB, free: 72.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002393/3.504, allocations: 61.05 kB / 0.8401 GB, free: 72.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006623/3.511, allocations: 230.9 kB / 0.8403 GB, free: 72.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001781/3.513, allocations: 218 kB / 0.8405 GB, free: 72.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001024/3.514, allocations: 93.83 kB / 0.8406 GB, free: 72.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01279/3.527, allocations: 3.788 MB / 0.8443 GB, free: 72.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.152e-06/3.527, allocations: 0 / 0.8443 GB, free: 72.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01413/3.541, allocations: 1.85 MB / 0.8461 GB, free: 72.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (270): * Single equations (assignments): 265 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04953/3.59, allocations: 15.21 MB / 0.861 GB, free: 71.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.03248/3.623, allocations: 9.726 MB / 0.8705 GB, free: 70.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/3.623, allocations: 0 / 0.8705 GB, free: 70.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009494/3.633, allocations: 3.795 MB / 0.8742 GB, free: 68.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006531/3.639, allocations: 0.7242 MB / 0.8749 GB, free: 68.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4925/4.132, allocations: 191.9 MB / 1.062 GB, free: 44.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/4.144, allocations: 5.013 MB / 1.067 GB, free: 43.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008515/4.152, allocations: 3.323 MB / 1.07 GB, free: 42.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/4.152, allocations: 0 / 1.07 GB, free: 42.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.887/10.04, allocations: 186.8 MB / 1.253 GB, free: 16.75 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat