Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 1.859/1.859, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.948e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08289/0.08294, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.4171, allocations: 80.01 MB / 406.5 MB, free: 9.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.4173, allocations: 60.95 kB / 406.6 MB, free: 9.066 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04453/0.4619, allocations: 11.53 MB / 418.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.97e-06/0.4619, allocations: 0 / 418.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.281e-05/0.462, allocations: 20 kB / 418.1 MB, free: 1.602 MB / 314.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.001974/0.464, allocations: 0.9461 MB / 419.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.464, allocations: 12.03 kB / 419.1 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.4642, allocations: 86.95 kB / 419.2 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/0.4649, allocations: 403.4 kB / 419.6 MB, free: 180 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.4649, allocations: 49.31 kB / 419.6 MB, free: 152 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.4651, allocations: 68.64 kB / 419.7 MB, free: 104 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.4668, allocations: 0.7727 MB / 420.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.059e-05/0.4669, allocations: 4 kB / 420.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.467, allocations: 26.06 kB / 420.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.467, allocations: 12 kB / 420.5 MB, free: 15.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.4686, allocations: 0.6852 MB / 421.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005845/0.4745, allocations: 2.599 MB / 423.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.4761, allocations: 0.6037 MB / 424.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007382/0.4768, allocations: 336.8 kB / 424.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.062e-05/0.4769, allocations: 8.375 kB / 424.7 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.314e-05/0.477, allocations: 47.73 kB / 424.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=72): time 5.028e-06/0.477, allocations: 0 / 424.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=76): time 0.005998/0.483, allocations: 2.569 MB / 427.3 MB, free: 9.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.4832, allocations: 140.5 kB / 427.5 MB, free: 9.461 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000624/0.4838, allocations: 363.2 kB / 427.8 MB, free: 9.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.484, allocations: 55.88 kB / 427.9 MB, free: 9.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.4842, allocations: 325.5 kB / 428.2 MB, free: 8.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003168/0.4846, allocations: 261.2 kB / 428.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.4847, allocations: 22.05 kB / 428.5 MB, free: 8.633 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.4849, allocations: 352.4 kB / 428.8 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000854/0.4857, allocations: 342.7 kB / 429.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009714/0.4867, allocations: 0.4932 MB / 429.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000728/0.4875, allocations: 306.5 kB / 430 MB, free: 7.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.096e-06/0.4875, allocations: 4 kB / 430 MB, free: 7.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003317/0.4908, allocations: 1.252 MB / 431.2 MB, free: 6.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.4909, allocations: 10.03 kB / 431.2 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.4909, allocations: 4 kB / 431.2 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/0.4929, allocations: 0.7866 MB / 432 MB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/0.4938, allocations: 151.2 kB / 432.2 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003267/0.4971, allocations: 2.674 MB / 434.8 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.4984, allocations: 198.5 kB / 435 MB, free: 2.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/0.4986, allocations: 54.98 kB / 435.1 MB, free: 2.918 MB / 330.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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002922/0.4989, allocations: 157.5 kB / 435.2 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002714/0.4992, allocations: 70.89 kB / 435.3 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002023/0.4994, allocations: 86.69 kB / 435.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.4994, allocations: 8 kB / 435.4 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.4994, allocations: 0 / 435.4 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.4995, allocations: 7.984 kB / 435.4 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005459/0.5049, allocations: 2.245 MB / 437.7 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.505, allocations: 0 / 437.7 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000835/0.5058, allocations: 119 kB / 437.8 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00182/0.5077, allocations: 0.7499 MB / 438.5 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001421/0.5078, allocations: 34.95 kB / 438.6 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003076/0.5109, allocations: 2.623 MB / 441.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.476e-06/0.511, allocations: 4.062 kB / 441.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004043/0.515, allocations: 1.794 MB / 443 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005388/0.5156, allocations: 218.2 kB / 443.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.5158, allocations: 30.88 kB / 443.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.5171, allocations: 175.5 kB / 443.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/0.5176, allocations: 174 kB / 443.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.5177, allocations: 39.45 kB / 443.6 MB, free: 11.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004525/0.5182, allocations: 278.6 kB / 443.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.5182, allocations: 4 kB / 443.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001101/0.5193, allocations: 202.5 kB / 444.1 MB, free: 11.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.0003317/0.5196, allocations: 168.8 kB / 444.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.5219, allocations: 0.8453 MB / 445.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.5219, allocations: 0 / 445.1 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.5233, allocations: 458.8 kB / 445.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009572/0.5242, allocations: 95.19 kB / 445.6 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.5303, allocations: 2.037 MB / 447.7 MB, free: 8.059 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007315/0.5311, allocations: 0.9299 MB / 448.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.5314, allocations: 51.36 kB / 448.6 MB, free: 7.055 MB / 346.7 MB Notification: Performance of SimCode: time 1.775e-06/0.5314, allocations: 0 / 448.6 MB, free: 7.055 MB / 346.7 MB Notification: Performance of Templates: time 0.02526/0.5567, allocations: 15.78 MB / 464.4 MB, free: 7.348 MB / 362.7 MB