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.806/1.806, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.628e-05, allocations: 0 / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09722, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4703/0.5676, allocations: 91.88 MB / 418.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.5678, allocations: 65.47 kB / 418.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1943/0.7621, allocations: 44.39 MB / 462.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.523e-06/0.7622, allocations: 4 kB / 462.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001404/0.7623, allocations: 51.98 kB / 462.9 MB, free: 9.992 MB / 362.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.007578/0.7699, allocations: 2.205 MB / 465.1 MB, free: 7.867 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.77, allocations: 8.031 kB / 465.1 MB, free: 7.859 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.7715, allocations: 281 kB / 465.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.7744, allocations: 0.9396 MB / 466.3 MB, free: 6.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000871/0.7753, allocations: 398.5 kB / 466.7 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007525/0.776, allocations: 227.1 kB / 467 MB, free: 6.258 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006311/0.7824, allocations: 2.218 MB / 469.2 MB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00017/0.7826, allocations: 31.7 kB / 469.2 MB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003188/0.7829, allocations: 80 kB / 469.3 MB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-05/0.783, allocations: 48 kB / 469.3 MB, free: 4.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01044/0.7934, allocations: 2.133 MB / 471.5 MB, free: 1.934 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06976/0.8633, allocations: 6.164 MB / 477.6 MB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/0.8742, allocations: 2.116 MB / 479.7 MB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003262/0.8775, allocations: 1.131 MB / 480.9 MB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002543/0.8778, allocations: 42.28 kB / 480.9 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/0.8779, allocations: 64.72 kB / 481 MB, free: 8.195 MB / 378.7 MB Notification: Performance of pre-optimization done (n=260): time 9.43e-06/0.8779, allocations: 0 / 481 MB, free: 8.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=315): time 0.027/0.9049, allocations: 9.931 MB / 490.9 MB, free: 13.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/0.9051, allocations: 251.7 kB / 491.2 MB, free: 13.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.9071, allocations: 0.9067 MB / 492.1 MB, free: 12.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005888/0.9077, allocations: 89.7 kB / 492.1 MB, free: 12.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006861/0.9084, allocations: 0.6418 MB / 492.8 MB, free: 11.92 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001549/0.9099, allocations: 1.055 MB / 493.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.9102, allocations: 63.98 kB / 493.9 MB, free: 10.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003247/0.9106, allocations: 425 kB / 494.3 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002979/0.9136, allocations: 0.994 MB / 495.3 MB, free: 9.367 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003519/0.9171, allocations: 1.368 MB / 496.7 MB, free: 7.887 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/0.9201, allocations: 0.9896 MB / 497.7 MB, free: 6.891 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/0.9201, allocations: 0 / 497.7 MB, free: 6.891 MB / 394.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.009773/0.9299, allocations: 3.318 MB / 0.4893 GB, free: 3.551 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.93, allocations: 8 kB / 0.4893 GB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.93, allocations: 8 kB / 0.4893 GB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003651/0.9337, allocations: 1.209 MB / 0.4904 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003767/0.9375, allocations: 0.6671 MB / 0.4911 GB, free: 1.645 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/0.9507, allocations: 7.49 MB / 0.4984 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002852/0.9536, allocations: 283.8 kB / 0.4987 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004307/0.9541, allocations: 120 kB / 0.4988 GB, free: 9.426 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 () * 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.0007438/0.9548, allocations: 272.4 kB / 0.4991 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006829/0.9555, allocations: 201.6 kB / 0.4992 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.9571, allocations: 0.6144 MB / 0.4998 GB, free: 8.328 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.884e-05/0.9572, allocations: 35.95 kB / 0.4999 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.3e-05/0.9572, allocations: 0 / 0.4999 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.313e-05/0.9572, allocations: 23.92 kB / 0.4999 GB, free: 8.27 MB / 410.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.02005/0.9773, allocations: 7.133 MB / 0.5069 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.582e-05/0.9774, allocations: 8 kB / 0.5069 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003944/0.9813, allocations: 0.6365 MB / 0.5075 GB, free: 308 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003792/0.9852, allocations: 1.192 MB / 0.5087 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005784/0.9858, allocations: 103.9 kB / 0.5088 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01533/1.001, allocations: 10.1 MB / 0.5186 GB, free: 4.273 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.987e-06/1.001, allocations: 11.94 kB / 0.5186 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2434/1.245, allocations: 5.429 MB / 0.5239 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.246, allocations: 0.5207 MB / 0.5245 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006809/1.247, allocations: 83.11 kB / 0.5245 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00313/1.25, allocations: 270.1 kB / 0.5248 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001217/1.251, allocations: 426.8 kB / 0.5252 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004316/1.252, allocations: 125.1 kB / 0.5253 GB, free: 115.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001331/1.253, allocations: 0.6884 MB / 0.526 GB, free: 115 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.253, allocations: 0 / 0.526 GB, free: 115 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003695/1.257, allocations: 0.7202 MB / 0.5267 GB, free: 115 MB / 426.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.0008263/1.258, allocations: 289.3 kB / 0.527 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006789/1.265, allocations: 2.922 MB / 0.5298 GB, free: 114.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.265, allocations: 1.5 kB / 0.5298 GB, free: 114.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005918/1.271, allocations: 2.366 MB / 0.5321 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002646/1.273, allocations: 282.3 kB / 0.5324 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/1.286, allocations: 5.302 MB / 0.5376 GB, free: 112.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00148/1.288, allocations: 1.544 MB / 0.5391 GB, free: 111.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/1.289, allocations: 191.2 kB / 0.5393 GB, free: 111.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.932e-06/1.289, allocations: 0 / 0.5393 GB, free: 111.6 MB / 426.7 MB Notification: Performance of Templates: time 0.08009/1.369, allocations: 66.69 MB / 0.6044 GB, free: 72.26 MB / 426.7 MB