Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.AllComponents.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadModel(ModelicaTest): time 2.466/2.466, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.011e-05/2.018e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.279, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.432, allocations: 98.86 MB / 456.9 MB, free: 11.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.4322, allocations: 67.97 kB / 457 MB, free: 11.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4388/0.871, allocations: 47.57 MB / 0.4927 GB, free: 76.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.283e-06/0.8711, allocations: 0 / 0.4927 GB, free: 76.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001187/0.8712, allocations: 51.98 kB / 0.4928 GB, free: 76.55 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.007089/0.8783, allocations: 2.344 MB / 0.495 GB, free: 74.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.8784, allocations: 8.031 kB / 0.4951 GB, free: 74.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001591/0.88, allocations: 300.8 kB / 0.4953 GB, free: 73.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.8826, allocations: 0.9746 MB / 0.4963 GB, free: 72.81 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009016/0.8836, allocations: 392 kB / 0.4967 GB, free: 72.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007878/0.8844, allocations: 151.7 kB / 0.4968 GB, free: 72.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005818/0.8902, allocations: 2.074 MB / 0.4988 GB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006048/0.8963, allocations: 2.04 MB / 0.5008 GB, free: 68.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/0.8966, allocations: 27.7 kB / 0.5009 GB, free: 68.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/0.8969, allocations: 11.89 kB / 0.5009 GB, free: 68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-05/0.897, allocations: 52 kB / 0.5009 GB, free: 67.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/0.9127, allocations: 6.247 MB / 0.507 GB, free: 61.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00421/0.917, allocations: 2.09 MB / 0.5091 GB, free: 59.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002718/0.9197, allocations: 1.112 MB / 0.5101 GB, free: 58.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003465/0.9201, allocations: 131.2 kB / 0.5103 GB, free: 58.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.9202, allocations: 68.66 kB / 0.5103 GB, free: 58.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 7.557e-06/0.9202, allocations: 0 / 0.5103 GB, free: 58.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=338): time 0.02445/0.9447, allocations: 10.06 MB / 0.5202 GB, free: 47.53 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/0.9448, allocations: 270.1 kB / 0.5204 GB, free: 47.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.9461, allocations: 0.7352 MB / 0.5211 GB, free: 46.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006017/0.9467, allocations: 45.69 kB / 0.5212 GB, free: 46.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004578/0.9472, allocations: 0.6847 MB / 0.5218 GB, free: 45.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.9485, allocations: 1.097 MB / 0.5229 GB, free: 44.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003623/0.9489, allocations: 0 / 0.5229 GB, free: 44.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.9491, allocations: 429.5 kB / 0.5233 GB, free: 44.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.9515, allocations: 0.9476 MB / 0.5242 GB, free: 43.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/0.9545, allocations: 1.347 MB / 0.5256 GB, free: 41.76 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00301/0.9576, allocations: 0.9773 MB / 0.5265 GB, free: 40.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.68e-05/0.9577, allocations: 4 kB / 0.5265 GB, free: 40.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.008646/0.9663, allocations: 2.952 MB / 0.5294 GB, free: 37.81 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.9664, allocations: 11.95 kB / 0.5294 GB, free: 37.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-05/0.9665, allocations: 12 kB / 0.5294 GB, free: 37.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002881/0.9694, allocations: 1.006 MB / 0.5304 GB, free: 36.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003821/0.9732, allocations: 0.7529 MB / 0.5311 GB, free: 36.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.9836, allocations: 7.293 MB / 0.5383 GB, free: 28.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/0.9868, allocations: 231.8 kB / 0.5385 GB, free: 28.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007396/0.9875, allocations: 132 kB / 0.5386 GB, free: 28.06 MB / 394.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: 38 * 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,$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,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0009306/0.9885, allocations: 191.2 kB / 0.5388 GB, free: 27.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007122/0.9892, allocations: 197.7 kB / 0.539 GB, free: 27.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005844/0.9951, allocations: 2.157 MB / 0.5411 GB, free: 25.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.433e-05/0.9952, allocations: 32 kB / 0.5411 GB, free: 25.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.258e-05/0.9952, allocations: 4.094 kB / 0.5411 GB, free: 25.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.358e-05/0.9953, allocations: 19.88 kB / 0.5411 GB, free: 25.43 MB / 394.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.0184/1.014, allocations: 6.878 MB / 0.5479 GB, free: 18.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.13e-05/1.014, allocations: 8 kB / 0.5479 GB, free: 18.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004101/1.018, allocations: 0.7379 MB / 0.5486 GB, free: 17.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003038/1.021, allocations: 0.9894 MB / 0.5496 GB, free: 16.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006975/1.022, allocations: 59.91 kB / 0.5496 GB, free: 16.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/1.033, allocations: 9.823 MB / 0.5592 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.391e-05/1.033, allocations: 12 kB / 0.5592 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/1.045, allocations: 5.264 MB / 0.5644 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/1.047, allocations: 0.5179 MB / 0.5649 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006463/1.047, allocations: 28 kB / 0.5649 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003182/1.05, allocations: 243.8 kB / 0.5651 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001581/1.052, allocations: 457 kB / 0.5656 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004302/1.052, allocations: 135.9 kB / 0.5657 GB, free: 15.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001177/1.054, allocations: 0.5507 MB / 0.5662 GB, free: 14.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.03e-07/1.054, allocations: 0 / 0.5662 GB, free: 14.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004139/1.058, allocations: 0.6054 MB / 0.5668 GB, free: 13.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,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 (270): * Single equations (assignments): 263 * 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.001052/1.059, allocations: 215.4 kB / 0.567 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007628/1.067, allocations: 2.896 MB / 0.5699 GB, free: 10.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/1.067, allocations: 0 / 0.5699 GB, free: 10.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006875/1.074, allocations: 2.404 MB / 0.5722 GB, free: 8.367 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/1.076, allocations: 236.8 kB / 0.5724 GB, free: 8.133 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/1.091, allocations: 5.572 MB / 0.5779 GB, free: 2.402 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002121/1.094, allocations: 1.596 MB / 0.5794 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.095, allocations: 199.3 kB / 0.5796 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of SimCode: time 2.25e-06/1.095, allocations: 0 / 0.5796 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of Templates: time 0.3644/1.46, allocations: 70.51 MB / 0.6485 GB, free: 127.5 MB / 458.7 MB