Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.917/1.917, allocations: 209.2 MB / 224.8 MB, free: 1.551 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004292, allocations: 16 kB / 282.6 MB, free: 9.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1034, allocations: 48.71 MB / 331.3 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003094/0.1066, allocations: 1.773 MB / 333 MB, free: 7.145 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1083, allocations: 0.7448 MB / 333.8 MB, free: 6.398 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1085, allocations: 4 kB / 333.8 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1086, allocations: 27.78 kB / 333.8 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.1089, allocations: 75.77 kB / 333.9 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004908/0.1094, allocations: 95.86 kB / 334 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.1098, allocations: 208 kB / 334.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.11, allocations: 72.62 kB / 334.3 MB, free: 5.926 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.1102, allocations: 115.6 kB / 334.4 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.1105, allocations: 131.5 kB / 334.5 MB, free: 5.684 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.1106, allocations: 15.94 kB / 334.5 MB, free: 5.668 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002619/0.1108, allocations: 103.9 kB / 334.6 MB, free: 5.566 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.686e-05/0.1109, allocations: 51.8 kB / 334.7 MB, free: 5.516 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.82e-05/0.111, allocations: 65.58 kB / 334.7 MB, free: 5.445 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.1115, allocations: 247.6 kB / 335 MB, free: 5.203 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1115, allocations: 4 kB / 335 MB, free: 5.199 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1115, allocations: 0 / 335 MB, free: 5.199 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1115, allocations: 0 / 335 MB, free: 5.199 MB / 282.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.001208/0.1127, allocations: 0.5185 MB / 335.5 MB, free: 4.633 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1128, allocations: 8.031 kB / 335.5 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.789e-05/0.1129, allocations: 58.55 kB / 335.6 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.585e-05/0.113, allocations: 27.62 kB / 335.6 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000369/0.1134, allocations: 247.2 kB / 335.8 MB, free: 4.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.1134, allocations: 20.44 kB / 335.9 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.349e-05/0.1135, allocations: 20 kB / 335.9 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007682/0.1143, allocations: 259.2 kB / 336.1 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.1143, allocations: 3.984 kB / 336.1 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/0.1144, allocations: 8 kB / 336.1 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1144, allocations: 8 kB / 336.1 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007619/0.1152, allocations: 221.6 kB / 336.4 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.1174, allocations: 0.7363 MB / 337.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008575/0.1183, allocations: 246.5 kB / 337.3 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.399e-05/0.1184, allocations: 8 kB / 337.3 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.1184, allocations: 31 kB / 337.4 MB, free: 2.633 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 3.106e-06/0.1184, allocations: 0 / 337.4 MB, free: 2.633 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.005204/0.1236, allocations: 1.559 MB / 338.9 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.1237, allocations: 59.34 kB / 339 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.124, allocations: 202.5 kB / 339.2 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.1241, allocations: 33.7 kB / 339.2 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1242, allocations: 195.1 kB / 339.4 MB, free: 460 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.1244, allocations: 110.4 kB / 339.5 MB, free: 348 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-05/0.1244, allocations: 8 kB / 339.5 MB, free: 340 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1245, allocations: 331.4 kB / 339.9 MB, free: 0 / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2492/0.3737, allocations: 112.3 kB / 340 MB, free: 15.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/0.3742, allocations: 164.6 kB / 340.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.3746, allocations: 115.9 kB / 340.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3747, allocations: 1.5 kB / 340.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001646/0.3763, allocations: 0.5042 MB / 340.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.3764, allocations: 9.094 kB / 340.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3764, allocations: 1.609 kB / 340.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/0.3771, allocations: 184.7 kB / 340.9 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.3775, allocations: 57.95 kB / 341 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009637/0.3785, allocations: 0.7388 MB / 341.7 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/0.379, allocations: 51.98 kB / 341.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.101e-05/0.379, allocations: 12.23 kB / 341.8 MB, free: 15.11 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: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002006/0.3792, allocations: 145.4 kB / 341.9 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/0.3793, allocations: 22.38 kB / 342 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.3794, allocations: 39.66 kB / 342 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.3795, allocations: 3.5 kB / 342 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.3795, allocations: 1.312 kB / 342 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3795, allocations: 2.156 kB / 342 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.3819, allocations: 1.015 MB / 343 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.382, allocations: 0 / 343 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.3824, allocations: 47.62 kB / 343.1 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005414/0.3829, allocations: 170.2 kB / 343.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.383, allocations: 10.84 kB / 343.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007751/0.3838, allocations: 0.6927 MB / 343.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3838, allocations: 0.6562 kB / 343.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.3858, allocations: 0.7107 MB / 344.6 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.386, allocations: 127.4 kB / 344.8 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.298e-05/0.3861, allocations: 12.44 kB / 344.8 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004664/0.3866, allocations: 50.55 kB / 344.8 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.3868, allocations: 49.55 kB / 344.9 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.3868, allocations: 17.22 kB / 344.9 MB, free: 13.35 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001666/0.387, allocations: 148 kB / 345 MB, free: 13.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.387, allocations: 96 / 345 MB, free: 13.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004949/0.3875, allocations: 79.55 kB / 345.1 MB, free: 13.24 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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.002264/0.3898, allocations: 1.276 MB / 346.4 MB, free: 12.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3909, allocations: 305.6 kB / 346.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3909, allocations: 0 / 346.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005038/0.3914, allocations: 161.9 kB / 346.9 MB, free: 12.21 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.3919, allocations: 33.94 kB / 346.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005694/0.3976, allocations: 1.971 MB / 348.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.3979, allocations: 0.7583 MB / 349.6 MB, free: 10.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.3981, allocations: 67.47 kB / 349.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3981, allocations: 0 / 349.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.777/3.175, allocations: 4.715 MB / 354.4 MB, free: 9.66 MB / 282.7 MB