Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.509/2.509, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006964/0.0006964, allocations: 19.94 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4124, allocations: 54.86 MB / 369.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.5646, allocations: 83.27 MB / 452.6 MB, free: 7.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.565, allocations: 75.91 kB / 452.7 MB, free: 7.266 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02016/0.5852, allocations: 4.304 MB / 457 MB, free: 2.945 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5852, allocations: 0 / 457 MB, free: 2.945 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.5853, allocations: 4 kB / 457 MB, free: 2.941 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001302/0.5866, allocations: 0.5301 MB / 457.5 MB, free: 2.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.5867, allocations: 12.03 kB / 457.6 MB, free: 2.352 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.5868, allocations: 54.55 kB / 457.6 MB, free: 2.289 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.01e-05/0.5869, allocations: 31.7 kB / 457.6 MB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.5873, allocations: 242.6 kB / 457.9 MB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/0.5874, allocations: 16.44 kB / 457.9 MB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-05/0.5875, allocations: 20 kB / 457.9 MB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007994/0.5883, allocations: 251.2 kB / 458.2 MB, free: 1.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.5883, allocations: 7.859 kB / 458.2 MB, free: 1.688 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.5884, allocations: 12 kB / 458.2 MB, free: 1.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.5884, allocations: 4 kB / 458.2 MB, free: 1.672 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007747/0.5892, allocations: 217.6 kB / 458.4 MB, free: 1.457 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.5913, allocations: 0.7054 MB / 459.1 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007642/0.5922, allocations: 223.2 kB / 459.3 MB, free: 484 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.151e-05/0.5923, allocations: 4.375 kB / 459.3 MB, free: 480 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.5923, allocations: 38.8 kB / 459.4 MB, free: 432 kB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 5.47e-06/0.5923, allocations: 0 / 459.4 MB, free: 432 kB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.005355/0.5977, allocations: 1.491 MB / 460.8 MB, free: 14.81 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.5978, allocations: 59.36 kB / 460.9 MB, free: 14.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.598, allocations: 165.8 kB / 461.1 MB, free: 14.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/0.5981, allocations: 37.7 kB / 461.1 MB, free: 14.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.5982, allocations: 199.1 kB / 461.3 MB, free: 14.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.5984, allocations: 110.4 kB / 461.4 MB, free: 14.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.5985, allocations: 8 kB / 461.4 MB, free: 14.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5986, allocations: 326.8 kB / 461.7 MB, free: 13.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.599, allocations: 111.9 kB / 461.8 MB, free: 13.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/0.5995, allocations: 159.2 kB / 462 MB, free: 13.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.5999, allocations: 101.2 kB / 462.1 MB, free: 13.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5999, allocations: 4 kB / 462.1 MB, free: 13.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001328/0.6013, allocations: 405.8 kB / 462.5 MB, free: 13.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.6013, allocations: 4 kB / 462.5 MB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.6014, allocations: 4 kB / 462.5 MB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007378/0.6021, allocations: 200.7 kB / 462.7 MB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.6026, allocations: 51.91 kB / 462.8 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.6038, allocations: 0.7046 MB / 463.5 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005396/0.6044, allocations: 52.05 kB / 463.5 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.6044, allocations: 12 kB / 463.5 MB, free: 12.05 MB / 394.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: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002791/0.6047, allocations: 149.8 kB / 463.7 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.498e-05/0.6048, allocations: 23.67 kB / 463.7 MB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.6064, allocations: 452.9 kB / 464.1 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.6065, allocations: 4 kB / 464.1 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.6065, allocations: 0 / 464.1 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.6065, allocations: 0 / 464.1 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.6091, allocations: 0.9523 MB / 465.1 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.6092, allocations: 0 / 465.1 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.6096, allocations: 51.97 kB / 465.1 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006261/0.6103, allocations: 172.7 kB / 465.3 MB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.6103, allocations: 16.05 kB / 465.3 MB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001/0.6113, allocations: 0.6772 MB / 466 MB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.6114, allocations: 0 / 466 MB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.6133, allocations: 0.6582 MB / 466.7 MB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.6136, allocations: 124.8 kB / 466.8 MB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.006e-05/0.6137, allocations: 15.98 kB / 466.8 MB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/0.6142, allocations: 48.12 kB / 466.8 MB, free: 8.555 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.6144, allocations: 63.73 kB / 466.9 MB, free: 8.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-05/0.6145, allocations: 19.98 kB / 466.9 MB, free: 8.473 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001929/0.6147, allocations: 131.4 kB / 467.1 MB, free: 8.344 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6147, allocations: 0 / 467.1 MB, free: 8.344 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005854/0.6153, allocations: 83.98 kB / 467.1 MB, free: 8.262 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002493/0.6178, allocations: 1.36 MB / 468.5 MB, free: 6.855 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.6191, allocations: 325.4 kB / 468.8 MB, free: 6.531 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6191, allocations: 3.938 kB / 468.8 MB, free: 6.527 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005936/0.6197, allocations: 171.9 kB / 469 MB, free: 6.359 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.6202, allocations: 24.17 kB / 469 MB, free: 6.332 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006523/0.6268, allocations: 2.4 MB / 471.4 MB, free: 3.848 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.6273, allocations: 0.7527 MB / 472.2 MB, free: 3.066 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.6275, allocations: 71.41 kB / 472.2 MB, free: 3 MB / 394.7 MB Notification: Performance of SimCode: time 1.442e-06/0.6275, allocations: 0 / 472.2 MB, free: 3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.264/3.891, allocations: 4.933 MB / 477.2 MB, free: 97.89 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat