Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003604, allocations: 8 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3182, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1789/0.4971, allocations: 74.5 MB / 383.1 MB, free: 2.066 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004295/0.4976, allocations: 71.95 kB / 383.1 MB, free: 1.996 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05301/0.5507, allocations: 9.022 MB / 392.1 MB, free: 8.957 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5507, allocations: 0 / 392.1 MB, free: 8.957 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.592e-05/0.5508, allocations: 16 kB / 392.2 MB, free: 8.941 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002723/0.5535, allocations: 0.8298 MB / 393 MB, free: 8.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.5536, allocations: 12.03 kB / 393 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/0.5538, allocations: 78.53 kB / 393.1 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.554, allocations: 59.25 kB / 393.1 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006796/0.5547, allocations: 334.7 kB / 393.5 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.586e-05/0.5547, allocations: 36.94 kB / 393.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.5549, allocations: 47.91 kB / 393.6 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.5568, allocations: 0.5878 MB / 394.1 MB, free: 6.859 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/0.5569, allocations: 4 kB / 394.1 MB, free: 6.855 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.903e-05/0.557, allocations: 20 kB / 394.2 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.557, allocations: 11.98 kB / 394.2 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.5592, allocations: 0.562 MB / 394.7 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00505/0.5643, allocations: 1.332 MB / 396.1 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002388/0.5667, allocations: 472.5 kB / 396.5 MB, free: 4.398 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001519/0.5669, allocations: 20.5 kB / 396.5 MB, free: 4.379 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/0.567, allocations: 43.06 kB / 396.6 MB, free: 4.328 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 4.959e-06/0.567, allocations: 0 / 396.6 MB, free: 4.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.01617/0.5832, allocations: 2.917 MB / 399.5 MB, free: 1.262 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.5833, allocations: 67.95 kB / 399.6 MB, free: 1.184 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.5839, allocations: 255.7 kB / 399.8 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.5841, allocations: 49.69 kB / 399.9 MB, free: 0.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.5843, allocations: 181.4 kB / 400.1 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003872/0.5848, allocations: 240.7 kB / 400.3 MB, free: 468 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.5849, allocations: 16 kB / 400.3 MB, free: 452 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.5851, allocations: 354.8 kB / 400.6 MB, free: 88 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0015/0.5866, allocations: 289.9 kB / 400.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.5882, allocations: 353 kB / 401.3 MB, free: 15.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01268/0.6009, allocations: 231.2 kB / 401.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6009, allocations: 0 / 401.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004841/0.6058, allocations: 0.8496 MB / 402.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/0.6059, allocations: 6.812 kB / 402.4 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.274e-05/0.6059, allocations: 7.984 kB / 402.4 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/0.6085, allocations: 0.5766 MB / 402.9 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008454/0.617, allocations: 103.8 kB / 403 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003679/0.6207, allocations: 0.9854 MB / 404 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.6226, allocations: 147.9 kB / 404.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.6228, allocations: 31.98 kB / 404.2 MB, free: 12.49 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0005378/0.6233, allocations: 180 kB / 404.4 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.6235, allocations: 55.39 kB / 404.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004553/0.6281, allocations: 0.9134 MB / 405.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.6282, allocations: 11.94 kB / 405.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.6282, allocations: 0 / 405.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.6282, allocations: 3.984 kB / 405.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006169/0.6344, allocations: 1.496 MB / 406.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.6345, allocations: 0 / 406.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.6356, allocations: 95.88 kB / 407 MB, free: 9.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002384/0.638, allocations: 0.559 MB / 407.5 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/0.6382, allocations: 23.97 kB / 407.5 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002803/0.641, allocations: 0.962 MB / 408.5 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.641, allocations: 0 / 408.5 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005924/0.6469, allocations: 1.206 MB / 409.7 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006103/0.6476, allocations: 184.4 kB / 409.9 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.6479, allocations: 27.98 kB / 409.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.6497, allocations: 143.8 kB / 410.1 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006628/0.6503, allocations: 156.2 kB / 410.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/0.6505, allocations: 27.97 kB / 410.2 MB, free: 6.297 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005585/0.6511, allocations: 219.2 kB / 410.4 MB, free: 6.086 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.6511, allocations: 4 kB / 410.4 MB, free: 6.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001276/0.6524, allocations: 159.9 kB / 410.6 MB, free: 5.926 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.006092/0.6585, allocations: 1.8 MB / 412.4 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002849/0.6614, allocations: 0.8085 MB / 413.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.6615, allocations: 0 / 413.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.663, allocations: 418 kB / 413.6 MB, free: 2.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009058/0.6639, allocations: 77.94 kB / 413.7 MB, free: 2.789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2974/0.9613, allocations: 4.029 MB / 417.7 MB, free: 96.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/0.962, allocations: 0.8558 MB / 418.6 MB, free: 95.61 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005337/0.9626, allocations: 46.47 kB / 418.6 MB, free: 95.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004625/0.9631, allocations: 143.4 kB / 418.8 MB, free: 95.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/0.9631, allocations: 0 / 418.8 MB, free: 95.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05383/1.017, allocations: 15.42 MB / 434.2 MB, free: 87.41 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000292/1.017, allocations: 222 kB / 434.4 MB, free: 87.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.338/4.356, allocations: 0 / 434.4 MB, free: 87.16 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat