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.98/1.98, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007623/0.0007626, allocations: 8 kB / 282.5 MB, free: 9.652 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3287, allocations: 48.7 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.008611/0.3374, allocations: 7.027 MB / 338.2 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00726/0.3447, allocations: 3.052 MB / 341.3 MB, free: 15.49 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.3468, allocations: 36.06 kB / 341.3 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008355/0.3477, allocations: 222 kB / 341.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003379/0.3511, allocations: 0.7655 MB / 342.3 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002703/0.3538, allocations: 0.6813 MB / 343 MB, free: 14.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004495/0.3583, allocations: 1.973 MB / 344.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.3598, allocations: 0.6078 MB / 345.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002448/0.3623, allocations: 1.056 MB / 346.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002396/0.3648, allocations: 1.22 MB / 347.8 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005761/0.3654, allocations: 125.8 kB / 347.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.3667, allocations: 300 kB / 348.2 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006714/0.3674, allocations: 493.9 kB / 348.7 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008823/0.3683, allocations: 421.5 kB / 349.1 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004106/0.3725, allocations: 2.235 MB / 351.4 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.21e-06/0.3725, allocations: 0 / 351.4 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.972e-06/0.3725, allocations: 0 / 351.4 MB, free: 8.719 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.95e-05/0.3726, allocations: 1.812 kB / 351.4 MB, free: 8.719 MB / 282.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.00761/0.3802, allocations: 2.45 MB / 353.8 MB, free: 7.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3803, allocations: 9.625 kB / 353.8 MB, free: 7.121 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.3817, allocations: 292.1 kB / 354.1 MB, free: 6.977 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002899/0.3846, allocations: 1.015 MB / 355.1 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001247/0.3859, allocations: 454.1 kB / 355.6 MB, free: 5.859 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007294/0.3867, allocations: 231.3 kB / 355.8 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007624/0.3943, allocations: 2.418 MB / 358.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001537/0.3945, allocations: 27.7 kB / 358.2 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003269/0.3949, allocations: 84 kB / 358.3 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-05/0.395, allocations: 48 kB / 358.4 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008404/0.4034, allocations: 2.496 MB / 360.9 MB, free: 0.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01827/0.4217, allocations: 6.362 MB / 367.2 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006735/0.4285, allocations: 2.323 MB / 369.5 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002713/0.4288, allocations: 34.12 kB / 369.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.21e-05/0.4289, allocations: 68.66 kB / 369.6 MB, free: 7.555 MB / 298.7 MB Notification: Performance of pre-optimization done (n=259): time 7.343e-06/0.4289, allocations: 4 kB / 369.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=314): time 0.04111/0.47, allocations: 13.02 MB / 382.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/0.4703, allocations: 247.5 kB / 382.9 MB, free: 9.754 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.4725, allocations: 1.098 MB / 384 MB, free: 8.645 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005297/0.4731, allocations: 97.69 kB / 384.1 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007124/0.4738, allocations: 0.642 MB / 384.8 MB, free: 7.895 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/0.4754, allocations: 1.047 MB / 385.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.4757, allocations: 67.92 kB / 385.9 MB, free: 6.766 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003234/0.4761, allocations: 421 kB / 386.3 MB, free: 6.344 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/0.4798, allocations: 1.068 MB / 387.3 MB, free: 5.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0043/0.4841, allocations: 1.47 MB / 388.8 MB, free: 3.684 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.4879, allocations: 1.08 MB / 389.9 MB, free: 2.602 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/0.4879, allocations: 4 kB / 389.9 MB, free: 2.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01156/0.4995, allocations: 3.541 MB / 393.4 MB, free: 15.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.4996, allocations: 8 kB / 393.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/0.4996, allocations: 8 kB / 393.5 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003422/0.5031, allocations: 1.032 MB / 394.5 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003658/0.5068, allocations: 0.6631 MB / 395.1 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/0.5213, allocations: 7.608 MB / 402.8 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/0.5242, allocations: 279.8 kB / 403 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005424/0.5248, allocations: 112 kB / 403.1 MB, free: 4.969 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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.001563/0.5264, allocations: 457.1 kB / 403.6 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007169/0.5271, allocations: 209.5 kB / 403.8 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.5291, allocations: 0.6925 MB / 404.5 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.974e-05/0.5291, allocations: 35.98 kB / 404.5 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/0.5292, allocations: 64 / 404.5 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.007e-05/0.5292, allocations: 19.95 kB / 404.5 MB, free: 3.547 MB / 330.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.02322/0.5525, allocations: 7.622 MB / 412.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.009e-05/0.5526, allocations: 8 kB / 412.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003651/0.5562, allocations: 0.5969 MB / 412.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003467/0.5597, allocations: 1.013 MB / 413.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005627/0.5603, allocations: 95.92 kB / 413.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01689/0.5772, allocations: 10.24 MB / 424.1 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.298e-05/0.5773, allocations: 8 kB / 424.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/0.594, allocations: 5.607 MB / 429.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001779/0.5958, allocations: 0.5062 MB / 430.2 MB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/0.5965, allocations: 92.05 kB / 430.3 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002825/0.5993, allocations: 267.8 kB / 430.6 MB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/0.6006, allocations: 425 kB / 431 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000342/0.601, allocations: 111.9 kB / 431.1 MB, free: 7.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001661/0.6027, allocations: 0.7489 MB / 431.9 MB, free: 7.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.28e-07/0.6027, allocations: 0 / 431.9 MB, free: 7.176 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003639/0.6064, allocations: 0.7031 MB / 432.6 MB, free: 6.473 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,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,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.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 (248): * Single equations (assignments): 241 * 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.0008817/0.6073, allocations: 271.2 kB / 432.8 MB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009756/0.6171, allocations: 3.286 MB / 436.1 MB, free: 2.887 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.664e-06/0.6171, allocations: 0 / 436.1 MB, free: 2.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007862/0.625, allocations: 2.578 MB / 438.7 MB, free: 260 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.6276, allocations: 280 kB / 439 MB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/0.6441, allocations: 6.996 MB / 446 MB, free: 8.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001893/0.6461, allocations: 1.547 MB / 447.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/0.6472, allocations: 187.3 kB / 447.7 MB, free: 7.082 MB / 378.7 MB Notification: Performance of SimCode: time 2.188e-06/0.6472, allocations: 0 / 447.7 MB, free: 7.082 MB / 378.7 MB Notification: Performance of Templates: time 0.3152/0.9625, allocations: 66.61 MB / 0.5022 GB, free: 119.1 MB / 410.7 MB