Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.691/2.691, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.618e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3591, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.5154, allocations: 81.86 MB / 440 MB, free: 12.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.5157, allocations: 59.97 kB / 440 MB, free: 12.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02221/0.5379, allocations: 4.658 MB / 444.7 MB, free: 8.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.5e-06/0.538, allocations: 4 kB / 444.7 MB, free: 8.227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.538, allocations: 4 kB / 444.7 MB, free: 8.223 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001093/0.5391, allocations: 0.5254 MB / 445.2 MB, free: 7.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.5392, allocations: 8.031 kB / 445.2 MB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.5393, allocations: 31.62 kB / 445.3 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.5397, allocations: 255.6 kB / 445.5 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.5398, allocations: 8 kB / 445.5 MB, free: 7.316 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/0.5399, allocations: 16 kB / 445.5 MB, free: 7.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004245/0.5403, allocations: 133.1 kB / 445.7 MB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.5409, allocations: 220.8 kB / 445.9 MB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.5409, allocations: 7.906 kB / 445.9 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.541, allocations: 7.953 kB / 445.9 MB, free: 6.918 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.541, allocations: 4 kB / 445.9 MB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.5434, allocations: 1.255 MB / 447.2 MB, free: 5.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004794/0.5439, allocations: 202.6 kB / 447.4 MB, free: 5.332 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.5441, allocations: 83.38 kB / 447.4 MB, free: 5.238 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.5441, allocations: 0 / 447.4 MB, free: 5.238 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.5442, allocations: 38.56 kB / 447.5 MB, free: 5.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.846e-06/0.5442, allocations: 0 / 447.5 MB, free: 5.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002901/0.5471, allocations: 1.332 MB / 448.8 MB, free: 3.652 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.821e-05/0.5472, allocations: 136.5 kB / 448.9 MB, free: 3.488 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.5475, allocations: 188.4 kB / 449.1 MB, free: 3.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.5476, allocations: 25.7 kB / 449.1 MB, free: 3.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.5477, allocations: 234.9 kB / 449.4 MB, free: 3.027 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.5479, allocations: 114.4 kB / 449.5 MB, free: 2.914 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.917e-05/0.5479, allocations: 96 / 449.5 MB, free: 2.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5481, allocations: 330.7 kB / 449.8 MB, free: 2.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.5483, allocations: 64.81 kB / 449.9 MB, free: 2.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003253/0.5486, allocations: 198.7 kB / 450.1 MB, free: 2.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.5489, allocations: 92.38 kB / 450.2 MB, free: 2.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.5489, allocations: 7.984 kB / 450.2 MB, free: 2.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007535/0.5497, allocations: 281.2 kB / 450.4 MB, free: 1.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.5497, allocations: 8 kB / 450.4 MB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.5497, allocations: 4.406 kB / 450.5 MB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/0.5498, allocations: 12 kB / 450.5 MB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007811/0.5506, allocations: 103.8 kB / 450.6 MB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.878e-05/0.5506, allocations: 11.98 kB / 450.6 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004219/0.551, allocations: 31.92 kB / 450.6 MB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.5511, allocations: 19.95 kB / 450.6 MB, free: 1.703 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000168/0.5513, allocations: 112.9 kB / 450.7 MB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006533/0.5519, allocations: 205.1 kB / 450.9 MB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.5521, allocations: 27.72 kB / 451 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.5522, allocations: 29.83 kB / 451 MB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.527e-06/0.5522, allocations: 4 kB / 451 MB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.5522, allocations: 3.953 kB / 451 MB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.5523, allocations: 7.938 kB / 451 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.5542, allocations: 0.8772 MB / 451.9 MB, free: 392 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.5542, allocations: 4 kB / 451.9 MB, free: 388 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007508/0.555, allocations: 79.89 kB / 452 MB, free: 308 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/0.555, allocations: 4 kB / 452 MB, free: 304 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.555, allocations: 3.984 kB / 452 MB, free: 300 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.5551, allocations: 4 kB / 452 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5551, allocations: 4.062 kB / 452 MB, free: 292 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5561, allocations: 0.6827 MB / 452.7 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.5563, allocations: 108.8 kB / 452.8 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.5563, allocations: 0 / 452.8 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005232/0.5569, allocations: 19.98 kB / 452.8 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.557, allocations: 31.91 kB / 452.8 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.557, allocations: 11.98 kB / 452.8 MB, free: 15.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001977/0.5573, allocations: 148.5 kB / 453 MB, free: 15.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5573, allocations: 0 / 453 MB, free: 15.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007349/0.558, allocations: 55.94 kB / 453 MB, free: 15.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.001511/0.5595, allocations: 1.567 MB / 454.6 MB, free: 13.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006344/0.5602, allocations: 191.8 kB / 454.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.5602, allocations: 0 / 454.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.5605, allocations: 95.86 kB / 454.9 MB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007242/0.5613, allocations: 35.34 kB / 454.9 MB, free: 13.22 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/0.5637, allocations: 0.796 MB / 455.7 MB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004634/0.5642, allocations: 0.7838 MB / 456.5 MB, free: 11.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003101/0.5645, allocations: 95.41 kB / 456.6 MB, free: 11.45 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5646, allocations: 0 / 456.6 MB, free: 11.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.55/3.114, allocations: 4.423 MB / 461 MB, free: 7.035 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat