Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.483/2.483, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004315, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3643, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.5496, allocations: 100.8 MB / 470.2 MB, free: 5.605 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.55, allocations: 87.89 kB / 470.3 MB, free: 5.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7489/1.299, allocations: 114.4 MB / 0.571 GB, free: 15.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.196e-06/1.299, allocations: 4 kB / 0.571 GB, free: 15.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003793/1.299, allocations: 108 kB / 0.5711 GB, free: 15.77 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: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.02551/1.325, allocations: 5.936 MB / 0.5769 GB, free: 9.754 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/1.325, allocations: 8.031 kB / 0.5769 GB, free: 9.746 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004694/1.33, allocations: 0.9807 MB / 0.5779 GB, free: 8.754 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05339/1.383, allocations: 6.942 MB / 0.5847 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02625/1.409, allocations: 6.899 MB / 0.5914 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006543/1.41, allocations: 418.7 kB / 0.5918 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003249/1.413, allocations: 0.5465 MB / 0.5923 GB, free: 9.879 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04356/1.457, allocations: 13.35 MB / 0.6054 GB, free: 11.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004242/1.457, allocations: 79.34 kB / 0.6055 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00291/1.46, allocations: 267.9 kB / 0.6057 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/1.464, allocations: 1.247 MB / 0.6069 GB, free: 9.668 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03628/1.5, allocations: 10.67 MB / 0.6173 GB, free: 14.99 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4505/1.951, allocations: 59.66 MB / 0.6756 GB, free: 54.83 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01887/1.97, allocations: 4.643 MB / 0.6801 GB, free: 54.12 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01647/1.986, allocations: 6.503 MB / 0.6865 GB, free: 52.84 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/1.986, allocations: 49.91 kB / 0.6865 GB, free: 52.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=183): time 5.871e-06/1.986, allocations: 2.594 kB / 0.6865 GB, free: 52.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=195): time 0.06915/2.055, allocations: 16.9 MB / 0.7031 GB, free: 47.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.538e-05/2.056, allocations: 232.3 kB / 0.7033 GB, free: 47.72 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01326/2.069, allocations: 5.215 MB / 0.7084 GB, free: 47.31 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004806/2.069, allocations: 51.39 kB / 0.7084 GB, free: 47.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003803/2.073, allocations: 3.929 MB / 0.7123 GB, free: 45.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001293/2.075, allocations: 0.7743 MB / 0.713 GB, free: 44.82 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/2.076, allocations: 140.3 kB / 0.7131 GB, free: 44.82 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006248/2.076, allocations: 0.6109 MB / 0.7137 GB, free: 44.49 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00617/2.082, allocations: 2.298 MB / 0.716 GB, free: 44.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00912/2.092, allocations: 6.793 MB / 0.7226 GB, free: 38.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008933/2.101, allocations: 3.879 MB / 0.7264 GB, free: 38.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002026/2.101, allocations: 44.66 kB / 0.7264 GB, free: 38.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02431/2.125, allocations: 9.038 MB / 0.7353 GB, free: 35.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001373/2.125, allocations: 74.41 kB / 0.7353 GB, free: 35.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002605/2.126, allocations: 165.8 kB / 0.7355 GB, free: 35.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002342/2.128, allocations: 0.614 MB / 0.7361 GB, free: 35.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009895/2.138, allocations: 1.645 MB / 0.7377 GB, free: 35.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009322/2.147, allocations: 5.827 MB / 0.7434 GB, free: 31.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008537/2.156, allocations: 385.8 kB / 0.7438 GB, free: 31.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/2.158, allocations: 441.8 kB / 0.7442 GB, free: 31.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (882): * Single equations (assignments): 877 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007825/2.165, allocations: 2.699 MB / 0.7468 GB, free: 29.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/2.167, allocations: 492.7 kB / 0.7473 GB, free: 29.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009463/2.176, allocations: 3.055 MB / 0.7503 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.344e-05/2.176, allocations: 29.17 kB / 0.7503 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/2.177, allocations: 7.688 kB / 0.7503 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.128e-05/2.177, allocations: 7.594 kB / 0.7503 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02675/2.203, allocations: 8.468 MB / 0.7586 GB, free: 23.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.19e-05/2.203, allocations: 4 kB / 0.7586 GB, free: 23.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/2.207, allocations: 327.9 kB / 0.7589 GB, free: 23.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/2.208, allocations: 366 kB / 0.7593 GB, free: 23.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004589/2.209, allocations: 43.23 kB / 0.7593 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007856/2.217, allocations: 5.162 MB / 0.7643 GB, free: 18.14 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/2.217, allocations: 4 kB / 0.7643 GB, free: 18.13 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/2.23, allocations: 6.154 MB / 0.7703 GB, free: 12.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003121/2.233, allocations: 0.7993 MB / 0.7711 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001688/2.235, allocations: 28 kB / 0.7712 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004002/2.239, allocations: 97.95 kB / 0.7712 GB, free: 11.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006709/2.239, allocations: 121 kB / 0.7714 GB, free: 11.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/2.24, allocations: 50.81 kB / 0.7714 GB, free: 11.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01044/2.25, allocations: 3.733 MB / 0.7751 GB, free: 8.457 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.25, allocations: 0 / 0.7751 GB, free: 8.457 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009333/2.26, allocations: 1.219 MB / 0.7762 GB, free: 7.246 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (154): * Single equations (assignments): 149 * 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 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01409/2.274, allocations: 7.339 MB / 0.7834 GB, free: 484 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01804/2.292, allocations: 5.885 MB / 0.7892 GB, free: 11.92 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/2.292, allocations: 4 kB / 0.7892 GB, free: 11.92 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004423/2.296, allocations: 1.711 MB / 0.7908 GB, free: 10.38 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005399/2.302, allocations: 0.5995 MB / 0.7914 GB, free: 9.883 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5187/2.82, allocations: 157.9 MB / 0.9457 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009959/2.831, allocations: 4.237 MB / 0.9498 GB, free: 64.64 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006484/2.837, allocations: 2.627 MB / 0.9524 GB, free: 64.63 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/2.837, allocations: 0 / 0.9524 GB, free: 64.63 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.307/8.144, allocations: 153 MB / 1.102 GB, free: 148.4 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat