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.AllComponents.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.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadModel(ModelicaTest): time 1.866/1.866, allocations: 209.2 MB / 224.8 MB, free: 188 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004416, allocations: 19.94 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2848, allocations: 48.7 MB / 331.3 MB, free: 6.332 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.136/0.4209, allocations: 91.99 MB / 423.3 MB, free: 2.301 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.4212, allocations: 67.97 kB / 423.3 MB, free: 2.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2297/0.6509, allocations: 44.38 MB / 467.7 MB, free: 5.746 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.6509, allocations: 0 / 467.7 MB, free: 5.746 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001553/0.6511, allocations: 55.92 kB / 467.8 MB, free: 5.691 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: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.008082/0.6592, allocations: 2.389 MB / 470.1 MB, free: 3.242 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.6593, allocations: 8.031 kB / 470.2 MB, free: 3.234 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/0.6608, allocations: 285 kB / 470.4 MB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.6638, allocations: 0.9353 MB / 471.4 MB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009068/0.6647, allocations: 406.1 kB / 471.8 MB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008234/0.6656, allocations: 223.7 kB / 472 MB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2459/0.9115, allocations: 2.407 MB / 474.4 MB, free: 96.63 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001722/0.9117, allocations: 30.19 kB / 474.4 MB, free: 96.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003096/0.912, allocations: 84.38 kB / 474.5 MB, free: 96.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.206e-05/0.9121, allocations: 48.72 kB / 474.5 MB, free: 96.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008163/0.9202, allocations: 2.501 MB / 477.1 MB, free: 96.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/0.9357, allocations: 6.164 MB / 483.2 MB, free: 95.64 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00581/0.9416, allocations: 2.307 MB / 485.5 MB, free: 95.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002404/0.9419, allocations: 39.67 kB / 485.6 MB, free: 95.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.9419, allocations: 68.38 kB / 485.6 MB, free: 95.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=260): time 6.978e-06/0.942, allocations: 0 / 485.6 MB, free: 95.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=315): time 0.03592/0.9779, allocations: 12.9 MB / 498.5 MB, free: 89.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.88e-05/0.978, allocations: 242.5 kB / 498.8 MB, free: 89.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.9797, allocations: 0.9273 MB / 499.7 MB, free: 88.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005255/0.9803, allocations: 88.61 kB / 499.8 MB, free: 88.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/0.9807, allocations: 0.6391 MB / 0.4887 GB, free: 88.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.9819, allocations: 1.055 MB / 0.4897 GB, free: 87.49 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/0.9821, allocations: 65.59 kB / 0.4898 GB, free: 87.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.9823, allocations: 423.9 kB / 0.4902 GB, free: 87.08 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003361/0.9857, allocations: 1.067 MB / 0.4912 GB, free: 86.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003804/0.9895, allocations: 1.45 MB / 0.4926 GB, free: 86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003261/0.9928, allocations: 1.078 MB / 0.4937 GB, free: 85.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.777e-05/0.9929, allocations: 5.781 kB / 0.4937 GB, free: 85.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01006/1.003, allocations: 3.508 MB / 0.4971 GB, free: 84.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/1.003, allocations: 8.5 kB / 0.4971 GB, free: 84.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/1.003, allocations: 7.469 kB / 0.4971 GB, free: 84.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003362/1.006, allocations: 1.231 MB / 0.4983 GB, free: 83.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00355/1.01, allocations: 0.6665 MB / 0.499 GB, free: 83.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/1.022, allocations: 7.645 MB / 0.5065 GB, free: 78.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002945/1.025, allocations: 282.3 kB / 0.5067 GB, free: 77.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006234/1.025, allocations: 119.2 kB / 0.5068 GB, free: 77.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001475/1.027, allocations: 452.7 kB / 0.5073 GB, free: 77.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000673/1.028, allocations: 206.5 kB / 0.5075 GB, free: 77.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/1.029, allocations: 0.6893 MB / 0.5081 GB, free: 77.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/1.029, allocations: 33.52 kB / 0.5082 GB, free: 77.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.668e-05/1.029, allocations: 7.141 kB / 0.5082 GB, free: 77.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.336e-05/1.029, allocations: 19.92 kB / 0.5082 GB, free: 77.15 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02001/1.049, allocations: 7.475 MB / 0.5155 GB, free: 73.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-05/1.05, allocations: 8 kB / 0.5155 GB, free: 73.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003644/1.053, allocations: 0.6354 MB / 0.5161 GB, free: 72.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003385/1.057, allocations: 1.221 MB / 0.5173 GB, free: 71.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005674/1.057, allocations: 103.9 kB / 0.5174 GB, free: 71.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01303/1.07, allocations: 10.27 MB / 0.5275 GB, free: 61.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/1.07, allocations: 11.94 kB / 0.5275 GB, free: 61.51 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.085, allocations: 6.03 MB / 0.5334 GB, free: 55.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/1.086, allocations: 0.5251 MB / 0.5339 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006439/1.087, allocations: 83.8 kB / 0.5339 GB, free: 55.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002933/1.09, allocations: 262.6 kB / 0.5342 GB, free: 55.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/1.091, allocations: 430.2 kB / 0.5346 GB, free: 54.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000386/1.092, allocations: 122.5 kB / 0.5347 GB, free: 54.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001381/1.093, allocations: 0.7112 MB / 0.5354 GB, free: 54.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.01e-07/1.093, allocations: 0 / 0.5354 GB, free: 54.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003537/1.097, allocations: 0.7047 MB / 0.5361 GB, free: 53.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 243 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008469/1.097, allocations: 294.4 kB / 0.5364 GB, free: 53.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008449/1.106, allocations: 3.268 MB / 0.5396 GB, free: 50.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/1.106, allocations: 0 / 0.5396 GB, free: 50.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00678/1.113, allocations: 2.579 MB / 0.5421 GB, free: 47.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/1.115, allocations: 301.2 kB / 0.5424 GB, free: 47.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/1.129, allocations: 7.019 MB / 0.5492 GB, free: 40.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/1.13, allocations: 1.552 MB / 0.5508 GB, free: 39.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/1.132, allocations: 195.3 kB / 0.5509 GB, free: 38.97 MB / 394.7 MB Notification: Performance of SimCode: time 1.882e-06/1.132, allocations: 0 / 0.5509 GB, free: 38.97 MB / 394.7 MB Notification: Performance of Templates: time 0.08471/1.216, allocations: 66.71 MB / 0.6161 GB, free: 4.18 MB / 426.7 MB