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.Directions3.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.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.251/2.251, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.556e-05/1.577e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3351, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.492, allocations: 79.02 MB / 437.1 MB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4923, allocations: 67.95 kB / 437.2 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007862/0.5002, allocations: 1.946 MB / 439.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5002, allocations: 3.938 kB / 439.2 MB, free: 13.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.5003, allocations: 0 / 439.2 MB, free: 13.72 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004968/0.5008, allocations: 378.4 kB / 439.5 MB, free: 13.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.5008, allocations: 16.03 kB / 439.5 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.84e-05/0.5009, allocations: 11.86 kB / 439.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.501, allocations: 174.9 kB / 439.7 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.5011, allocations: 4 kB / 439.7 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.46e-05/0.5011, allocations: 15.98 kB / 439.7 MB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00017/0.5013, allocations: 44.47 kB / 439.8 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.5016, allocations: 104.8 kB / 439.9 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.5016, allocations: 4 kB / 439.9 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.5016, allocations: 0 / 439.9 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.5017, allocations: 11.95 kB / 439.9 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009721/0.5026, allocations: 0.5104 MB / 440.4 MB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.5028, allocations: 77.14 kB / 440.5 MB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.213e-05/0.5029, allocations: 33.64 kB / 440.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.5029, allocations: 0 / 440.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.503, allocations: 34.56 kB / 440.6 MB, free: 12.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.863e-06/0.503, allocations: 4 kB / 440.6 MB, free: 12.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003988/0.5034, allocations: 103.5 kB / 440.7 MB, free: 12.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.5035, allocations: 77.11 kB / 440.7 MB, free: 11.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.5036, allocations: 112.8 kB / 440.8 MB, free: 11.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.5036, allocations: 29.7 kB / 440.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.455e-05/0.5037, allocations: 178.2 kB / 441 MB, free: 11.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.5038, allocations: 31.55 kB / 441.1 MB, free: 11.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.5038, allocations: 4 kB / 441.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.5039, allocations: 318.8 kB / 441.4 MB, free: 11.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.227e-05/0.504, allocations: 16 kB / 441.4 MB, free: 11.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.5041, allocations: 80.52 kB / 441.5 MB, free: 11.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.786e-05/0.5042, allocations: 35.98 kB / 441.5 MB, free: 11.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.5042, allocations: 0 / 441.5 MB, free: 11.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003886/0.5046, allocations: 155 kB / 441.7 MB, free: 10.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.5047, allocations: 8 kB / 441.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.5047, allocations: 0 / 441.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/0.5049, allocations: 33.7 kB / 441.7 MB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.5051, allocations: 23.94 kB / 441.7 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/0.5073, allocations: 2.434 MB / 444.2 MB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.5074, allocations: 7.938 kB / 444.2 MB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.5075, allocations: 4 kB / 444.2 MB, free: 8.172 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.5076, allocations: 122.9 kB / 444.3 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003043/0.5079, allocations: 107.3 kB / 444.4 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.508, allocations: 11.84 kB / 444.4 MB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.972e-05/0.508, allocations: 12.33 kB / 444.4 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.508, allocations: 4 kB / 444.4 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.5081, allocations: 0 / 444.4 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.5081, allocations: 3.953 kB / 444.4 MB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003102/0.5084, allocations: 170.2 kB / 444.6 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.5084, allocations: 4 kB / 444.6 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.5086, allocations: 8 kB / 444.6 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/0.5088, allocations: 37.7 kB / 444.7 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.5088, allocations: 0 / 444.7 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002149/0.511, allocations: 2.431 MB / 447.1 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/0.511, allocations: 7.922 kB / 447.1 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004176/0.5114, allocations: 302 kB / 447.4 MB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.5115, allocations: 81.11 kB / 447.5 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.5115, allocations: 3.953 kB / 447.5 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.5117, allocations: 4.062 kB / 447.5 MB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/0.5118, allocations: 11.97 kB / 447.5 MB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.5118, allocations: 4 kB / 447.5 MB, free: 4.527 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.142e-05/0.5119, allocations: 91.27 kB / 447.6 MB, free: 4.438 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5119, allocations: 0 / 447.6 MB, free: 4.438 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005073/0.5124, allocations: 39.97 kB / 447.6 MB, free: 4.398 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007372/0.5131, allocations: 0.9126 MB / 448.5 MB, free: 3.449 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004832/0.5136, allocations: 267.9 kB / 448.8 MB, free: 3.168 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5137, allocations: 0 / 448.8 MB, free: 3.168 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.514, allocations: 247.4 kB / 449 MB, free: 2.906 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.5145, allocations: 31.97 kB / 449.1 MB, free: 2.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.5157, allocations: 453.7 kB / 449.5 MB, free: 2.387 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.5161, allocations: 0.7084 MB / 450.2 MB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.5161, allocations: 40.06 kB / 450.3 MB, free: 1.613 MB / 378.7 MB Notification: Performance of SimCode: time 9.31e-07/0.5161, allocations: 0 / 450.3 MB, free: 1.613 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.693/3.209, allocations: 2.88 MB / 453.1 MB, free: 14.73 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat does not exist to compare? outputFormat=mat