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/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.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.532/2.532, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006584/0.0006589, allocations: 12 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.3995, allocations: 54.86 MB / 369.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.557, allocations: 86.51 MB / 455.9 MB, free: 3.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5573, allocations: 67.98 kB / 455.9 MB, free: 3.914 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05684/0.6142, allocations: 11.76 MB / 467.7 MB, free: 8.102 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6142, allocations: 0 / 467.7 MB, free: 8.102 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.598e-05/0.6143, allocations: 12 kB / 467.7 MB, free: 8.09 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.003668/0.618, allocations: 1.016 MB / 468.7 MB, free: 7.027 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.6181, allocations: 8.031 kB / 468.7 MB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003059/0.6184, allocations: 98.52 kB / 468.8 MB, free: 6.914 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.6186, allocations: 79.05 kB / 468.9 MB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008404/0.6195, allocations: 400.8 kB / 469.3 MB, free: 6.402 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.6e-05/0.6196, allocations: 49.31 kB / 469.3 MB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.6198, allocations: 75.8 kB / 469.4 MB, free: 6.277 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.6223, allocations: 0.7872 MB / 470.2 MB, free: 5.457 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.547e-05/0.6225, allocations: 11.84 kB / 470.2 MB, free: 5.445 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.6226, allocations: 28 kB / 470.2 MB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.63e-05/0.6226, allocations: 12 kB / 470.2 MB, free: 5.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002849/0.6255, allocations: 0.7228 MB / 471 MB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007499/0.633, allocations: 2.578 MB / 473.5 MB, free: 1.984 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002272/0.6354, allocations: 0.6192 MB / 474.2 MB, free: 1.328 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.6356, allocations: 24.73 kB / 474.2 MB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/0.6356, allocations: 50.5 kB / 474.2 MB, free: 1.246 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.107e-06/0.6356, allocations: 0 / 474.2 MB, free: 1.246 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.3266/0.9622, allocations: 3.68 MB / 477.9 MB, free: 91.72 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.9623, allocations: 138.4 kB / 478.1 MB, free: 91.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005969/0.963, allocations: 329.5 kB / 478.4 MB, free: 91.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.9632, allocations: 52.97 kB / 478.4 MB, free: 91.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.9634, allocations: 310.7 kB / 478.7 MB, free: 91.22 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000343/0.9637, allocations: 278.8 kB / 479 MB, free: 91.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.035e-05/0.9638, allocations: 22 kB / 479 MB, free: 91.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.753e-05/0.9639, allocations: 345 kB / 479.4 MB, free: 90.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.9653, allocations: 364.3 kB / 479.7 MB, free: 90.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.9667, allocations: 0.5128 MB / 480.2 MB, free: 90.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.9679, allocations: 314.8 kB / 480.5 MB, free: 90.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.9679, allocations: 1.969 kB / 480.5 MB, free: 90.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004628/0.9725, allocations: 1.204 MB / 481.7 MB, free: 90.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.9726, allocations: 7.25 kB / 481.8 MB, free: 90.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.872e-05/0.9727, allocations: 9.562 kB / 481.8 MB, free: 90.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/0.9747, allocations: 0.611 MB / 482.4 MB, free: 90.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.9758, allocations: 153.2 kB / 482.5 MB, free: 90.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002822/0.9786, allocations: 2.571 MB / 485.1 MB, free: 88.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.9805, allocations: 193.2 kB / 485.3 MB, free: 88.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.9807, allocations: 44.45 kB / 485.3 MB, free: 88.31 MB / 394.7 MB 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 () * Number of clocked 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.0005726/0.9813, allocations: 216.2 kB / 485.5 MB, free: 88.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002459/0.9816, allocations: 68.73 kB / 485.6 MB, free: 88.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004189/0.9858, allocations: 1.135 MB / 486.7 MB, free: 87.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.9858, allocations: 12.62 kB / 486.8 MB, free: 87.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.9858, allocations: 3.906 kB / 486.8 MB, free: 87.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.9859, allocations: 7.422 kB / 486.8 MB, free: 87.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005821/0.9917, allocations: 2.112 MB / 488.9 MB, free: 86.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.9917, allocations: 3.938 kB / 488.9 MB, free: 86.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.9928, allocations: 123.5 kB / 489 MB, free: 86.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001647/0.9945, allocations: 0.5789 MB / 489.6 MB, free: 86.35 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.9946, allocations: 30.39 kB / 489.6 MB, free: 86.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002477/0.9971, allocations: 2.523 MB / 492.1 MB, free: 84.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.9971, allocations: 6.328 kB / 492.1 MB, free: 84.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004983/1.002, allocations: 1.787 MB / 493.9 MB, free: 83.08 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004622/1.003, allocations: 210.1 kB / 494.1 MB, free: 82.92 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/1.003, allocations: 33.97 kB / 494.2 MB, free: 82.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/1.004, allocations: 172.3 kB / 494.3 MB, free: 82.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005303/1.005, allocations: 182.7 kB / 494.5 MB, free: 82.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/1.005, allocations: 45.53 kB / 494.6 MB, free: 82.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003935/1.006, allocations: 266.7 kB / 494.8 MB, free: 82.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.006, allocations: 0 / 494.8 MB, free: 82.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001205/1.007, allocations: 198 kB / 495 MB, free: 82.68 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) * Number of clocked states: 0 () * 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.005451/1.012, allocations: 2.718 MB / 497.7 MB, free: 80.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003283/1.016, allocations: 1.035 MB / 498.8 MB, free: 80.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.016, allocations: 0 / 498.8 MB, free: 80.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/1.017, allocations: 0.5093 MB / 499.3 MB, free: 80.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/1.019, allocations: 86.23 kB / 499.4 MB, free: 80.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.034, allocations: 8.011 MB / 0.4955 GB, free: 72.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/1.035, allocations: 0.9228 MB / 0.4964 GB, free: 71.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004559/1.035, allocations: 212.4 kB / 0.4966 GB, free: 71.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.021e-06/1.035, allocations: 0 / 0.4966 GB, free: 71.8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.055/4.09, allocations: 18.83 MB / 0.515 GB, free: 54.02 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