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.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003438, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.09506, allocations: 44.51 MB / 308.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4493/0.5444, allocations: 96.85 MB / 405.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.5448, allocations: 90.73 kB / 405.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9446/1.489, allocations: 135.6 MB / 0.5284 GB, free: 66.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.859e-06/1.49, allocations: 1.25 kB / 0.5284 GB, free: 66.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007157/1.49, allocations: 136.1 kB / 0.5286 GB, free: 66.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.0506/1.541, allocations: 7.654 MB / 0.536 GB, free: 63.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/1.541, allocations: 10.16 kB / 0.536 GB, free: 63.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005906/1.547, allocations: 1.15 MB / 0.5372 GB, free: 63.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05928/1.606, allocations: 7.551 MB / 0.5445 GB, free: 63.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03362/1.64, allocations: 9.725 MB / 0.554 GB, free: 62.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000653/1.641, allocations: 489.9 kB / 0.5545 GB, free: 62.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003631/1.644, allocations: 0.6553 MB / 0.5551 GB, free: 62.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05157/1.696, allocations: 16.72 MB / 0.5715 GB, free: 58.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004836/1.696, allocations: 91.12 kB / 0.5716 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002884/1.699, allocations: 320.2 kB / 0.5719 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003657/1.703, allocations: 1.577 MB / 0.5734 GB, free: 58.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04437/1.747, allocations: 13.75 MB / 0.5868 GB, free: 58.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.119/1.866, allocations: 74.36 MB / 0.6595 GB, free: 18.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0379/1.904, allocations: 7.732 MB / 0.667 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3671/2.272, allocations: 18.72 MB / 0.6853 GB, free: 77.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/2.272, allocations: 71.27 kB / 0.6853 GB, free: 77.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.653e-06/2.272, allocations: 0 / 0.6853 GB, free: 77.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.3053/2.577, allocations: 50.5 MB / 0.7347 GB, free: 72.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/2.577, allocations: 272.8 kB / 0.7349 GB, free: 72.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01438/2.592, allocations: 5.384 MB / 0.7402 GB, free: 71.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/2.593, allocations: 82.48 kB / 0.7403 GB, free: 71.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004503/2.597, allocations: 4.554 MB / 0.7447 GB, free: 69.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002578/2.6, allocations: 1.352 MB / 0.746 GB, free: 68.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/2.602, allocations: 182.9 kB / 0.7462 GB, free: 68.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007451/2.602, allocations: 0.7014 MB / 0.7469 GB, free: 68.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01041/2.613, allocations: 3.806 MB / 0.7506 GB, free: 68.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01453/2.627, allocations: 8.987 MB / 0.7594 GB, free: 61.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01415/2.642, allocations: 5.679 MB / 0.7649 GB, free: 59.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002373/2.642, allocations: 52.88 kB / 0.765 GB, free: 59.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05739/2.699, allocations: 16.48 MB / 0.7811 GB, free: 49.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/2.699, allocations: 87.95 kB / 0.7812 GB, free: 49.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002925/2.7, allocations: 180.5 kB / 0.7813 GB, free: 49.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0227/2.722, allocations: 4.138 MB / 0.7854 GB, free: 46.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01341/2.736, allocations: 2.04 MB / 0.7874 GB, free: 44.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05607/2.792, allocations: 22.9 MB / 0.8097 GB, free: 24.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01191/2.804, allocations: 0.5455 MB / 0.8103 GB, free: 24.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002313/2.806, allocations: 0.5327 MB / 0.8108 GB, free: 23.91 MB / 426.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.00954/2.816, allocations: 3.118 MB / 0.8138 GB, free: 21.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/2.818, allocations: 0.5708 MB / 0.8144 GB, free: 20.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04761/2.865, allocations: 9.847 MB / 0.824 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.43e-05/2.865, allocations: 41.98 kB / 0.824 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.75e-05/2.866, allocations: 16 kB / 0.8241 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001126/2.866, allocations: 22.72 kB / 0.8241 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3908/3.256, allocations: 19.25 MB / 0.8429 GB, free: 65.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.198e-05/3.257, allocations: 5.297 kB / 0.8429 GB, free: 65.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005098/3.262, allocations: 0.5085 MB / 0.8434 GB, free: 65.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02131/3.283, allocations: 3.615 MB / 0.8469 GB, free: 65.01 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009212/3.284, allocations: 68.2 kB / 0.847 GB, free: 65.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04922/3.333, allocations: 19.78 MB / 0.8663 GB, free: 62.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/3.333, allocations: 3.953 kB / 0.8663 GB, free: 62.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04859/3.382, allocations: 14.37 MB / 0.8803 GB, free: 61.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004514/3.387, allocations: 1.12 MB / 0.8814 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002339/3.389, allocations: 62.17 kB / 0.8815 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006722/3.396, allocations: 225.9 kB / 0.8817 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001645/3.397, allocations: 219.9 kB / 0.8819 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006435/3.398, allocations: 92.23 kB / 0.882 GB, free: 61.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01046/3.409, allocations: 3.793 MB / 0.8857 GB, free: 61.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.82e-07/3.409, allocations: 0 / 0.8857 GB, free: 61.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01341/3.422, allocations: 1.846 MB / 0.8875 GB, free: 61.34 MB / 426.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.04974/3.472, allocations: 15.2 MB / 0.9023 GB, free: 55.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02477/3.497, allocations: 9.731 MB / 0.9118 GB, free: 52.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/3.497, allocations: 0 / 0.9118 GB, free: 52.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009846/3.507, allocations: 3.79 MB / 0.9155 GB, free: 51.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006865/3.513, allocations: 0.7148 MB / 0.9162 GB, free: 50.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5218/4.035, allocations: 191.9 MB / 1.104 GB, free: 19.77 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/4.048, allocations: 5.014 MB / 1.109 GB, free: 18.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008776/4.057, allocations: 3.332 MB / 1.112 GB, free: 18.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.122e-06/4.057, allocations: 0 / 1.112 GB, free: 18.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.057/10.11, allocations: 186.9 MB / 1.294 GB, free: 52.87 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat