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.Backlash.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.Backlash,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 171.2 MB / 186.8 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004961/0.0004961, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1056, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3631/0.4687, allocations: 67.45 MB / 339.6 MB, free: 5.93 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/0.4691, allocations: 66.34 kB / 339.6 MB, free: 5.895 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02941/0.4985, allocations: 4.733 MB / 344.4 MB, free: 1.898 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4986, allocations: 0 / 344.4 MB, free: 1.898 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.4986, allocations: 4 kB / 344.4 MB, free: 1.895 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001764/0.5004, allocations: 0.517 MB / 344.9 MB, free: 1.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/0.5005, allocations: 12.03 kB / 344.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.5006, allocations: 52.23 kB / 344.9 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.5007, allocations: 19.81 kB / 345 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.5012, allocations: 225.2 kB / 345.2 MB, free: 1.016 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004179/0.5016, allocations: 72.88 kB / 345.3 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.844e-05/0.5017, allocations: 19.09 kB / 345.3 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.503, allocations: 257.3 kB / 345.5 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/0.503, allocations: 4 kB / 345.5 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.81e-05/0.5031, allocations: 6.188 kB / 345.5 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.5031, allocations: 4 kB / 345.5 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.5049, allocations: 269.2 kB / 345.8 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.5068, allocations: 0.6754 MB / 346.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.5083, allocations: 270.9 kB / 346.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.5084, allocations: 4 kB / 346.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/0.5084, allocations: 34.56 kB / 346.8 MB, free: 15.6 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 4.057e-06/0.5085, allocations: 4 kB / 346.8 MB, free: 15.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.006652/0.5151, allocations: 1.538 MB / 348.3 MB, free: 14.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.78e-05/0.5152, allocations: 85.09 kB / 348.4 MB, free: 13.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.5155, allocations: 139.7 kB / 348.5 MB, free: 13.83 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.168e-05/0.5156, allocations: 37.14 kB / 348.6 MB, free: 13.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.5158, allocations: 186 kB / 348.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.5159, allocations: 91.97 kB / 348.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.516, allocations: 3.438 kB / 348.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.5162, allocations: 322.3 kB / 349.2 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004167/0.5166, allocations: 63.66 kB / 349.2 MB, free: 13.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004534/0.5171, allocations: 113 kB / 349.3 MB, free: 13.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.5176, allocations: 86.17 kB / 349.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.5176, allocations: 0 / 349.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001173/0.5188, allocations: 237 kB / 349.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.5188, allocations: 9.359 kB / 349.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.5188, allocations: 0 / 349.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.5189, allocations: 4 kB / 349.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.5199, allocations: 99.92 kB / 349.8 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/0.52, allocations: 8 kB / 349.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.5203, allocations: 15.3 kB / 349.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.5204, allocations: 11.44 kB / 349.8 MB, free: 12.7 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (31): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002376/0.5207, allocations: 138.3 kB / 349.9 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5208, allocations: 19.72 kB / 350 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.418e-05/0.5209, allocations: 29.78 kB / 350 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.5209, allocations: 4 kB / 350 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.521, allocations: 0 / 350 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.521, allocations: 0 / 350 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.5243, allocations: 0.9339 MB / 350.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.5244, allocations: 0 / 350.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.5257, allocations: 119.7 kB / 351 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/0.5257, allocations: 4 kB / 351 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.423e-05/0.5258, allocations: 7.125 kB / 351 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.046e-05/0.5258, allocations: 4 kB / 351.1 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.5258, allocations: 0 / 351.1 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002975/0.5288, allocations: 0.7184 MB / 351.8 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.5291, allocations: 111.9 kB / 351.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.5292, allocations: 7.438 kB / 351.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006212/0.5299, allocations: 31.47 kB / 351.9 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.53, allocations: 23.97 kB / 351.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.185e-05/0.5301, allocations: 11.5 kB / 352 MB, free: 10.65 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001947/0.5303, allocations: 121.5 kB / 352.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5303, allocations: 0 / 352.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008068/0.5311, allocations: 59.23 kB / 352.1 MB, free: 10.5 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.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 (25): * Single equations (assignments): 25 * 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.003242/0.5344, allocations: 1.594 MB / 353.7 MB, free: 8.945 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.5355, allocations: 238.5 kB / 354 MB, free: 8.758 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.5356, allocations: 4 kB / 354 MB, free: 8.754 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.5363, allocations: 157.5 kB / 354.1 MB, free: 8.629 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006395/0.5369, allocations: 46.98 kB / 354.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009386/0.5463, allocations: 2.442 MB / 356.6 MB, free: 6.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.5468, allocations: 0.7404 MB / 357.3 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/0.5471, allocations: 66.41 kB / 357.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5471, allocations: 0 / 357.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.946/3.494, allocations: 3.352 MB / 360.8 MB, free: 2.117 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat