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.277/2.277, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006111/0.0006113, allocations: 16 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3639, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003302/0.3672, allocations: 1.774 MB / 371 MB, free: 8.922 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.369, allocations: 0.7222 MB / 371.8 MB, free: 8.195 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.3692, allocations: 4 kB / 371.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.3693, allocations: 19.84 kB / 371.8 MB, free: 8.172 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.3696, allocations: 79.78 kB / 371.9 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004637/0.3701, allocations: 103.7 kB / 372 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.3705, allocations: 208 kB / 372.2 MB, free: 7.789 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.3707, allocations: 64.58 kB / 372.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.371, allocations: 123.6 kB / 372.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.3713, allocations: 131.5 kB / 372.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.3713, allocations: 12 kB / 372.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.3715, allocations: 63.95 kB / 372.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.718e-05/0.3716, allocations: 47.81 kB / 372.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.266e-05/0.3717, allocations: 65.58 kB / 372.7 MB, free: 7.281 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004017/0.3721, allocations: 244.3 kB / 372.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3722, allocations: 0 / 372.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3722, allocations: 0 / 372.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.3722, allocations: 0 / 372.9 MB, free: 7.043 MB / 298.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.001268/0.3735, allocations: 0.5224 MB / 373.4 MB, free: 6.473 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3735, allocations: 12.03 kB / 373.4 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.828e-05/0.3736, allocations: 50.55 kB / 373.5 MB, free: 6.402 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.983e-05/0.3737, allocations: 27.72 kB / 373.5 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.3741, allocations: 250.5 kB / 373.8 MB, free: 6.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.064e-05/0.3742, allocations: 28.44 kB / 373.8 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.3742, allocations: 19.91 kB / 373.8 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007891/0.375, allocations: 267.2 kB / 374.1 MB, free: 5.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.3751, allocations: 0 / 374.1 MB, free: 5.777 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.3751, allocations: 15.95 kB / 374.1 MB, free: 5.762 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.3751, allocations: 4 kB / 374.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008114/0.376, allocations: 237.6 kB / 374.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.3781, allocations: 0.7402 MB / 375.1 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008664/0.379, allocations: 250.5 kB / 375.3 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.379, allocations: 4 kB / 375.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.3791, allocations: 34.56 kB / 375.3 MB, free: 4.434 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 4.418e-06/0.3791, allocations: 0 / 375.3 MB, free: 4.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.005105/0.3842, allocations: 1.503 MB / 376.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.3843, allocations: 59.41 kB / 376.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002911/0.3846, allocations: 198.5 kB / 377.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/0.3846, allocations: 33.7 kB / 377.1 MB, free: 2.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3848, allocations: 195.1 kB / 377.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.3849, allocations: 114.4 kB / 377.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.385, allocations: 7.938 kB / 377.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3851, allocations: 326.8 kB / 377.8 MB, free: 1.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004638/0.3856, allocations: 123.9 kB / 377.9 MB, free: 1.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.3861, allocations: 167.4 kB / 378 MB, free: 1.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003949/0.3865, allocations: 108 kB / 378.2 MB, free: 1.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3865, allocations: 0 / 378.2 MB, free: 1.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001472/0.388, allocations: 457.5 kB / 378.6 MB, free: 1.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.388, allocations: 8 kB / 378.6 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3881, allocations: 0 / 378.6 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008428/0.3889, allocations: 240.7 kB / 378.8 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004089/0.3893, allocations: 55.91 kB / 378.9 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.3905, allocations: 0.7515 MB / 379.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.391, allocations: 52.05 kB / 379.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.3911, allocations: 15.98 kB / 379.7 MB, free: 15.86 MB / 314.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.000244/0.3913, allocations: 151.5 kB / 379.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.202e-05/0.3914, allocations: 15.81 kB / 379.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3915, allocations: 42.62 kB / 379.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.3916, allocations: 4 kB / 379.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.3916, allocations: 3.953 kB / 379.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3916, allocations: 4 kB / 379.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.3941, allocations: 0.9673 MB / 380.9 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3941, allocations: 64 / 380.9 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.3946, allocations: 59.91 kB / 381 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006854/0.3953, allocations: 208.7 kB / 381.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-05/0.3953, allocations: 11.98 kB / 381.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009734/0.3963, allocations: 0.7123 MB / 381.9 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3963, allocations: 4.031 kB / 381.9 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.3982, allocations: 0.6411 MB / 382.5 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.3984, allocations: 124.8 kB / 382.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.858e-05/0.3985, allocations: 12 kB / 382.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00048/0.399, allocations: 52.02 kB / 382.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.3992, allocations: 47.89 kB / 382.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.3993, allocations: 16.08 kB / 382.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001922/0.3995, allocations: 148.4 kB / 382.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3995, allocations: 0 / 382.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004922/0.4, allocations: 72 kB / 383 MB, free: 12.43 MB / 314.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.002353/0.4024, allocations: 1.209 MB / 384.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.4035, allocations: 323.6 kB / 384.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4035, allocations: 0 / 384.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.4041, allocations: 163.8 kB / 384.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.4045, allocations: 30.14 kB / 384.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006017/0.4106, allocations: 1.989 MB / 386.7 MB, free: 8.637 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.411, allocations: 0.7607 MB / 387.5 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.4112, allocations: 67.41 kB / 387.5 MB, free: 7.781 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4113, allocations: 0 / 387.5 MB, free: 7.781 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.035/3.446, allocations: 4.906 MB / 392.4 MB, free: 2.871 MB / 314.7 MB