Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.437/2.437, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.051e-05/2.057e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3476, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1571/0.5048, allocations: 85.75 MB / 443.9 MB, free: 8.996 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/0.5051, allocations: 63.97 kB / 443.9 MB, free: 8.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05631/0.5615, allocations: 11.67 MB / 455.6 MB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5615, allocations: 0 / 455.6 MB, free: 13.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.517e-05/0.5616, allocations: 12 kB / 455.6 MB, free: 13.2 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.0033/0.5649, allocations: 0.937 MB / 456.6 MB, free: 12.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.565, allocations: 8.031 kB / 456.6 MB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.5654, allocations: 83.06 kB / 456.6 MB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008819/0.5663, allocations: 406.9 kB / 457 MB, free: 11.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.5663, allocations: 24 kB / 457.1 MB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.5665, allocations: 43.91 kB / 457.1 MB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001745/0.5683, allocations: 0.5687 MB / 457.7 MB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.5701, allocations: 0.6637 MB / 458.3 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.821e-05/0.5701, allocations: 7.906 kB / 458.3 MB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.365e-05/0.5703, allocations: 4 kB / 458.3 MB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.5703, allocations: 15.98 kB / 458.4 MB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006981/0.5773, allocations: 2.48 MB / 460.8 MB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.5789, allocations: 0.5353 MB / 461.4 MB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008224/0.5798, allocations: 313.3 kB / 461.7 MB, free: 6.855 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001475/0.5799, allocations: 12 kB / 461.7 MB, free: 6.844 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.58, allocations: 58.22 kB / 461.8 MB, free: 6.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.599e-06/0.58, allocations: 0 / 461.8 MB, free: 6.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.00723/0.5873, allocations: 2.326 MB / 464.1 MB, free: 4.254 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.304e-05/0.5874, allocations: 136.5 kB / 464.2 MB, free: 4.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005512/0.588, allocations: 305.2 kB / 464.5 MB, free: 3.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.5882, allocations: 33.7 kB / 464.5 MB, free: 3.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.5884, allocations: 319 kB / 464.9 MB, free: 3.434 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003635/0.5888, allocations: 268.2 kB / 465.1 MB, free: 3.168 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.977e-05/0.5889, allocations: 0 / 465.1 MB, free: 3.168 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.5891, allocations: 354.8 kB / 465.5 MB, free: 2.812 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000836/0.5899, allocations: 290.6 kB / 465.7 MB, free: 2.527 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009711/0.5909, allocations: 451.1 kB / 466.2 MB, free: 2.031 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.592, allocations: 280.4 kB / 466.5 MB, free: 1.762 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.5921, allocations: 0 / 466.5 MB, free: 1.762 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00396/0.596, allocations: 1.027 MB / 467.5 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.5961, allocations: 12.03 kB / 467.5 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.736e-05/0.5962, allocations: 7.984 kB / 467.5 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001924/0.5981, allocations: 0.5811 MB / 468.1 MB, free: 112 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2972/0.8953, allocations: 139.8 kB / 468.2 MB, free: 96.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.8988, allocations: 2.653 MB / 470.9 MB, free: 93.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.9007, allocations: 180.3 kB / 471.1 MB, free: 93.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.9009, allocations: 46.52 kB / 471.1 MB, free: 93.96 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.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: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003997/0.9013, allocations: 139.9 kB / 471.2 MB, free: 93.86 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00357/0.9048, allocations: 0.8669 MB / 472.1 MB, free: 93.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/0.9052, allocations: 67.02 kB / 472.2 MB, free: 93.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/0.9086, allocations: 0.9695 MB / 473.1 MB, free: 93.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.9087, allocations: 16.2 kB / 473.2 MB, free: 93.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.9087, allocations: 2.922 kB / 473.2 MB, free: 93.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.9087, allocations: 4.703 kB / 473.2 MB, free: 93.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00555/0.9143, allocations: 1.894 MB / 475.1 MB, free: 93.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/0.9144, allocations: 2.094 kB / 475.1 MB, free: 93.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.9155, allocations: 123.2 kB / 475.2 MB, free: 93.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.9172, allocations: 0.5605 MB / 475.7 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.9174, allocations: 22.41 kB / 475.8 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002701/0.9201, allocations: 2.589 MB / 478.3 MB, free: 91.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.9201, allocations: 1.656 kB / 478.3 MB, free: 91.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003741/0.9239, allocations: 1.589 MB / 479.9 MB, free: 90.33 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004378/0.9243, allocations: 207.2 kB / 480.1 MB, free: 90.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/0.9246, allocations: 20.59 kB / 480.2 MB, free: 90.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.9261, allocations: 162.6 kB / 480.3 MB, free: 90.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005129/0.9267, allocations: 181.2 kB / 480.5 MB, free: 90.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.9268, allocations: 37.95 kB / 480.5 MB, free: 90.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003237/0.9271, allocations: 244.8 kB / 480.8 MB, free: 90.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9271, allocations: 0 / 480.8 MB, free: 90.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001106/0.9282, allocations: 170.6 kB / 480.9 MB, free: 90.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004068/0.9323, allocations: 2.513 MB / 483.5 MB, free: 88.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002258/0.9346, allocations: 0.8753 MB / 484.3 MB, free: 87.81 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.9347, allocations: 0 / 484.3 MB, free: 87.81 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.936, allocations: 449 kB / 484.8 MB, free: 87.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.9372, allocations: 86.36 kB / 484.9 MB, free: 87.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007672/0.9449, allocations: 2.125 MB / 487 MB, free: 86.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.9454, allocations: 0.9212 MB / 487.9 MB, free: 85.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/0.9458, allocations: 214.5 kB / 488.1 MB, free: 85.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/0.9458, allocations: 0 / 488.1 MB, free: 85.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.381/4.327, allocations: 18.88 MB / 0.4951 GB, free: 70.68 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat