Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.967/1.967, allocations: 209.2 MB / 224.8 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006229/0.0006229, allocations: 16 kB / 282.7 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1105, allocations: 48.71 MB / 331.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/0.5686, allocations: 99 MB / 430.4 MB, free: 2.035 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004047/0.5691, allocations: 77.22 kB / 430.4 MB, free: 1.961 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8652/1.434, allocations: 135.6 MB / 0.5528 GB, free: 79.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.434, allocations: 0 / 0.5528 GB, free: 79.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005124/1.435, allocations: 130.1 kB / 0.5529 GB, free: 79.84 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03501/1.47, allocations: 7.658 MB / 0.5604 GB, free: 72.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/1.47, allocations: 12.02 kB / 0.5604 GB, free: 72.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005998/1.476, allocations: 1.141 MB / 0.5615 GB, free: 71.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06687/1.543, allocations: 7.55 MB / 0.5689 GB, free: 64.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04682/1.59, allocations: 9.841 MB / 0.5785 GB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009226/1.591, allocations: 488.9 kB / 0.5789 GB, free: 53.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005235/1.596, allocations: 0.6403 MB / 0.5796 GB, free: 53.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07029/1.666, allocations: 16.71 MB / 0.5959 GB, free: 35.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007463/1.667, allocations: 107 kB / 0.596 GB, free: 35.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004421/1.672, allocations: 311.8 kB / 0.5963 GB, free: 34.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005193/1.677, allocations: 1.58 MB / 0.5978 GB, free: 33.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05077/1.728, allocations: 13.75 MB / 0.6113 GB, free: 19.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4556/2.183, allocations: 74.32 MB / 0.6838 GB, free: 39.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04065/2.224, allocations: 7.734 MB / 0.6914 GB, free: 38.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04676/2.271, allocations: 18.71 MB / 0.7097 GB, free: 33.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.511e-05/2.271, allocations: 65.69 kB / 0.7097 GB, free: 33.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.194e-06/2.271, allocations: 0 / 0.7097 GB, free: 33.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.335/2.606, allocations: 50.5 MB / 0.759 GB, free: 16.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/2.606, allocations: 269.3 kB / 0.7593 GB, free: 16.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01672/2.623, allocations: 5.383 MB / 0.7645 GB, free: 11.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001293/2.624, allocations: 78.33 kB / 0.7646 GB, free: 11.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005881/2.63, allocations: 4.552 MB / 0.7691 GB, free: 7.594 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002907/2.633, allocations: 1.351 MB / 0.7704 GB, free: 6.395 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/2.635, allocations: 180 kB / 0.7706 GB, free: 6.219 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009411/2.636, allocations: 0.7009 MB / 0.7712 GB, free: 5.617 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0147/2.651, allocations: 3.816 MB / 0.775 GB, free: 2.398 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03055/2.681, allocations: 9.282 MB / 0.784 GB, free: 8.215 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01852/2.7, allocations: 5.674 MB / 0.7896 GB, free: 2.676 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002295/2.7, allocations: 52 kB / 0.7896 GB, free: 2.625 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1155/2.816, allocations: 16.48 MB / 0.8057 GB, free: 2.562 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001658/2.816, allocations: 83.94 kB / 0.8058 GB, free: 2.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003494/2.816, allocations: 188.2 kB / 0.806 GB, free: 2.297 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02512/2.841, allocations: 4.14 MB / 0.81 GB, free: 14.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01376/2.855, allocations: 2.046 MB / 0.812 GB, free: 12.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.395/3.25, allocations: 22.87 MB / 0.8344 GB, free: 117.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01199/3.262, allocations: 0.5422 MB / 0.8349 GB, free: 117.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002818/3.265, allocations: 0.5362 MB / 0.8354 GB, free: 117.6 MB / 474.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.01073/3.276, allocations: 3.123 MB / 0.8385 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001935/3.278, allocations: 0.5727 MB / 0.839 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04251/3.32, allocations: 9.847 MB / 0.8486 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.291e-05/3.321, allocations: 38.48 kB / 0.8487 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.215e-05/3.321, allocations: 18.44 kB / 0.8487 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/3.321, allocations: 16.41 kB / 0.8487 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0688/3.39, allocations: 19.25 MB / 0.8675 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.84e-05/3.39, allocations: 0 / 0.8675 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004981/3.395, allocations: 0.5066 MB / 0.868 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0218/3.417, allocations: 3.626 MB / 0.8715 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001012/3.418, allocations: 64.3 kB / 0.8716 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0494/3.467, allocations: 19.79 MB / 0.8909 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/3.467, allocations: 9.5 kB / 0.8909 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04804/3.515, allocations: 14.36 MB / 0.905 GB, free: 98.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00439/3.52, allocations: 1.119 MB / 0.9061 GB, free: 97.56 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002373/3.522, allocations: 59.08 kB / 0.9061 GB, free: 97.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006489/3.529, allocations: 233.1 kB / 0.9063 GB, free: 97.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001643/3.53, allocations: 227.7 kB / 0.9066 GB, free: 97.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007086/3.531, allocations: 89.94 kB / 0.9066 GB, free: 97.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01062/3.542, allocations: 3.787 MB / 0.9103 GB, free: 94.93 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.32e-07/3.542, allocations: 0 / 0.9103 GB, free: 94.93 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01283/3.555, allocations: 1.845 MB / 0.9121 GB, free: 93.1 MB / 474.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.04927/3.604, allocations: 15.21 MB / 0.927 GB, free: 80.56 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02414/3.628, allocations: 9.717 MB / 0.9365 GB, free: 72.12 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/3.628, allocations: 4 kB / 0.9365 GB, free: 72.11 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009901/3.638, allocations: 3.798 MB / 0.9402 GB, free: 68.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006497/3.645, allocations: 0.718 MB / 0.9409 GB, free: 67.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5331/4.178, allocations: 191.9 MB / 1.128 GB, free: 16.83 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01268/4.19, allocations: 5.016 MB / 1.133 GB, free: 15.96 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008594/4.199, allocations: 3.329 MB / 1.136 GB, free: 15.39 MB / 474.7 MB Notification: Performance of SimCode: time 1.924e-06/4.199, allocations: 0 / 1.136 GB, free: 15.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.231/10.43, allocations: 186.8 MB / 1.319 GB, free: 24.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat