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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.434/2.434, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.152e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3367, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.4861, allocations: 82.52 MB / 440.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.4864, allocations: 71.97 kB / 440.7 MB, free: 12.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02003/0.5065, allocations: 4.274 MB / 445 MB, free: 7.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.37e-06/0.5065, allocations: 0 / 445 MB, free: 7.859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.5066, allocations: 7.938 kB / 445 MB, free: 7.852 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.001187/0.5078, allocations: 0.5138 MB / 445.5 MB, free: 7.293 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.5078, allocations: 12.03 kB / 445.5 MB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.5079, allocations: 23.72 kB / 445.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.5083, allocations: 226.7 kB / 445.8 MB, free: 6.996 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.777e-05/0.5084, allocations: 8 kB / 445.8 MB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.5085, allocations: 12 kB / 445.8 MB, free: 6.977 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006172/0.5091, allocations: 192.8 kB / 446 MB, free: 6.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005764/0.5097, allocations: 210.3 kB / 446.2 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.5097, allocations: 11.91 kB / 446.2 MB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.5098, allocations: 0 / 446.2 MB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.5098, allocations: 4 kB / 446.2 MB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/0.5118, allocations: 0.6504 MB / 446.8 MB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005285/0.5124, allocations: 207 kB / 447 MB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.5127, allocations: 129.3 kB / 447.2 MB, free: 5.527 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.355e-05/0.5128, allocations: 240 / 447.2 MB, free: 5.527 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.5128, allocations: 38.73 kB / 447.2 MB, free: 5.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.535e-06/0.5129, allocations: 0 / 447.2 MB, free: 5.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.003726/0.5166, allocations: 1.102 MB / 448.3 MB, free: 4.281 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.5167, allocations: 55.41 kB / 448.4 MB, free: 4.215 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.5169, allocations: 140.8 kB / 448.5 MB, free: 4.074 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.517, allocations: 33.7 kB / 448.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.5171, allocations: 187.5 kB / 448.7 MB, free: 3.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.5173, allocations: 114.3 kB / 448.8 MB, free: 3.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.5173, allocations: 0 / 448.8 MB, free: 3.738 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.5174, allocations: 334.8 kB / 449.2 MB, free: 3.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.5177, allocations: 99.94 kB / 449.3 MB, free: 3.305 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.5181, allocations: 135.4 kB / 449.4 MB, free: 3.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003977/0.5185, allocations: 104 kB / 449.5 MB, free: 3.059 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5185, allocations: 0 / 449.5 MB, free: 3.059 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001125/0.5196, allocations: 358 kB / 449.8 MB, free: 2.699 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.5197, allocations: 8 kB / 449.8 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.5197, allocations: 0 / 449.8 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006718/0.5204, allocations: 188.8 kB / 450 MB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.5208, allocations: 51.91 kB / 450.1 MB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.5222, allocations: 0.7358 MB / 450.8 MB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.5227, allocations: 39.95 kB / 450.9 MB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.029e-05/0.5228, allocations: 19.92 kB / 450.9 MB, free: 1.633 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002344/0.5231, allocations: 123 kB / 451 MB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001255/0.5243, allocations: 350.1 kB / 451.3 MB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.012e-05/0.5244, allocations: 19.81 kB / 451.4 MB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.5259, allocations: 405.3 kB / 451.8 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.5259, allocations: 4 kB / 451.8 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5259, allocations: 0 / 451.8 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.5259, allocations: 0 / 451.8 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.5283, allocations: 0.859 MB / 452.6 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.5283, allocations: 0 / 452.6 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.5288, allocations: 52.03 kB / 452.7 MB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000585/0.5294, allocations: 168.7 kB / 452.8 MB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.5295, allocations: 7.984 kB / 452.8 MB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009931/0.5305, allocations: 0.6928 MB / 453.5 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.5305, allocations: 4.031 kB / 453.5 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.5321, allocations: 0.6026 MB / 454.1 MB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.5323, allocations: 120.9 kB / 454.3 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.146e-05/0.5324, allocations: 4 kB / 454.3 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005139/0.5329, allocations: 44.02 kB / 454.3 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.5332, allocations: 55.89 kB / 454.4 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-05/0.5332, allocations: 20.05 kB / 454.4 MB, free: 13.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001389/0.5334, allocations: 119.4 kB / 454.5 MB, free: 13.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5334, allocations: 7.875 kB / 454.5 MB, free: 13.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005728/0.534, allocations: 67.94 kB / 454.6 MB, free: 13.77 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.0021/0.5361, allocations: 1.285 MB / 455.9 MB, free: 12.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009582/0.5371, allocations: 298.3 kB / 456.1 MB, free: 12.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5371, allocations: 1.219 kB / 456.1 MB, free: 12.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.5376, allocations: 143.8 kB / 456.3 MB, free: 12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004687/0.538, allocations: 28.28 kB / 456.3 MB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.5416, allocations: 0.7485 MB / 457.1 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.5421, allocations: 0.7603 MB / 457.8 MB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002072/0.5423, allocations: 67.41 kB / 457.9 MB, free: 10.33 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5423, allocations: 0 / 457.9 MB, free: 10.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.702/3.244, allocations: 4.859 MB / 462.7 MB, free: 5.477 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