Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.469/2.469, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006017/0.0006017, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3439, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4936, allocations: 81.89 MB / 451.2 MB, free: 8.617 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.4939, allocations: 71.8 kB / 451.3 MB, free: 8.551 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0269/0.5208, allocations: 5.767 MB / 457.1 MB, free: 2.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5209, allocations: 0 / 457.1 MB, free: 2.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.5209, allocations: 8 kB / 457.1 MB, free: 2.762 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001282/0.5222, allocations: 0.5852 MB / 457.7 MB, free: 2.125 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.5223, allocations: 11.97 kB / 457.7 MB, free: 2.113 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.5224, allocations: 78.52 kB / 457.8 MB, free: 2.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.5225, allocations: 39.53 kB / 457.8 MB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.5229, allocations: 263.2 kB / 458.1 MB, free: 1.688 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.523, allocations: 25 kB / 458.1 MB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.5231, allocations: 47.91 kB / 458.1 MB, free: 1.617 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009916/0.5241, allocations: 394 kB / 458.5 MB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.523e-05/0.5242, allocations: 7.938 kB / 458.5 MB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.5242, allocations: 16 kB / 458.5 MB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.5243, allocations: 12 kB / 458.5 MB, free: 1.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007593/0.525, allocations: 227.7 kB / 458.8 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/0.5286, allocations: 1.723 MB / 460.5 MB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.5294, allocations: 262.3 kB / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.776e-05/0.5294, allocations: 7.938 kB / 460.8 MB, free: 14.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.5295, allocations: 42.69 kB / 460.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.546e-06/0.5295, allocations: 0 / 460.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.001127/0.5306, allocations: 281.3 kB / 461.1 MB, free: 14.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.5308, allocations: 217.6 kB / 461.3 MB, free: 14.19 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000432/0.5312, allocations: 238 kB / 461.5 MB, free: 13.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.5313, allocations: 33.7 kB / 461.5 MB, free: 13.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002374/0.5315, allocations: 297.8 kB / 461.8 MB, free: 13.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.5317, allocations: 110.5 kB / 461.9 MB, free: 13.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.5317, allocations: 12 kB / 462 MB, free: 13.49 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.5319, allocations: 330.8 kB / 462.3 MB, free: 13.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.5323, allocations: 101.3 kB / 462.4 MB, free: 13.06 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/0.5329, allocations: 432.8 kB / 462.8 MB, free: 12.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005034/0.5334, allocations: 172.2 kB / 463 MB, free: 12.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.5334, allocations: 0 / 463 MB, free: 12.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001446/0.5349, allocations: 0.517 MB / 463.5 MB, free: 11.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.535, allocations: 12 kB / 463.5 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.535, allocations: 15.94 kB / 463.5 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.916e-05/0.535, allocations: 16 kB / 463.5 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008668/0.5359, allocations: 147.8 kB / 463.7 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-05/0.536, allocations: 27.83 kB / 463.7 MB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004903/0.5365, allocations: 75.58 kB / 463.8 MB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-05/0.5366, allocations: 32 kB / 463.8 MB, free: 11.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.5369, allocations: 177.5 kB / 464 MB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.5371, allocations: 35.62 kB / 464 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.5372, allocations: 33.78 kB / 464 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.5372, allocations: 4 kB / 464.1 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.5372, allocations: 0 / 464.1 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.5373, allocations: 11.94 kB / 464.1 MB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/0.5393, allocations: 0.6397 MB / 464.7 MB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.5393, allocations: 0 / 464.7 MB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009257/0.5403, allocations: 95.88 kB / 464.8 MB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.206e-05/0.5403, allocations: 4 kB / 464.8 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.5404, allocations: 8 kB / 464.8 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.158e-05/0.5404, allocations: 11.89 kB / 464.8 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/0.5404, allocations: 8.688 kB / 464.8 MB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.5417, allocations: 0.9349 MB / 465.8 MB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.5419, allocations: 108.9 kB / 465.9 MB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.667e-05/0.542, allocations: 12 kB / 465.9 MB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.5425, allocations: 12 kB / 465.9 MB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.523e-05/0.5426, allocations: 27.97 kB / 465.9 MB, free: 9.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.5426, allocations: 7.984 kB / 465.9 MB, free: 9.168 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002647/0.5429, allocations: 185.9 kB / 466.1 MB, free: 8.988 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5429, allocations: 0 / 466.1 MB, free: 8.988 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001075/0.544, allocations: 107.7 kB / 466.2 MB, free: 8.883 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001867/0.5459, allocations: 2.041 MB / 468.3 MB, free: 6.777 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000945/0.5469, allocations: 290.6 kB / 468.5 MB, free: 6.496 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.5469, allocations: 0 / 468.5 MB, free: 6.496 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.5473, allocations: 96.14 kB / 468.6 MB, free: 6.402 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009939/0.5483, allocations: 64.97 kB / 468.7 MB, free: 6.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3262/0.8745, allocations: 10.93 MB / 479.6 MB, free: 92.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.875, allocations: 0.8042 MB / 480.4 MB, free: 91.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.8753, allocations: 119.4 kB / 480.5 MB, free: 91.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.613e-06/0.8753, allocations: 0 / 480.5 MB, free: 91.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.997/3.873, allocations: 5.565 MB / 486.1 MB, free: 91.4 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat