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/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.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.46/2.46, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.03e-05, allocations: 0 / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.415/0.4151, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1537/0.5689, allocations: 82.53 MB / 447.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.5692, allocations: 63.97 kB / 447.2 MB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02225/0.5914, allocations: 4.706 MB / 451.9 MB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5915, allocations: 0 / 451.9 MB, free: 9.195 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.5915, allocations: 8 kB / 451.9 MB, free: 9.188 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.00104/0.5926, allocations: 0.5139 MB / 452.4 MB, free: 8.629 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.5927, allocations: 12.03 kB / 452.4 MB, free: 8.617 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.756e-05/0.5928, allocations: 62.53 kB / 452.5 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.107e-05/0.5929, allocations: 35.62 kB / 452.5 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004233/0.5933, allocations: 247.5 kB / 452.8 MB, free: 8.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.5933, allocations: 16.56 kB / 452.8 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.5934, allocations: 32 kB / 452.8 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/0.5941, allocations: 253.9 kB / 453.1 MB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.5941, allocations: 3.906 kB / 453.1 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.5942, allocations: 15.95 kB / 453.1 MB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.5942, allocations: 7.281 kB / 453.1 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004393/0.5946, allocations: 151.8 kB / 453.3 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.5971, allocations: 1.306 MB / 454.6 MB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.5976, allocations: 219.4 kB / 454.8 MB, free: 6.078 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.5978, allocations: 83.44 kB / 454.9 MB, free: 5.984 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.5979, allocations: 4 kB / 454.9 MB, free: 5.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.5979, allocations: 46.48 kB / 454.9 MB, free: 5.926 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.396e-06/0.598, allocations: 0 / 454.9 MB, free: 5.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002904/0.6009, allocations: 1.394 MB / 456.3 MB, free: 4.328 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.601, allocations: 136.5 kB / 456.4 MB, free: 4.164 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.6013, allocations: 197.1 kB / 456.6 MB, free: 3.957 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.6014, allocations: 33.7 kB / 456.7 MB, free: 3.918 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.6015, allocations: 234.6 kB / 456.9 MB, free: 3.688 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.6017, allocations: 118.3 kB / 457 MB, free: 3.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.6017, allocations: 12.88 kB / 457 MB, free: 3.559 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6019, allocations: 326.8 kB / 457.3 MB, free: 3.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.6021, allocations: 72.81 kB / 457.4 MB, free: 3.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.6025, allocations: 205.5 kB / 457.6 MB, free: 2.902 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.6028, allocations: 112 kB / 457.7 MB, free: 2.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.6028, allocations: 0 / 457.7 MB, free: 2.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008261/0.6037, allocations: 313.1 kB / 458 MB, free: 2.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.6037, allocations: 4.406 kB / 458 MB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.6037, allocations: 8 kB / 458 MB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.6038, allocations: 11.94 kB / 458 MB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007925/0.6046, allocations: 111.8 kB / 458.2 MB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/0.6046, allocations: 11.92 kB / 458.2 MB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/0.605, allocations: 39.89 kB / 458.2 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.6051, allocations: 16 kB / 458.2 MB, free: 2.281 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.0001536/0.6053, allocations: 124.9 kB / 458.3 MB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.6054, allocations: 27.72 kB / 458.4 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.6055, allocations: 33.83 kB / 458.4 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.6056, allocations: 4 kB / 458.4 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.6056, allocations: 3.953 kB / 458.4 MB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.6056, allocations: 7.984 kB / 458.4 MB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.6076, allocations: 0.9349 MB / 459.3 MB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6076, allocations: 0 / 459.3 MB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007837/0.6084, allocations: 87.88 kB / 459.4 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.6084, allocations: 4 kB / 459.4 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.6085, allocations: 8 kB / 459.4 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.6085, allocations: 4.547 kB / 459.5 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.6085, allocations: 4.344 kB / 459.5 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.6096, allocations: 0.7098 MB / 460.2 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.6097, allocations: 108.7 kB / 460.3 MB, free: 84 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.11e-05/0.6098, allocations: 8.062 kB / 460.3 MB, free: 76 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.6103, allocations: 24.22 kB / 460.3 MB, free: 52 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.6104, allocations: 31.91 kB / 460.3 MB, free: 20 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.095e-05/0.6105, allocations: 11.98 kB / 460.3 MB, free: 8 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002353/0.6107, allocations: 153.4 kB / 460.5 MB, free: 15.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.6107, allocations: 0 / 460.5 MB, free: 15.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006589/0.6114, allocations: 68.25 kB / 460.6 MB, free: 15.79 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.001598/0.613, allocations: 1.607 MB / 462.2 MB, free: 14.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.6137, allocations: 223.7 kB / 462.4 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.6137, allocations: 0 / 462.4 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003031/0.614, allocations: 108.7 kB / 462.5 MB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006568/0.6147, allocations: 32.48 kB / 462.5 MB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.6172, allocations: 0.8209 MB / 463.3 MB, free: 12.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005191/0.6177, allocations: 0.7767 MB / 464.1 MB, free: 12.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.618, allocations: 95.41 kB / 464.2 MB, free: 11.99 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/0.618, allocations: 0 / 464.2 MB, free: 11.99 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.459/3.077, allocations: 4.438 MB / 468.7 MB, free: 7.555 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