Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.09/2.09, allocations: 209.2 MB / 224.8 MB, free: 0.6055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005955/0.0005956, allocations: 12 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.4265, allocations: 48.7 MB / 331.4 MB, free: 6.391 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1581/0.5847, allocations: 76.25 MB / 407.6 MB, free: 2.047 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.5851, allocations: 67.97 kB / 407.7 MB, free: 1.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02945/0.6145, allocations: 4.709 MB / 412.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6146, allocations: 0 / 412.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.335e-05/0.6147, allocations: 8 kB / 412.4 MB, free: 13.25 MB / 346.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.001544/0.6162, allocations: 0.5494 MB / 412.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/0.6163, allocations: 12.03 kB / 412.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.6164, allocations: 58.55 kB / 413 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.6166, allocations: 31.62 kB / 413 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005533/0.6171, allocations: 266.4 kB / 413.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.508e-05/0.6172, allocations: 16.56 kB / 413.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.6173, allocations: 31.94 kB / 413.3 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.6184, allocations: 278 kB / 413.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/0.6184, allocations: 7.906 kB / 413.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.6185, allocations: 8 kB / 413.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.6185, allocations: 8 kB / 413.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.6196, allocations: 203.7 kB / 413.8 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003217/0.6228, allocations: 1.31 MB / 415.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009546/0.6238, allocations: 259.4 kB / 415.4 MB, free: 9.973 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.6239, allocations: 0 / 415.4 MB, free: 9.973 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.624, allocations: 44.11 kB / 415.4 MB, free: 9.922 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.016e-06/0.624, allocations: 7.938 kB / 415.4 MB, free: 9.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.005675/0.6297, allocations: 1.619 MB / 417.1 MB, free: 8.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.6299, allocations: 136.5 kB / 417.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.6303, allocations: 204.1 kB / 417.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.6304, allocations: 33.7 kB / 417.4 MB, free: 7.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.6306, allocations: 234.7 kB / 417.7 MB, free: 7.449 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.6308, allocations: 114.4 kB / 417.8 MB, free: 7.336 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.6308, allocations: 8 kB / 417.8 MB, free: 7.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.631, allocations: 326.8 kB / 418.1 MB, free: 7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/0.6317, allocations: 108.8 kB / 418.2 MB, free: 6.895 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/0.6325, allocations: 249.4 kB / 418.5 MB, free: 6.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.6333, allocations: 147.9 kB / 418.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.6333, allocations: 0 / 418.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001856/0.6352, allocations: 401.4 kB / 419 MB, free: 6.047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.6353, allocations: 8 kB / 419 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.6353, allocations: 4 kB / 419 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.6e-05/0.6353, allocations: 8.75 kB / 419 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.6364, allocations: 116.2 kB / 419.1 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.577e-05/0.6364, allocations: 4.781 kB / 419.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005388/0.6418, allocations: 35.86 kB / 419.2 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.642, allocations: 27.97 kB / 419.2 MB, free: 5.848 MB / 346.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 () * Number of clocked 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.0003642/0.6424, allocations: 149.7 kB / 419.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.6426, allocations: 35.62 kB / 419.4 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.6427, allocations: 33.7 kB / 419.4 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.6428, allocations: 7.938 kB / 419.4 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.6428, allocations: 4 kB / 419.4 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.6428, allocations: 0 / 419.4 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.6461, allocations: 1.013 MB / 420.4 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.6462, allocations: 0 / 420.4 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009956/0.6472, allocations: 87.95 kB / 420.5 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.556e-05/0.6472, allocations: 4 kB / 420.5 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.717e-05/0.6473, allocations: 8 kB / 420.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.031e-05/0.6473, allocations: 15.88 kB / 420.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6473, allocations: 0 / 420.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.6498, allocations: 0.8233 MB / 421.4 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.6501, allocations: 116.9 kB / 421.5 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.587e-05/0.6502, allocations: 8 kB / 421.5 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007237/0.6509, allocations: 27.98 kB / 421.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.6511, allocations: 27.92 kB / 421.5 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/0.6511, allocations: 7.984 kB / 421.5 MB, free: 3.336 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002993/0.6514, allocations: 160.5 kB / 421.7 MB, free: 3.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6515, allocations: 0 / 421.7 MB, free: 3.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001119/0.6526, allocations: 64 kB / 421.8 MB, free: 3.117 MB / 346.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 () * Number of clocked 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.003037/0.6556, allocations: 1.724 MB / 423.5 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.6572, allocations: 300 kB / 423.8 MB, free: 1.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6573, allocations: 0.625 kB / 423.8 MB, free: 1.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007243/0.658, allocations: 147.8 kB / 423.9 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009347/0.659, allocations: 40.98 kB / 424 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008924/0.6679, allocations: 5.059 MB / 429 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006466/0.6686, allocations: 0.7799 MB / 429.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.669, allocations: 95.39 kB / 429.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of SimCode: time 8.215e-06/0.669, allocations: 0 / 429.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.693/3.362, allocations: 4.441 MB / 434.3 MB, free: 6.293 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat