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.641/2.641, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006709/0.0006709, allocations: 19.98 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4237, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1588/0.5825, allocations: 82.62 MB / 452 MB, free: 7.875 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.5828, allocations: 67.91 kB / 452 MB, free: 7.809 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02321/0.606, allocations: 4.686 MB / 456.7 MB, free: 3.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6061, allocations: 0 / 456.7 MB, free: 3.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.584e-05/0.6061, allocations: 4 kB / 456.7 MB, free: 3.09 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.001249/0.6074, allocations: 0.5572 MB / 457.3 MB, free: 2.484 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.6075, allocations: 8.031 kB / 457.3 MB, free: 2.477 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.6076, allocations: 58.48 kB / 457.3 MB, free: 2.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.602e-05/0.6077, allocations: 31.62 kB / 457.4 MB, free: 2.379 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.6081, allocations: 254.5 kB / 457.6 MB, free: 2.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.6082, allocations: 20.56 kB / 457.6 MB, free: 2.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/0.6083, allocations: 35.91 kB / 457.7 MB, free: 2.035 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007923/0.6091, allocations: 281.9 kB / 458 MB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.6091, allocations: 4 kB / 458 MB, free: 1.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/0.6092, allocations: 15.95 kB / 458 MB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.6092, allocations: 4 kB / 458 MB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007768/0.61, allocations: 199.8 kB / 458.2 MB, free: 1.516 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.6125, allocations: 1.306 MB / 459.5 MB, free: 108 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007164/0.6133, allocations: 252.2 kB / 459.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.6134, allocations: 16.08 kB / 459.7 MB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.6134, allocations: 30.56 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.176e-06/0.6135, allocations: 4 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.004364/0.6178, allocations: 1.62 MB / 461.4 MB, free: 13.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.618, allocations: 132.5 kB / 461.5 MB, free: 13.78 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.6183, allocations: 200.1 kB / 461.7 MB, free: 13.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.6184, allocations: 29.7 kB / 461.8 MB, free: 13.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/0.6186, allocations: 246.6 kB / 462 MB, free: 13.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.6187, allocations: 110.3 kB / 462.1 MB, free: 13.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.6188, allocations: 12 kB / 462.1 MB, free: 13.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.6189, allocations: 326.8 kB / 462.4 MB, free: 12.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/0.6194, allocations: 112.8 kB / 462.5 MB, free: 12.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/0.62, allocations: 245.5 kB / 462.8 MB, free: 12.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006019/0.6206, allocations: 148.4 kB / 462.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.6207, allocations: 4 kB / 462.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001395/0.6221, allocations: 405 kB / 463.3 MB, free: 11.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.6221, allocations: 8 kB / 463.3 MB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.6221, allocations: 4 kB / 463.3 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.689e-05/0.6222, allocations: 8 kB / 463.3 MB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000741/0.6229, allocations: 112.1 kB / 463.5 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/0.623, allocations: 19.89 kB / 463.5 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004003/0.6234, allocations: 27.98 kB / 463.5 MB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.6235, allocations: 16 kB / 463.5 MB, free: 11.69 MB / 394.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.0002602/0.6237, allocations: 149.7 kB / 463.7 MB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.6239, allocations: 31.64 kB / 463.7 MB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.624, allocations: 37.72 kB / 463.7 MB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.624, allocations: 4 kB / 463.7 MB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.624, allocations: 0 / 463.7 MB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.624, allocations: 11.94 kB / 463.7 MB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00249/0.6265, allocations: 1.009 MB / 464.8 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.6266, allocations: 0 / 464.8 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007521/0.6274, allocations: 95.94 kB / 464.8 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.6274, allocations: 0 / 464.8 MB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.6274, allocations: 8.281 kB / 464.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/0.6274, allocations: 4.438 kB / 464.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.6275, allocations: 0 / 464.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.6293, allocations: 0.8272 MB / 465.7 MB, free: 9.387 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.6295, allocations: 112.8 kB / 465.8 MB, free: 9.258 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.504e-05/0.6296, allocations: 7.984 kB / 465.8 MB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004801/0.6301, allocations: 27.98 kB / 465.8 MB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.6302, allocations: 27.91 kB / 465.9 MB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.6302, allocations: 8 kB / 465.9 MB, free: 9.188 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002373/0.6305, allocations: 156.5 kB / 466 MB, free: 9.031 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6305, allocations: 0 / 466 MB, free: 9.031 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007294/0.6312, allocations: 72.25 kB / 466.1 MB, free: 8.961 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 () * 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.002469/0.6337, allocations: 1.716 MB / 467.8 MB, free: 7.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.635, allocations: 296.3 kB / 468.1 MB, free: 6.898 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.635, allocations: 0 / 468.1 MB, free: 6.898 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005403/0.6356, allocations: 144.1 kB / 468.2 MB, free: 6.758 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006784/0.6362, allocations: 37.17 kB / 468.3 MB, free: 6.723 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006969/0.6432, allocations: 5.058 MB / 473.3 MB, free: 1.504 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000519/0.6438, allocations: 0.7761 MB / 474.1 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.6441, allocations: 95.41 kB / 474.2 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6441, allocations: 0 / 474.2 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.828/3.472, allocations: 4.434 MB / 478.6 MB, free: 96.79 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