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.Directions.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.Directions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004466/0.0004466, allocations: 16 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3567, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.507, allocations: 81.97 MB / 451.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.5074, allocations: 71.95 kB / 451.4 MB, free: 8.461 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02609/0.5335, allocations: 5.799 MB / 457.2 MB, free: 2.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.544e-06/0.5335, allocations: 3.938 kB / 457.2 MB, free: 2.637 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.085e-05/0.5336, allocations: 8 kB / 457.2 MB, free: 2.629 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001376/0.535, allocations: 0.6047 MB / 457.8 MB, free: 1.973 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.535, allocations: 8.031 kB / 457.8 MB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.5352, allocations: 78.47 kB / 457.9 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.5353, allocations: 47.53 kB / 457.9 MB, free: 1.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.5357, allocations: 271.3 kB / 458.2 MB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.5358, allocations: 29 kB / 458.2 MB, free: 1.496 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.5359, allocations: 55.8 kB / 458.3 MB, free: 1.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.537, allocations: 381 kB / 458.7 MB, free: 1.051 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.537, allocations: 7.938 kB / 458.7 MB, free: 1.043 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.152e-05/0.5371, allocations: 16 kB / 458.7 MB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.5371, allocations: 8 kB / 458.7 MB, free: 1.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008797/0.538, allocations: 255.8 kB / 458.9 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.5405, allocations: 1.093 MB / 460 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000908/0.5414, allocations: 359.5 kB / 460.4 MB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.5415, allocations: 4.75 kB / 460.4 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.5415, allocations: 42.48 kB / 460.4 MB, free: 15.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 3.576e-06/0.5416, allocations: 4 kB / 460.4 MB, free: 15.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.006382/0.5479, allocations: 2.484 MB / 462.9 MB, free: 12.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.5481, allocations: 114.8 kB / 463 MB, free: 12.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.5484, allocations: 209.8 kB / 463.2 MB, free: 12.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/0.5485, allocations: 33.7 kB / 463.3 MB, free: 12.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.5487, allocations: 235.1 kB / 463.5 MB, free: 11.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.5489, allocations: 197.1 kB / 463.7 MB, free: 11.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.144e-05/0.5489, allocations: 8 kB / 463.7 MB, free: 11.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5491, allocations: 338.8 kB / 464 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004743/0.5496, allocations: 137 kB / 464.2 MB, free: 11.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000575/0.5502, allocations: 239.8 kB / 464.4 MB, free: 10.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/0.5508, allocations: 167.9 kB / 464.6 MB, free: 10.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.5508, allocations: 0 / 464.6 MB, free: 10.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001746/0.5525, allocations: 0.55 MB / 465.1 MB, free: 10.13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.5526, allocations: 7.938 kB / 465.1 MB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.5526, allocations: 7.984 kB / 465.1 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000612/0.5532, allocations: 126.6 kB / 465.3 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/0.554, allocations: 104 kB / 465.4 MB, free: 9.879 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00616/0.5602, allocations: 4.707 MB / 470.1 MB, free: 4.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.5607, allocations: 19.98 kB / 470.1 MB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-05/0.5607, allocations: 20.62 kB / 470.1 MB, free: 4.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003232/0.5611, allocations: 173.7 kB / 470.3 MB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.5612, allocations: 31.62 kB / 470.3 MB, free: 4.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.5614, allocations: 54.23 kB / 470.4 MB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.5614, allocations: 8 kB / 470.4 MB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/0.5614, allocations: 0 / 470.4 MB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.5614, allocations: 11.98 kB / 470.4 MB, free: 4.449 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.5648, allocations: 1.348 MB / 471.7 MB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.517e-06/0.5648, allocations: 3.984 kB / 471.7 MB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008388/0.5657, allocations: 99.92 kB / 471.8 MB, free: 2.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004995/0.5662, allocations: 94.52 kB / 471.9 MB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.867e-05/0.5663, allocations: 15.98 kB / 471.9 MB, free: 2.809 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3125/0.8788, allocations: 4.123 MB / 476.1 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.8788, allocations: 1.625 kB / 476.1 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.8814, allocations: 1.006 MB / 477.1 MB, free: 93.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.8816, allocations: 106.3 kB / 477.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.999e-05/0.8817, allocations: 13.56 kB / 477.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004832/0.8822, allocations: 25.89 kB / 477.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.8824, allocations: 47.39 kB / 477.3 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.8824, allocations: 15.28 kB / 477.3 MB, free: 93.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002565/0.8827, allocations: 171.4 kB / 477.4 MB, free: 93.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8827, allocations: 2.062 kB / 477.4 MB, free: 93.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001057/0.8838, allocations: 122.9 kB / 477.6 MB, free: 93.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002543/0.8863, allocations: 1.901 MB / 479.5 MB, free: 91.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.8882, allocations: 0.7756 MB / 480.2 MB, free: 91.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.8883, allocations: 0 / 480.2 MB, free: 91.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.8895, allocations: 0.5843 MB / 480.8 MB, free: 91.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007703/0.8903, allocations: 43.31 kB / 480.9 MB, free: 91.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006657/0.897, allocations: 4.377 MB / 485.2 MB, free: 88.47 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.8974, allocations: 0.8285 MB / 486.1 MB, free: 87.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/0.8978, allocations: 137.2 kB / 486.2 MB, free: 87.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/0.8978, allocations: 0 / 486.2 MB, free: 87.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.139/4.037, allocations: 10.48 MB / 496.7 MB, free: 83.11 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat does not exist to compare? outputFormat=mat