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 2.014/2.014, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004397/0.0004397, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3523, allocations: 48.7 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.5003, allocations: 76.9 MB / 408.3 MB, free: 1.395 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.5007, allocations: 67.97 kB / 408.3 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02048/0.5212, allocations: 4.33 MB / 412.7 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.5212, allocations: 4 kB / 412.7 MB, free: 13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.5213, allocations: 8 kB / 412.7 MB, free: 12.99 MB / 346.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.001283/0.5226, allocations: 0.5301 MB / 413.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.5226, allocations: 12.02 kB / 413.2 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.569e-05/0.5227, allocations: 58.55 kB / 413.3 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.704e-05/0.5228, allocations: 23.72 kB / 413.3 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003709/0.5232, allocations: 243.3 kB / 413.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.5233, allocations: 16.44 kB / 413.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.178e-05/0.5234, allocations: 27.91 kB / 413.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008005/0.5242, allocations: 267.1 kB / 413.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.5242, allocations: 0 / 413.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/0.5243, allocations: 15.94 kB / 413.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.5243, allocations: 4 kB / 413.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008227/0.5251, allocations: 233.6 kB / 414.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.5272, allocations: 0.7441 MB / 414.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008674/0.5281, allocations: 242.5 kB / 415.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.5282, allocations: 4 kB / 415.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.5282, allocations: 42.5 kB / 415.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 3.456e-06/0.5282, allocations: 0 / 415.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.005391/0.5336, allocations: 1.55 MB / 416.7 MB, free: 8.715 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.5337, allocations: 63.41 kB / 416.7 MB, free: 8.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.534, allocations: 173.7 kB / 416.9 MB, free: 8.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.703e-05/0.5341, allocations: 37.7 kB / 416.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.5342, allocations: 199 kB / 417.1 MB, free: 8.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.5344, allocations: 110.5 kB / 417.2 MB, free: 8.109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.5344, allocations: 8 kB / 417.2 MB, free: 8.102 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.5346, allocations: 326.8 kB / 417.6 MB, free: 7.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004382/0.535, allocations: 123.9 kB / 417.7 MB, free: 7.652 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004696/0.5355, allocations: 170.9 kB / 417.8 MB, free: 7.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.5359, allocations: 111.9 kB / 417.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5359, allocations: 0 / 417.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001668/0.5376, allocations: 0.4957 MB / 418.4 MB, free: 6.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.5377, allocations: 15.95 kB / 418.5 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.5377, allocations: 0 / 418.5 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008344/0.5385, allocations: 252.6 kB / 418.7 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.539, allocations: 55.91 kB / 418.8 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.5402, allocations: 0.7396 MB / 419.5 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005156/0.5407, allocations: 56.05 kB / 419.6 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.304e-05/0.5408, allocations: 12 kB / 419.6 MB, free: 5.707 MB / 346.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.0002788/0.5411, allocations: 141.8 kB / 419.7 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.988e-05/0.5412, allocations: 27.72 kB / 419.7 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001162/0.5413, allocations: 38.7 kB / 419.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.5413, allocations: 15.92 kB / 419.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.5414, allocations: 0 / 419.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.5414, allocations: 3.984 kB / 419.8 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/0.5441, allocations: 0.9954 MB / 420.8 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.5441, allocations: 0 / 420.8 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.5445, allocations: 55.91 kB / 420.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007253/0.5453, allocations: 220.7 kB / 421.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.916e-05/0.5454, allocations: 19.92 kB / 421.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009714/0.5463, allocations: 0.7123 MB / 421.8 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.5464, allocations: 0 / 421.8 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.5484, allocations: 0.6938 MB / 422.5 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.5486, allocations: 132.8 kB / 422.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.391e-05/0.5487, allocations: 12 kB / 422.6 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005032/0.5492, allocations: 51.97 kB / 422.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.5495, allocations: 51.89 kB / 422.7 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.937e-05/0.5495, allocations: 15.98 kB / 422.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002004/0.5497, allocations: 152.2 kB / 422.9 MB, free: 2.234 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5497, allocations: 0 / 422.9 MB, free: 2.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005468/0.5503, allocations: 72 kB / 423 MB, free: 2.164 MB / 346.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.002502/0.5528, allocations: 1.347 MB / 424.3 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.554, allocations: 319.8 kB / 424.6 MB, free: 480 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.554, allocations: 0 / 424.6 MB, free: 480 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005418/0.5546, allocations: 163.8 kB / 424.8 MB, free: 316 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.5551, allocations: 23.94 kB / 424.8 MB, free: 292 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006645/0.5617, allocations: 2.529 MB / 427.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.5622, allocations: 0.7568 MB / 428.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.5624, allocations: 67.41 kB / 428.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of SimCode: time 1.243e-06/0.5624, allocations: 0 / 428.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.853/3.415, allocations: 4.734 MB / 432.9 MB, free: 8.094 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat