Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.First.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003657, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.09166, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.4551, allocations: 67.86 MB / 340 MB, free: 5.988 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.4554, allocations: 72.14 kB / 340 MB, free: 5.949 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01588/0.4713, allocations: 3.85 MB / 343.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4714, allocations: 4 kB / 343.9 MB, free: 2.742 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.4714, allocations: 4 kB / 343.9 MB, free: 2.738 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008818/0.4723, allocations: 499.1 kB / 344.4 MB, free: 2.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4724, allocations: 8.031 kB / 344.4 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.799e-05/0.4724, allocations: 56.23 kB / 344.4 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.124e-05/0.4725, allocations: 23.72 kB / 344.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.4729, allocations: 237.4 kB / 344.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.4729, allocations: 18.02 kB / 344.7 MB, free: 1.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.473, allocations: 29.03 kB / 344.7 MB, free: 1.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/0.4735, allocations: 189.2 kB / 344.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.4735, allocations: 4 kB / 344.9 MB, free: 1.695 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.4736, allocations: 11.25 kB / 344.9 MB, free: 1.691 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.4736, allocations: 8 kB / 344.9 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.474, allocations: 142 kB / 345.1 MB, free: 1.586 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.4753, allocations: 0.6275 MB / 345.7 MB, free: 1.027 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004285/0.4758, allocations: 175.8 kB / 345.9 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.4758, allocations: 4 kB / 345.9 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.4759, allocations: 33.81 kB / 345.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.764e-06/0.4759, allocations: 0 / 345.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.002858/0.4787, allocations: 1.084 MB / 347 MB, free: 15.88 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.4788, allocations: 55.41 kB / 347.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.479, allocations: 159.8 kB / 347.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.4791, allocations: 30.95 kB / 347.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.4792, allocations: 200 kB / 347.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.4793, allocations: 114.4 kB / 347.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.4794, allocations: 3.938 kB / 347.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4795, allocations: 330.5 kB / 347.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.4798, allocations: 72.41 kB / 348 MB, free: 14.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.48, allocations: 103.4 kB / 348.1 MB, free: 14.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.4803, allocations: 92.27 kB / 348.1 MB, free: 14.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4803, allocations: 8 kB / 348.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000762/0.4811, allocations: 275.8 kB / 348.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.4811, allocations: 11.94 kB / 348.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.4812, allocations: 3.938 kB / 348.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/0.4814, allocations: 41.34 kB / 348.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.4818, allocations: 63.41 kB / 348.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.4838, allocations: 1.581 MB / 350.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.484, allocations: 7.625 kB / 350.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/0.4841, allocations: 15.5 kB / 350.1 MB, free: 12.93 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001911/0.4843, allocations: 135.7 kB / 350.3 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.4843, allocations: 27.7 kB / 350.3 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.016e-05/0.4844, allocations: 28.16 kB / 350.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.4844, allocations: 12.05 kB / 350.3 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4845, allocations: 0 / 350.3 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.4845, allocations: 3.984 kB / 350.3 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.4861, allocations: 0.7932 MB / 351.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4862, allocations: 0 / 351.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005135/0.4867, allocations: 59.66 kB / 351.2 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/0.4869, allocations: 32.56 kB / 351.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.4869, allocations: 15.61 kB / 351.2 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.4885, allocations: 1.387 MB / 352.6 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4885, allocations: 0 / 352.6 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.4896, allocations: 0.5134 MB / 353.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.4898, allocations: 115.9 kB / 353.3 MB, free: 9.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.389e-05/0.4898, allocations: 7.562 kB / 353.3 MB, free: 9.926 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.49, allocations: 7.75 kB / 353.3 MB, free: 9.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.484e-05/0.4901, allocations: 31.73 kB / 353.3 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.4902, allocations: 4 kB / 353.3 MB, free: 9.891 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001581/0.4903, allocations: 141.4 kB / 353.4 MB, free: 9.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4903, allocations: 0 / 353.4 MB, free: 9.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006791/0.491, allocations: 69.56 kB / 353.5 MB, free: 9.711 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001548/0.4926, allocations: 1.274 MB / 354.8 MB, free: 8.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009235/0.4935, allocations: 337.2 kB / 355.1 MB, free: 8.215 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4936, allocations: 0 / 355.1 MB, free: 8.215 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.4941, allocations: 248 kB / 355.4 MB, free: 7.992 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.4946, allocations: 35.23 kB / 355.4 MB, free: 7.969 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/0.4986, allocations: 2.02 MB / 357.4 MB, free: 6.074 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.4991, allocations: 0.7678 MB / 358.2 MB, free: 5.277 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.4992, allocations: 70.97 kB / 358.2 MB, free: 5.25 MB / 282.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4992, allocations: 0 / 358.2 MB, free: 5.25 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.687/3.187, allocations: 4.757 MB / 363 MB, free: 0.5352 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat