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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.999/1.999, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.326e-05/1.349e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2636, allocations: 48.68 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1799/0.4435, allocations: 91.23 MB / 411.2 MB, free: 5.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4437, allocations: 67.97 kB / 411.3 MB, free: 5.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4146/0.8584, allocations: 44.05 MB / 455.3 MB, free: 96.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.079e-06/0.8584, allocations: 3.828 kB / 455.3 MB, free: 96.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001461/0.8586, allocations: 44.91 kB / 455.4 MB, free: 96.51 MB / 378.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.007305/0.8659, allocations: 2.213 MB / 457.6 MB, free: 95.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.866, allocations: 8.781 kB / 457.6 MB, free: 95.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.8675, allocations: 284.1 kB / 457.9 MB, free: 95.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002602/0.8702, allocations: 0.9305 MB / 458.8 MB, free: 95.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008279/0.871, allocations: 334 kB / 459.1 MB, free: 94.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000778/0.8718, allocations: 136.8 kB / 459.3 MB, free: 94.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006076/0.8779, allocations: 2.019 MB / 461.3 MB, free: 94.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006029/0.884, allocations: 1.944 MB / 463.2 MB, free: 94.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001784/0.8842, allocations: 32.56 kB / 463.3 MB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003327/0.8846, allocations: 3.328 kB / 463.3 MB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.768e-05/0.8846, allocations: 52.97 kB / 463.3 MB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01575/0.9004, allocations: 5.814 MB / 469.1 MB, free: 92.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004175/0.9046, allocations: 1.987 MB / 471.1 MB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00258/0.9072, allocations: 1.055 MB / 472.2 MB, free: 91.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.9075, allocations: 41.86 kB / 472.2 MB, free: 91.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/0.9076, allocations: 66.06 kB / 472.3 MB, free: 91.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=260): time 7.204e-06/0.9076, allocations: 0.9844 kB / 472.3 MB, free: 91.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=315): time 0.02404/0.9316, allocations: 9.283 MB / 481.6 MB, free: 86.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.9318, allocations: 242.9 kB / 481.8 MB, free: 85.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.9331, allocations: 0.7282 MB / 482.5 MB, free: 85.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005519/0.9336, allocations: 43.89 kB / 482.6 MB, free: 85.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004534/0.9341, allocations: 0.6572 MB / 483.2 MB, free: 84.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/0.9353, allocations: 1.02 MB / 484.3 MB, free: 83.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003009/0.9356, allocations: 7.281 kB / 484.3 MB, free: 83.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.9358, allocations: 419.5 kB / 484.7 MB, free: 83.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/0.9381, allocations: 0.9278 MB / 485.6 MB, free: 82.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002709/0.9409, allocations: 1.293 MB / 486.9 MB, free: 81.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002747/0.9436, allocations: 0.9401 MB / 487.8 MB, free: 80.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.403e-05/0.9437, allocations: 7.938 kB / 487.8 MB, free: 80.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.008707/0.9524, allocations: 3.075 MB / 490.9 MB, free: 77.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/0.9525, allocations: 11.95 kB / 490.9 MB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/0.9525, allocations: 8 kB / 490.9 MB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003082/0.9556, allocations: 1.197 MB / 492.1 MB, free: 76.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003363/0.959, allocations: 0.6623 MB / 492.8 MB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.9696, allocations: 7.396 MB / 0.4885 GB, free: 68.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/0.9724, allocations: 219.7 kB / 0.4887 GB, free: 68.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006244/0.973, allocations: 122.2 kB / 0.4888 GB, free: 68.63 MB / 378.7 MB 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * 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.0007281/0.9738, allocations: 182.9 kB / 0.489 GB, free: 68.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006472/0.9744, allocations: 189.8 kB / 0.4892 GB, free: 68.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.9757, allocations: 0.5361 MB / 0.4897 GB, free: 67.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/0.9758, allocations: 30.62 kB / 0.4897 GB, free: 67.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.46e-05/0.9758, allocations: 4 kB / 0.4897 GB, free: 67.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/0.9759, allocations: 16.55 kB / 0.4897 GB, free: 67.77 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01713/0.993, allocations: 6.665 MB / 0.4962 GB, free: 61.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-05/0.9931, allocations: 8 kB / 0.4962 GB, free: 61.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003491/0.9966, allocations: 0.6282 MB / 0.4969 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003179/0.9998, allocations: 1.175 MB / 0.498 GB, free: 60.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005252/1, allocations: 59.53 kB / 0.4981 GB, free: 60.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/1.012, allocations: 9.891 MB / 0.5077 GB, free: 49.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/1.012, allocations: 19.88 kB / 0.5077 GB, free: 49.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/1.023, allocations: 5.117 MB / 0.5127 GB, free: 44.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.025, allocations: 0.5024 MB / 0.5132 GB, free: 43.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007983/1.026, allocations: 39.94 kB / 0.5133 GB, free: 43.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002809/1.029, allocations: 211.8 kB / 0.5135 GB, free: 43.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001267/1.03, allocations: 429.2 kB / 0.5139 GB, free: 42.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000441/1.03, allocations: 123.9 kB / 0.514 GB, free: 42.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001008/1.031, allocations: 0.5458 MB / 0.5145 GB, free: 42.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.031, allocations: 3.938 kB / 0.5145 GB, free: 42.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003711/1.035, allocations: 0.5936 MB / 0.5151 GB, free: 41.67 MB / 378.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) * 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.0007889/1.036, allocations: 235.4 kB / 0.5153 GB, free: 41.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005682/1.042, allocations: 2.73 MB / 0.518 GB, free: 38.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.042, allocations: 4 kB / 0.518 GB, free: 38.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005227/1.047, allocations: 2.269 MB / 0.5202 GB, free: 36.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/1.049, allocations: 212.2 kB / 0.5204 GB, free: 36.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/1.061, allocations: 5.135 MB / 0.5254 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/1.062, allocations: 1.545 MB / 0.5269 GB, free: 29.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/1.063, allocations: 187.3 kB / 0.5271 GB, free: 29.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.232e-06/1.063, allocations: 4 kB / 0.5271 GB, free: 29.13 MB / 378.7 MB Notification: Performance of Templates: time 0.08724/1.151, allocations: 66.04 MB / 0.5916 GB, free: 11 MB / 426.7 MB