Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.768/1.768, allocations: 171.2 MB / 186.1 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.000376, allocations: 8 kB / 233.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0859/0.08631, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3982/0.4845, allocations: 91.1 MB / 363.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.4849, allocations: 92.78 kB / 363.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8415/1.326, allocations: 135.5 MB / 498.9 MB, free: 63.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.327, allocations: 0 / 498.9 MB, free: 63.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005277/1.327, allocations: 135.2 kB / 499 MB, free: 63.04 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.03381/1.361, allocations: 7.653 MB / 0.4948 GB, free: 55.35 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/1.361, allocations: 8.031 kB / 0.4948 GB, free: 55.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005931/1.367, allocations: 1.148 MB / 0.4959 GB, free: 54.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05423/1.421, allocations: 7.559 MB / 0.5033 GB, free: 46.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03346/1.455, allocations: 9.718 MB / 0.5128 GB, free: 36.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000619/1.455, allocations: 498.7 kB / 0.5132 GB, free: 36.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003711/1.459, allocations: 0.6546 MB / 0.5139 GB, free: 35.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05222/1.511, allocations: 16.71 MB / 0.5302 GB, free: 17.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005225/1.512, allocations: 103 kB / 0.5303 GB, free: 17.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003384/1.515, allocations: 311.8 kB / 0.5306 GB, free: 17.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003563/1.519, allocations: 1.58 MB / 0.5321 GB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04935/1.568, allocations: 13.75 MB / 0.5456 GB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4397/2.008, allocations: 74.32 MB / 0.6181 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03742/2.046, allocations: 7.739 MB / 0.6257 GB, free: 35.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04654/2.092, allocations: 18.7 MB / 0.644 GB, free: 29.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.288e-05/2.092, allocations: 69.12 kB / 0.644 GB, free: 29.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 7.293e-06/2.092, allocations: 2.531 kB / 0.644 GB, free: 29.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=367): time 0.3068/2.399, allocations: 50.49 MB / 0.6933 GB, free: 5.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000194/2.399, allocations: 273.4 kB / 0.6936 GB, free: 5.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01557/2.415, allocations: 5.384 MB / 0.6989 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/2.416, allocations: 77.7 kB / 0.6989 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2806/2.697, allocations: 4.771 MB / 0.7036 GB, free: 86.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002639/2.699, allocations: 1.351 MB / 0.7049 GB, free: 85.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001853/2.701, allocations: 185.2 kB / 0.7051 GB, free: 85.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.001233/2.703, allocations: 0.6939 MB / 0.7058 GB, free: 85.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01218/2.715, allocations: 3.811 MB / 0.7095 GB, free: 85.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01625/2.731, allocations: 8.99 MB / 0.7183 GB, free: 78.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01475/2.746, allocations: 5.67 MB / 0.7238 GB, free: 78.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003461/2.746, allocations: 52.31 kB / 0.7239 GB, free: 78.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05897/2.805, allocations: 16.71 MB / 0.7402 GB, free: 76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001709/2.806, allocations: 80.09 kB / 0.7402 GB, free: 76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003177/2.806, allocations: 184.2 kB / 0.7404 GB, free: 76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02348/2.829, allocations: 4.144 MB / 0.7445 GB, free: 75.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/2.843, allocations: 2.041 MB / 0.7465 GB, free: 75.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.056/2.899, allocations: 22.89 MB / 0.7688 GB, free: 65.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/2.91, allocations: 0.5539 MB / 0.7694 GB, free: 65.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/2.913, allocations: 0.5342 MB / 0.7699 GB, free: 64.96 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.009241/2.922, allocations: 3.112 MB / 0.7729 GB, free: 62.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001571/2.924, allocations: 0.5746 MB / 0.7735 GB, free: 62.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03775/2.961, allocations: 9.851 MB / 0.7831 GB, free: 54.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.25e-05/2.962, allocations: 36.78 kB / 0.7831 GB, free: 54.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.692e-05/2.962, allocations: 16.19 kB / 0.7831 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.852e-05/2.962, allocations: 18.66 kB / 0.7832 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06576/3.028, allocations: 19.25 MB / 0.802 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.208e-05/3.028, allocations: 0 / 0.802 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005104/3.033, allocations: 0.5103 MB / 0.8025 GB, free: 38.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02683/3.06, allocations: 3.621 MB / 0.806 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/3.061, allocations: 59.98 kB / 0.8061 GB, free: 35.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04928/3.11, allocations: 19.8 MB / 0.8254 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/3.11, allocations: 4 kB / 0.8254 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3442/3.454, allocations: 14.36 MB / 0.8394 GB, free: 72.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006876/3.461, allocations: 1.116 MB / 0.8405 GB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003223/3.465, allocations: 57.97 kB / 0.8406 GB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009954/3.475, allocations: 226.2 kB / 0.8408 GB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002267/3.477, allocations: 227.9 kB / 0.841 GB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001117/3.478, allocations: 90.64 kB / 0.8411 GB, free: 72.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01805/3.496, allocations: 3.79 MB / 0.8448 GB, free: 72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.824e-06/3.496, allocations: 0 / 0.8448 GB, free: 72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01958/3.516, allocations: 1.852 MB / 0.8466 GB, free: 72 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.06819/3.584, allocations: 15.21 MB / 0.8615 GB, free: 70.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0246/3.609, allocations: 9.72 MB / 0.8709 GB, free: 69.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/3.609, allocations: 1.438 kB / 0.8709 GB, free: 69.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009829/3.619, allocations: 3.793 MB / 0.8747 GB, free: 67.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006865/3.626, allocations: 0.7114 MB / 0.8753 GB, free: 67.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5305/4.156, allocations: 191.2 MB / 1.062 GB, free: 42.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01239/4.169, allocations: 4.998 MB / 1.067 GB, free: 41.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01473/4.183, allocations: 2.805 MB / 1.07 GB, free: 41.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00832/4.192, allocations: 3.263 MB / 1.073 GB, free: 41.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/4.192, allocations: 3.344 kB / 1.073 GB, free: 41.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5892/4.781, allocations: 141.9 MB / 1.211 GB, free: 56.98 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002658/4.781, allocations: 237.8 kB / 1.212 GB, free: 56.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.31/13.09, allocations: 0.875 kB / 1.212 GB, free: 56.73 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat