Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01061/0.01062, allocations: 107.5 kB / 15.06 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001247/0.001247, allocations: 179.2 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.083/2.083, allocations: 194.5 MB / 211.2 MB, free: 11.08 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2807/0.2807, allocations: 40.04 MB / 296.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.0004742, allocations: 12 kB / 361.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1275, allocations: 54.88 MB / 416 MB, free: 2.582 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.0129/0.1404, allocations: 7.501 MB / 423.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008747/0.1493, allocations: 3.134 MB / 426.6 MB, free: 7.902 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.1508, allocations: 39.81 kB / 426.7 MB, free: 7.863 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006578/0.1515, allocations: 238.1 kB / 426.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002957/0.1544, allocations: 0.8335 MB / 427.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002693/0.1572, allocations: 0.7136 MB / 428.5 MB, free: 6.078 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004607/0.1618, allocations: 2.11 MB / 430.6 MB, free: 3.965 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.1632, allocations: 0.6341 MB / 431.2 MB, free: 3.309 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002274/0.1655, allocations: 1.145 MB / 432.3 MB, free: 2.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002362/0.1679, allocations: 1.327 MB / 433.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005071/0.1684, allocations: 136 kB / 433.8 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009147/0.1694, allocations: 219.9 kB / 434 MB, free: 492 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007236/0.1701, allocations: 0.5138 MB / 434.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006798/0.1708, allocations: 448.5 kB / 435 MB, free: 15.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003635/0.1744, allocations: 2.353 MB / 437.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1745, allocations: 0 / 437.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1745, allocations: 0 / 437.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.727e-05/0.1746, allocations: 0 / 437.3 MB, free: 13.16 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01063/0.1852, allocations: 2.62 MB / 439.9 MB, free: 10.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1853, allocations: 12.03 kB / 440 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006844/0.186, allocations: 303.9 kB / 440.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/0.1873, allocations: 296.9 kB / 440.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.1901, allocations: 1.072 MB / 441.6 MB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001769/0.1919, allocations: 0.5156 MB / 442.1 MB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006483/0.1926, allocations: 235.7 kB / 442.4 MB, free: 7.938 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008804/0.2014, allocations: 2.631 MB / 445 MB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/0.2016, allocations: 31.7 kB / 445 MB, free: 5.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003612/0.2019, allocations: 88 kB / 445.1 MB, free: 5.094 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.521e-05/0.202, allocations: 56 kB / 445.2 MB, free: 5.039 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01114/0.2132, allocations: 2.751 MB / 447.9 MB, free: 2.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3872/0.6004, allocations: 6.992 MB / 454.9 MB, free: 55.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008566/0.609, allocations: 2.561 MB / 457.5 MB, free: 54.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004659/0.6095, allocations: 127.6 kB / 457.6 MB, free: 54.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.245e-05/0.6096, allocations: 70.22 kB / 457.7 MB, free: 54.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=275): time 6.081e-06/0.6096, allocations: 0 / 457.7 MB, free: 54.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=333): time 0.04779/0.6574, allocations: 14.58 MB / 472.2 MB, free: 47.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.6576, allocations: 327.4 kB / 472.6 MB, free: 46.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/0.6597, allocations: 1.141 MB / 473.7 MB, free: 46.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005118/0.6602, allocations: 95.48 kB / 473.8 MB, free: 46.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005583/0.6608, allocations: 0.6984 MB / 474.5 MB, free: 45.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001076/0.6619, allocations: 1.116 MB / 475.6 MB, free: 44.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.6621, allocations: 67.8 kB / 475.7 MB, free: 44.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.6623, allocations: 424 kB / 476.1 MB, free: 44.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004002/0.6663, allocations: 1.133 MB / 477.2 MB, free: 44.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0042/0.6706, allocations: 1.563 MB / 478.8 MB, free: 43.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003971/0.6746, allocations: 1.164 MB / 480 MB, free: 42.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/0.6746, allocations: 6.875 kB / 480 MB, free: 42.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01225/0.6868, allocations: 3.586 MB / 483.5 MB, free: 41.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.833e-05/0.6869, allocations: 12.98 kB / 483.6 MB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.308e-05/0.687, allocations: 8.281 kB / 483.6 MB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004134/0.6911, allocations: 1.214 MB / 484.8 MB, free: 41.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005743/0.6969, allocations: 0.7519 MB / 485.5 MB, free: 41.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/0.711, allocations: 7.65 MB / 493.2 MB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/0.7152, allocations: 289.9 kB / 493.5 MB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003868/0.7156, allocations: 121.1 kB / 493.6 MB, free: 35.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (338): * Single equations (assignments): 333 * 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.001481/0.7171, allocations: 481.8 kB / 494.1 MB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000713/0.7178, allocations: 217.4 kB / 494.3 MB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.7196, allocations: 0.6139 MB / 494.9 MB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.616e-05/0.7196, allocations: 33.5 kB / 494.9 MB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.884e-05/0.7197, allocations: 4.625 kB / 494.9 MB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-05/0.7197, allocations: 18.31 kB / 494.9 MB, free: 34.26 MB / 378.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.02558/0.7453, allocations: 7.951 MB / 0.4911 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.371e-05/0.7454, allocations: 8.25 kB / 0.4911 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006155/0.7516, allocations: 0.7045 MB / 0.4918 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004205/0.7558, allocations: 1.198 MB / 0.493 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005896/0.7564, allocations: 104.6 kB / 0.4931 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/0.7718, allocations: 10.27 MB / 0.5031 GB, free: 21.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.7719, allocations: 15.67 kB / 0.5031 GB, free: 21.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02283/0.7947, allocations: 6.619 MB / 0.5096 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002232/0.797, allocations: 0.5342 MB / 0.5101 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009366/0.798, allocations: 86.58 kB / 0.5102 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00443/0.8025, allocations: 297.8 kB / 0.5105 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/0.8044, allocations: 453.6 kB / 0.5109 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003958/0.8048, allocations: 116.8 kB / 0.511 GB, free: 14.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002059/0.8069, allocations: 0.7734 MB / 0.5118 GB, free: 14.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.8069, allocations: 0 / 0.5118 GB, free: 14.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00436/0.8113, allocations: 0.7295 MB / 0.5125 GB, free: 13.38 MB / 378.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,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 (267): * Single equations (assignments): 260 * 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.02082/0.8322, allocations: 9.588 MB / 0.5218 GB, free: 4.062 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/0.8431, allocations: 3.514 MB / 0.5253 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.8432, allocations: 8.25 kB / 0.5253 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01075/0.8539, allocations: 2.919 MB / 0.5281 GB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003221/0.8572, allocations: 299.7 kB / 0.5284 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05722/0.9145, allocations: 22.67 MB / 0.5506 GB, free: 5.609 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001863/0.9164, allocations: 1.594 MB / 0.5521 GB, free: 3.977 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002383/0.9188, allocations: 305.2 kB / 0.5524 GB, free: 3.676 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002449/0.9213, allocations: 0.8791 MB / 0.5533 GB, free: 2.801 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.9213, allocations: 0 / 0.5533 GB, free: 2.801 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1484/1.07, allocations: 54.31 MB / 0.6063 GB, free: 12.55 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003779/1.07, allocations: 204.7 kB / 0.6065 GB, free: 12.31 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.163/6.234, allocations: 0 / 0.6065 GB, free: 12.31 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat