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.368/2.368, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.116e-05/4.133e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4255, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.5807, allocations: 83.19 MB / 447.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.581, allocations: 71.95 kB / 447.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01958/0.6006, allocations: 4.303 MB / 452.2 MB, free: 8.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6007, allocations: 0 / 452.2 MB, free: 8.918 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.6007, allocations: 8 kB / 452.2 MB, free: 8.91 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.001104/0.6018, allocations: 0.5091 MB / 452.7 MB, free: 8.359 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.6019, allocations: 12.03 kB / 452.7 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.965e-05/0.602, allocations: 58.55 kB / 452.8 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.6021, allocations: 27.7 kB / 452.8 MB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.6024, allocations: 239.3 kB / 453 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.6025, allocations: 20.38 kB / 453.1 MB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-05/0.6026, allocations: 27.91 kB / 453.1 MB, free: 7.934 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.6033, allocations: 239.2 kB / 453.3 MB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.6033, allocations: 0 / 453.3 MB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-05/0.6034, allocations: 15.98 kB / 453.3 MB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.6034, allocations: 7.938 kB / 453.3 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006011/0.604, allocations: 198.5 kB / 453.5 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.6059, allocations: 0.7053 MB / 454.2 MB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/0.6065, allocations: 207.2 kB / 454.4 MB, free: 6.508 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.6069, allocations: 137.3 kB / 454.6 MB, free: 6.371 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.757e-05/0.607, allocations: 8.375 kB / 454.6 MB, free: 6.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.607, allocations: 34.8 kB / 454.6 MB, free: 6.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.385e-06/0.607, allocations: 0 / 454.6 MB, free: 6.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.003289/0.6103, allocations: 1.158 MB / 455.8 MB, free: 5.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.6104, allocations: 56.44 kB / 455.8 MB, free: 5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.6107, allocations: 161.9 kB / 456 MB, free: 4.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.729e-05/0.6108, allocations: 41.64 kB / 456 MB, free: 4.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.6109, allocations: 191 kB / 456.2 MB, free: 4.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.6111, allocations: 126.3 kB / 456.3 MB, free: 4.477 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.6111, allocations: 4 kB / 456.3 MB, free: 4.473 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.6113, allocations: 322.9 kB / 456.7 MB, free: 4.148 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/0.6116, allocations: 108 kB / 456.8 MB, free: 4.043 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.612, allocations: 151.3 kB / 456.9 MB, free: 3.883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.6123, allocations: 101 kB / 457 MB, free: 3.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.6123, allocations: 4 kB / 457 MB, free: 3.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001112/0.6135, allocations: 374.9 kB / 457.4 MB, free: 3.406 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.6135, allocations: 7.953 kB / 457.4 MB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.6135, allocations: 4 kB / 457.4 MB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006914/0.6142, allocations: 188.8 kB / 457.6 MB, free: 3.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.6147, allocations: 55.91 kB / 457.6 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009983/0.6157, allocations: 0.7046 MB / 458.3 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004622/0.6162, allocations: 52.02 kB / 458.4 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.316e-05/0.6162, allocations: 12 kB / 458.4 MB, free: 2.359 MB / 378.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 () * 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.0001593/0.6164, allocations: 128.9 kB / 458.5 MB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.6165, allocations: 24.28 kB / 458.5 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.6179, allocations: 425.1 kB / 459 MB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.6179, allocations: 4 kB / 459 MB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.6179, allocations: 3.984 kB / 459 MB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.6179, allocations: 4 kB / 459 MB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.6202, allocations: 0.9217 MB / 459.9 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.6202, allocations: 0.8438 kB / 459.9 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.6207, allocations: 55.91 kB / 459.9 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005838/0.6213, allocations: 168.8 kB / 460.1 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.283e-05/0.6213, allocations: 11.98 kB / 460.1 MB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008704/0.6222, allocations: 0.6809 MB / 460.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6222, allocations: 0 / 460.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/0.6238, allocations: 0.6258 MB / 461.4 MB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001983/0.6241, allocations: 124.8 kB / 461.6 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.121e-05/0.6242, allocations: 20.05 kB / 461.6 MB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.6246, allocations: 44.03 kB / 461.6 MB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.6248, allocations: 59.88 kB / 461.7 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.6249, allocations: 19.98 kB / 461.7 MB, free: 14.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001674/0.6251, allocations: 131.4 kB / 461.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.404e-06/0.6251, allocations: 0 / 461.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005298/0.6256, allocations: 95.81 kB / 461.9 MB, free: 14.67 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) * 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.002155/0.6278, allocations: 1.311 MB / 463.2 MB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.6288, allocations: 313.6 kB / 463.5 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6289, allocations: 4 kB / 463.5 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004723/0.6293, allocations: 155.8 kB / 463.7 MB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.6298, allocations: 24.17 kB / 463.7 MB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.633, allocations: 0.7757 MB / 464.5 MB, free: 12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.6334, allocations: 0.7566 MB / 465.2 MB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.6336, allocations: 63.42 kB / 465.3 MB, free: 11.15 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6336, allocations: 3.938 kB / 465.3 MB, free: 11.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.681/3.314, allocations: 4.958 MB / 470.3 MB, free: 6.184 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