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.Loops.Fourbar_analytic.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.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.084/2.084, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003572, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09759, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4515/0.5491, allocations: 97.8 MB / 406.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.5495, allocations: 100.2 kB / 406.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4869/1.036, allocations: 110.3 MB / 0.5046 GB, free: 2.961 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.036, allocations: 0 / 0.5046 GB, free: 2.961 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004301/1.037, allocations: 104 kB / 0.5047 GB, free: 2.859 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.02374/1.061, allocations: 5.367 MB / 0.51 GB, free: 13.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/1.061, allocations: 12.02 kB / 0.51 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004973/1.066, allocations: 1.044 MB / 0.511 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05267/1.118, allocations: 6.888 MB / 0.5177 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3295/1.448, allocations: 6.785 MB / 0.5244 GB, free: 78.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006943/1.449, allocations: 388.1 kB / 0.5247 GB, free: 78.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003334/1.452, allocations: 0.5126 MB / 0.5252 GB, free: 78.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0452/1.497, allocations: 12.64 MB / 0.5376 GB, free: 76.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004045/1.498, allocations: 62.98 kB / 0.5376 GB, free: 76.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002502/1.5, allocations: 244.7 kB / 0.5379 GB, free: 76.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002673/1.503, allocations: 1.045 MB / 0.5389 GB, free: 76.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03437/1.537, allocations: 10.53 MB / 0.5492 GB, free: 76.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07695/1.614, allocations: 50.12 MB / 0.5981 GB, free: 44.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02148/1.636, allocations: 4.805 MB / 0.6028 GB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01687/1.653, allocations: 7.051 MB / 0.6097 GB, free: 39.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.614e-05/1.653, allocations: 57.53 kB / 0.6098 GB, free: 39.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 5.811e-06/1.653, allocations: 0 / 0.6098 GB, free: 39.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.1381/1.791, allocations: 20.3 MB / 0.6296 GB, free: 33.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/1.791, allocations: 202 kB / 0.6298 GB, free: 33.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/1.803, allocations: 3.922 MB / 0.6336 GB, free: 30.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005987/1.804, allocations: 58.72 kB / 0.6337 GB, free: 29.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003921/1.807, allocations: 3.44 MB / 0.637 GB, free: 26.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.809, allocations: 0.8338 MB / 0.6378 GB, free: 26.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008501/1.81, allocations: 127.8 kB / 0.638 GB, free: 26.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005361/1.81, allocations: 0.5842 MB / 0.6385 GB, free: 25.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007598/1.818, allocations: 2.151 MB / 0.6406 GB, free: 23.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009514/1.828, allocations: 5.897 MB / 0.6464 GB, free: 16.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008002/1.836, allocations: 3.51 MB / 0.6498 GB, free: 13.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/1.836, allocations: 40 kB / 0.6498 GB, free: 13.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02523/1.861, allocations: 8.615 MB / 0.6583 GB, free: 5.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/1.861, allocations: 60 kB / 0.6583 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/1.862, allocations: 132 kB / 0.6584 GB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005634/1.867, allocations: 1.043 MB / 0.6595 GB, free: 4.801 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008539/1.876, allocations: 1.419 MB / 0.6608 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01688/1.893, allocations: 7.112 MB / 0.6678 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007121/1.9, allocations: 339.4 kB / 0.6681 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001501/1.901, allocations: 379 kB / 0.6685 GB, free: 12.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007423/1.909, allocations: 2.484 MB / 0.6709 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001198/1.91, allocations: 406.7 kB / 0.6713 GB, free: 9.996 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/1.923, allocations: 3.646 MB / 0.6749 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.526e-05/1.923, allocations: 27.83 kB / 0.6749 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.466e-05/1.923, allocations: 4 kB / 0.6749 GB, free: 7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.556e-05/1.923, allocations: 25.28 kB / 0.6749 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3249/2.248, allocations: 10.08 MB / 0.6848 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-05/2.248, allocations: 8.5 kB / 0.6848 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003245/2.251, allocations: 353.4 kB / 0.6851 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005331/2.257, allocations: 0.8034 MB / 0.6859 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000482/2.257, allocations: 42.28 kB / 0.6859 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/2.272, allocations: 5.821 MB / 0.6916 GB, free: 82.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/2.272, allocations: 10 kB / 0.6916 GB, free: 82.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01934/2.292, allocations: 7.004 MB / 0.6985 GB, free: 81.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002837/2.295, allocations: 0.7111 MB / 0.6992 GB, free: 81.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001467/2.296, allocations: 42.09 kB / 0.6992 GB, free: 81.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003787/2.3, allocations: 99.53 kB / 0.6993 GB, free: 81.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008122/2.301, allocations: 151.1 kB / 0.6994 GB, free: 81.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002531/2.301, allocations: 67.31 kB / 0.6995 GB, free: 81.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008461/2.31, allocations: 2.758 MB / 0.7022 GB, free: 81 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.01e-07/2.31, allocations: 0 / 0.7022 GB, free: 81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008708/2.318, allocations: 1.175 MB / 0.7033 GB, free: 81 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 2 (j1.phi,j1.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 (176): * Single equations (assignments): 172 * 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 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0191/2.338, allocations: 8.971 MB / 0.7121 GB, free: 77.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01278/2.35, allocations: 5.385 MB / 0.7174 GB, free: 77.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/2.35, allocations: 0 / 0.7174 GB, free: 77.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00435/2.355, allocations: 1.793 MB / 0.7191 GB, free: 77.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004492/2.359, allocations: 0.5228 MB / 0.7196 GB, free: 77.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08201/2.441, allocations: 113.8 MB / 0.8307 GB, free: 35.49 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009374/2.451, allocations: 3.977 MB / 0.8346 GB, free: 34.03 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005773/2.457, allocations: 2.365 MB / 0.8369 GB, free: 32.12 MB / 490.7 MB Notification: Performance of SimCode: time 1.553e-06/2.457, allocations: 0 / 0.8369 GB, free: 32.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.885/7.341, allocations: 116.2 MB / 0.9504 GB, free: 144.9 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat