Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.485/2.485, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.12e-05/2.132e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3482, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.527, allocations: 98.86 MB / 457 MB, free: 11.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.5273, allocations: 67.97 kB / 457 MB, free: 11.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5375/1.065, allocations: 47.57 MB / 0.4928 GB, free: 76.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.776e-06/1.065, allocations: 4 kB / 0.4928 GB, free: 76.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001679/1.065, allocations: 51.98 kB / 0.4928 GB, free: 76.4 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.01046/1.076, allocations: 2.344 MB / 0.4951 GB, free: 74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/1.076, allocations: 12.03 kB / 0.4951 GB, free: 73.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001899/1.078, allocations: 300.8 kB / 0.4954 GB, free: 73.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00291/1.08, allocations: 0.9824 MB / 0.4964 GB, free: 72.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00113/1.082, allocations: 388.1 kB / 0.4968 GB, free: 72.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008171/1.082, allocations: 143.7 kB / 0.4969 GB, free: 72.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006599/1.089, allocations: 2.082 MB / 0.4989 GB, free: 70 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006363/1.096, allocations: 2.036 MB / 0.5009 GB, free: 67.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001892/1.096, allocations: 39.58 kB / 0.501 GB, free: 67.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003135/1.096, allocations: 7.953 kB / 0.501 GB, free: 67.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-05/1.096, allocations: 52 kB / 0.501 GB, free: 67.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02299/1.119, allocations: 6.243 MB / 0.5071 GB, free: 61.46 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006677/1.126, allocations: 2.086 MB / 0.5091 GB, free: 59.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004177/1.13, allocations: 1.11 MB / 0.5102 GB, free: 58.13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005295/1.131, allocations: 131.2 kB / 0.5104 GB, free: 57.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.904e-05/1.131, allocations: 68.72 kB / 0.5104 GB, free: 57.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 1.004e-05/1.131, allocations: 0 / 0.5104 GB, free: 57.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=338): time 0.03956/1.17, allocations: 10.06 MB / 0.5202 GB, free: 47.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/1.171, allocations: 274.1 kB / 0.5205 GB, free: 47.06 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/1.172, allocations: 0.7352 MB / 0.5212 GB, free: 46.31 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008858/1.173, allocations: 45.69 kB / 0.5213 GB, free: 46.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007488/1.174, allocations: 0.6808 MB / 0.5219 GB, free: 45.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001863/1.176, allocations: 1.093 MB / 0.523 GB, free: 44.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004248/1.177, allocations: 7.984 kB / 0.523 GB, free: 44.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002623/1.177, allocations: 433.5 kB / 0.5234 GB, free: 44.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003415/1.18, allocations: 0.9476 MB / 0.5243 GB, free: 43.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003235/1.183, allocations: 1.347 MB / 0.5257 GB, free: 41.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003418/1.187, allocations: 0.9803 MB / 0.5266 GB, free: 40.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.701e-05/1.187, allocations: 0 / 0.5266 GB, free: 40.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.009944/1.197, allocations: 2.943 MB / 0.5295 GB, free: 37.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/1.197, allocations: 15.95 kB / 0.5295 GB, free: 37.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.977e-05/1.197, allocations: 16.12 kB / 0.5295 GB, free: 37.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003414/1.201, allocations: 1.014 MB / 0.5305 GB, free: 36.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005701/1.206, allocations: 0.749 MB / 0.5312 GB, free: 35.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.218, allocations: 7.289 MB / 0.5384 GB, free: 28.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003957/1.222, allocations: 231.8 kB / 0.5386 GB, free: 28.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006685/1.223, allocations: 128 kB / 0.5387 GB, free: 27.9 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.0008716/1.224, allocations: 180.8 kB / 0.5389 GB, free: 27.72 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008952/1.232, allocations: 2.763 MB / 0.5416 GB, free: 24.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.234, allocations: 209.5 kB / 0.5418 GB, free: 24.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/1.24, allocations: 2.149 MB / 0.5439 GB, free: 22.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.547e-05/1.24, allocations: 32 kB / 0.5439 GB, free: 22.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/1.24, allocations: 8 kB / 0.5439 GB, free: 22.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.64e-05/1.24, allocations: 19.89 kB / 0.5439 GB, free: 22.48 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.02083/1.261, allocations: 6.864 MB / 0.5506 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.335e-05/1.261, allocations: 13.05 kB / 0.5506 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00628/1.267, allocations: 0.7413 MB / 0.5514 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/1.271, allocations: 1.002 MB / 0.5523 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007308/1.272, allocations: 59.91 kB / 0.5524 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/1.284, allocations: 9.808 MB / 0.562 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/1.284, allocations: 8 kB / 0.562 GB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/1.298, allocations: 5.264 MB / 0.5671 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/1.3, allocations: 0.5178 MB / 0.5676 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007666/1.301, allocations: 28 kB / 0.5677 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00411/1.305, allocations: 255.8 kB / 0.5679 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0018/1.307, allocations: 445.1 kB / 0.5683 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000537/1.308, allocations: 131.8 kB / 0.5685 GB, free: 12.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001202/1.309, allocations: 0.5507 MB / 0.569 GB, free: 11.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.309, allocations: 0 / 0.569 GB, free: 11.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005473/1.314, allocations: 0.6093 MB / 0.5696 GB, free: 11.04 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.01638/1.331, allocations: 8.245 MB / 0.5776 GB, free: 2.453 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00809/1.339, allocations: 2.883 MB / 0.5805 GB, free: 15.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/1.339, allocations: 4 kB / 0.5805 GB, free: 15.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007407/1.346, allocations: 2.411 MB / 0.5828 GB, free: 13.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003409/1.35, allocations: 235.9 kB / 0.583 GB, free: 12.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.37, allocations: 5.93 MB / 0.5888 GB, free: 6.734 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001725/1.372, allocations: 1.588 MB / 0.5904 GB, free: 5.109 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002547/1.375, allocations: 0.8819 MB / 0.5912 GB, free: 4.227 MB / 426.7 MB Notification: Performance of SimCode: time 1.342e-06/1.375, allocations: 0 / 0.5912 GB, free: 4.227 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.534/5.909, allocations: 79.4 MB / 0.6688 GB, free: 113 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat