Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: 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.933/1.933, allocations: 209.2 MB / 225.4 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000581/0.0005812, allocations: 12 kB / 283.1 MB, free: 9.863 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1024, allocations: 48.71 MB / 331.8 MB, free: 9.066 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5119, allocations: 91.97 MB / 423.8 MB, free: 9.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.5122, allocations: 71.97 kB / 423.8 MB, free: 9.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2081/0.7204, allocations: 44.41 MB / 468.2 MB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.7204, allocations: 0 / 468.2 MB, free: 12.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001781/0.7206, allocations: 47.98 kB / 468.3 MB, free: 12.66 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.01049/0.7311, allocations: 2.385 MB / 470.7 MB, free: 10.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.7312, allocations: 8.031 kB / 470.7 MB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001724/0.7329, allocations: 281 kB / 471 MB, free: 9.934 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003066/0.736, allocations: 0.9391 MB / 471.9 MB, free: 8.938 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/0.7371, allocations: 402.2 kB / 472.3 MB, free: 8.504 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007689/0.7379, allocations: 223.7 kB / 472.5 MB, free: 8.285 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008758/0.7467, allocations: 2.437 MB / 474.9 MB, free: 5.766 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000159/0.7469, allocations: 27.7 kB / 475 MB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003444/0.7472, allocations: 84 kB / 475 MB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-05/0.7473, allocations: 48 kB / 475.1 MB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.7574, allocations: 2.5 MB / 477.6 MB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02499/0.7824, allocations: 6.165 MB / 483.8 MB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007497/0.79, allocations: 2.299 MB / 486.1 MB, free: 10.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003318/0.7903, allocations: 46.17 kB / 486.1 MB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.336e-05/0.7904, allocations: 64.72 kB / 486.2 MB, free: 10.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 8.076e-06/0.7904, allocations: 0 / 486.2 MB, free: 10.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.3111/1.102, allocations: 12.9 MB / 499.1 MB, free: 104.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/1.102, allocations: 239.1 kB / 499.3 MB, free: 104.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/1.104, allocations: 1.061 MB / 0.4886 GB, free: 104.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006835/1.105, allocations: 94.17 kB / 0.4887 GB, free: 104.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005302/1.105, allocations: 0.6344 MB / 0.4893 GB, free: 104 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001435/1.107, allocations: 1.052 MB / 0.4904 GB, free: 103.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/1.107, allocations: 63.86 kB / 0.4904 GB, free: 103.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/1.107, allocations: 421 kB / 0.4908 GB, free: 103.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004208/1.112, allocations: 1.065 MB / 0.4919 GB, free: 103.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004762/1.116, allocations: 1.464 MB / 0.4933 GB, free: 102.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004277/1.121, allocations: 1.086 MB / 0.4944 GB, free: 102.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.412e-05/1.121, allocations: 2.219 kB / 0.4944 GB, free: 102.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01315/1.134, allocations: 3.504 MB / 0.4978 GB, free: 102.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/1.134, allocations: 7.562 kB / 0.4978 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.411e-05/1.134, allocations: 8.219 kB / 0.4978 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004516/1.139, allocations: 1.236 MB / 0.499 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005307/1.144, allocations: 0.6655 MB / 0.4997 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/1.158, allocations: 7.631 MB / 0.5071 GB, free: 97.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00419/1.163, allocations: 281.5 kB / 0.5074 GB, free: 97.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007053/1.163, allocations: 128.2 kB / 0.5075 GB, free: 97.54 MB / 410.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.001835/1.165, allocations: 457.2 kB / 0.5079 GB, free: 97.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008668/1.166, allocations: 211.1 kB / 0.5081 GB, free: 97.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/1.169, allocations: 0.6871 MB / 0.5088 GB, free: 96.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.665e-05/1.169, allocations: 34.81 kB / 0.5088 GB, free: 96.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.836e-05/1.169, allocations: 9.25 kB / 0.5089 GB, free: 96.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000103/1.169, allocations: 16.69 kB / 0.5089 GB, free: 96.8 MB / 410.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.02597/1.195, allocations: 7.49 MB / 0.5162 GB, free: 93.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.302e-05/1.195, allocations: 10.12 kB / 0.5162 GB, free: 93.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00535/1.2, allocations: 0.6223 MB / 0.5168 GB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004191/1.205, allocations: 1.227 MB / 0.518 GB, free: 93.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006238/1.205, allocations: 95.3 kB / 0.5181 GB, free: 93.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/1.22, allocations: 10.27 MB / 0.5281 GB, free: 84.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/1.22, allocations: 11.75 kB / 0.5281 GB, free: 84.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01884/1.239, allocations: 5.619 MB / 0.5336 GB, free: 82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001833/1.241, allocations: 0.5214 MB / 0.5341 GB, free: 81.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007166/1.242, allocations: 85.83 kB / 0.5342 GB, free: 81.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003501/1.245, allocations: 261 kB / 0.5345 GB, free: 81.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001303/1.246, allocations: 429.5 kB / 0.5349 GB, free: 81.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003612/1.247, allocations: 117.4 kB / 0.535 GB, free: 81.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001633/1.249, allocations: 0.7127 MB / 0.5357 GB, free: 81.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.249, allocations: 0 / 0.5357 GB, free: 81.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003998/1.253, allocations: 0.7208 MB / 0.5364 GB, free: 81.1 MB / 410.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.0008128/1.253, allocations: 278.6 kB / 0.5366 GB, free: 80.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01044/1.264, allocations: 3.27 MB / 0.5398 GB, free: 79.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.264, allocations: 3.938 kB / 0.5398 GB, free: 79.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008527/1.272, allocations: 2.583 MB / 0.5424 GB, free: 78.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004104/1.277, allocations: 283.1 kB / 0.5426 GB, free: 78.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02089/1.298, allocations: 7.033 MB / 0.5495 GB, free: 74.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002303/1.3, allocations: 1.548 MB / 0.551 GB, free: 73.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/1.302, allocations: 203.4 kB / 0.5512 GB, free: 73.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.373e-06/1.302, allocations: 0 / 0.5512 GB, free: 73.2 MB / 410.7 MB Notification: Performance of Templates: time 0.1196/1.422, allocations: 66.7 MB / 0.6163 GB, free: 11.1 MB / 410.7 MB