Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.198/2.198, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.816e-05/1.829e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3333, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.5213, allocations: 108.1 MB / 466.2 MB, free: 2.609 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.5216, allocations: 79.91 kB / 466.3 MB, free: 2.531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8208/1.342, allocations: 139.4 MB / 0.5915 GB, free: 7.777 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.096e-06/1.343, allocations: 0 / 0.5915 GB, free: 7.777 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005298/1.343, allocations: 124 kB / 0.5916 GB, free: 7.656 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.02893/1.372, allocations: 6.639 MB / 0.5981 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/1.372, allocations: 12.03 kB / 0.5981 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06915/1.441, allocations: 9.332 MB / 0.6073 GB, free: 7.574 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03444/1.476, allocations: 9.111 MB / 0.6161 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004544/1.476, allocations: 208 kB / 0.6163 GB, free: 14.17 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003263/1.48, allocations: 383.8 kB / 0.6167 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02646/1.506, allocations: 9.334 MB / 0.6258 GB, free: 4.457 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3825/1.889, allocations: 13.26 MB / 0.6388 GB, free: 71.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004918/1.889, allocations: 83.8 kB / 0.6389 GB, free: 71.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002798/1.892, allocations: 36.22 kB / 0.6389 GB, free: 71.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003191/1.895, allocations: 1.386 MB / 0.6402 GB, free: 71.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09504/1.99, allocations: 62.21 MB / 0.701 GB, free: 38.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00764/1.998, allocations: 4.352 MB / 0.7053 GB, free: 36.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005298/2.003, allocations: 3.032 MB / 0.7082 GB, free: 35.08 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003165/2.006, allocations: 2.385 MB / 0.7105 GB, free: 33.08 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.302e-05/2.007, allocations: 58.31 kB / 0.7106 GB, free: 33.03 MB / 458.7 MB Notification: Performance of pre-optimization done (n=251): time 7.224e-06/2.007, allocations: 0 / 0.7106 GB, free: 33.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=343): time 0.1441/2.151, allocations: 27.57 MB / 0.7375 GB, free: 24.15 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/2.151, allocations: 246.8 kB / 0.7378 GB, free: 23.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01088/2.162, allocations: 4.365 MB / 0.742 GB, free: 22.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009139/2.163, allocations: 28.48 kB / 0.742 GB, free: 22.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00379/2.166, allocations: 4.357 MB / 0.7463 GB, free: 18.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001986/2.169, allocations: 1.215 MB / 0.7475 GB, free: 18.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001154/2.17, allocations: 3.094 kB / 0.7475 GB, free: 18.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006366/2.17, allocations: 0.6665 MB / 0.7481 GB, free: 17.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007841/2.178, allocations: 3.428 MB / 0.7515 GB, free: 16.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01121/2.189, allocations: 8.073 MB / 0.7594 GB, free: 8.379 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/2.201, allocations: 5.203 MB / 0.7645 GB, free: 4.078 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001746/2.201, allocations: 48 kB / 0.7645 GB, free: 4.031 MB / 458.7 MB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.05241/2.253, allocations: 13.5 MB / 0.7777 GB, free: 8.828 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002174/2.254, allocations: 76.19 kB / 0.7778 GB, free: 8.754 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003898/2.254, allocations: 171.4 kB / 0.7779 GB, free: 8.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03214/2.286, allocations: 3.498 MB / 0.7813 GB, free: 6.188 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01222/2.298, allocations: 1.849 MB / 0.7831 GB, free: 4.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04653/2.345, allocations: 16.95 MB / 0.7997 GB, free: 6.426 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009915/2.355, allocations: 324.1 kB / 0.8 GB, free: 6.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002305/2.357, allocations: 485.7 kB / 0.8005 GB, free: 5.711 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 748 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 997 * 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%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002433/2.36, allocations: 0.5242 MB / 0.801 GB, free: 5.18 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3776/2.737, allocations: 8.848 MB / 0.8096 GB, free: 98.07 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001943/2.739, allocations: 0.498 MB / 0.8101 GB, free: 98.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03191/2.771, allocations: 8.531 MB / 0.8184 GB, free: 97.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.892e-05/2.772, allocations: 38.56 kB / 0.8185 GB, free: 97.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.771e-05/2.772, allocations: 13.81 kB / 0.8185 GB, free: 97.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.648e-05/2.772, allocations: 14.2 kB / 0.8185 GB, free: 97.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05764/2.829, allocations: 17.3 MB / 0.8354 GB, free: 96.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.313e-05/2.829, allocations: 3.562 kB / 0.8354 GB, free: 96.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004522/2.834, allocations: 496.6 kB / 0.8359 GB, free: 96.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01946/2.853, allocations: 3.05 MB / 0.8388 GB, free: 96.72 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008139/2.854, allocations: 11.06 kB / 0.8389 GB, free: 96.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03336/2.888, allocations: 14.5 MB / 0.853 GB, free: 95.47 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.58e-05/2.888, allocations: 9.438 kB / 0.853 GB, free: 95.47 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03791/2.926, allocations: 13.81 MB / 0.8665 GB, free: 89.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003824/2.93, allocations: 1.064 MB / 0.8675 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001472/2.931, allocations: 11.28 kB / 0.8676 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005195/2.936, allocations: 159 kB / 0.8677 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001247/2.938, allocations: 227.1 kB / 0.8679 GB, free: 89.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004159/2.938, allocations: 89.72 kB / 0.868 GB, free: 89.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007166/2.945, allocations: 2.98 MB / 0.8709 GB, free: 88.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.81e-07/2.945, allocations: 0 / 0.8709 GB, free: 88.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01037/2.956, allocations: 1.462 MB / 0.8723 GB, free: 88.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 255 * 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%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03986/2.996, allocations: 15.73 MB / 0.8877 GB, free: 80.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01761/3.013, allocations: 8.449 MB / 0.896 GB, free: 77.11 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/3.013, allocations: 6.438 kB / 0.896 GB, free: 77.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00728/3.021, allocations: 3.355 MB / 0.8992 GB, free: 74.31 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005278/3.026, allocations: 0.5718 MB / 0.8998 GB, free: 73.84 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04488/3.071, allocations: 15.49 MB / 0.9149 GB, free: 60.46 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01053/3.081, allocations: 4.954 MB / 0.9198 GB, free: 56.81 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007089/3.089, allocations: 3.099 MB / 0.9228 GB, free: 53.93 MB / 490.7 MB Notification: Performance of SimCode: time 1.552e-06/3.089, allocations: 0 / 0.9228 GB, free: 53.93 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.532/8.62, allocations: 153.9 MB / 1.073 GB, free: 79.48 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat