Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.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.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.1 MB, free: 8.754 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004571/0.0004571, allocations: 8 kB / 264.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3379, allocations: 44.5 MB / 308.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1357/0.4736, allocations: 73.26 MB / 381.8 MB, free: 3.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.474, allocations: 67.97 kB / 381.9 MB, free: 3.367 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02686/0.5009, allocations: 5.465 MB / 387.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.501, allocations: 4 kB / 387.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.855e-05/0.501, allocations: 4 kB / 387.4 MB, free: 13.88 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001834/0.5028, allocations: 0.6274 MB / 388 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.5029, allocations: 8.031 kB / 388 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001334/0.5031, allocations: 62.53 kB / 388.1 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.5032, allocations: 39.53 kB / 388.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004741/0.5037, allocations: 271.4 kB / 388.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/0.5037, allocations: 20.56 kB / 388.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.5039, allocations: 32 kB / 388.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.505, allocations: 356.7 kB / 388.8 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.5051, allocations: 4 kB / 388.8 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.104e-05/0.5051, allocations: 8 kB / 388.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.5052, allocations: 8 kB / 388.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.5065, allocations: 366 kB / 389.1 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003504/0.51, allocations: 1.123 MB / 390.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008867/0.5109, allocations: 295.2 kB / 390.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.562e-05/0.511, allocations: 4 kB / 390.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.5111, allocations: 42.56 kB / 390.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 3.717e-06/0.5111, allocations: 4 kB / 390.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.007982/0.5191, allocations: 2.011 MB / 392.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.5192, allocations: 63.78 kB / 392.7 MB, free: 8.215 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.5195, allocations: 192.1 kB / 392.9 MB, free: 8.016 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.5197, allocations: 41.7 kB / 392.9 MB, free: 7.969 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.5198, allocations: 144.8 kB / 393 MB, free: 7.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.52, allocations: 161.9 kB / 393.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/0.5201, allocations: 8 kB / 393.2 MB, free: 7.652 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.5202, allocations: 342.8 kB / 393.5 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000702/0.521, allocations: 185 kB / 393.7 MB, free: 7.129 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007212/0.5217, allocations: 260.8 kB / 394 MB, free: 6.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005484/0.5223, allocations: 152.7 kB / 394.1 MB, free: 6.707 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.5223, allocations: 7.953 kB / 394.1 MB, free: 6.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00259/0.5249, allocations: 0.6455 MB / 394.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.525, allocations: 5.25 kB / 394.8 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-05/0.525, allocations: 7.984 kB / 394.8 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.5263, allocations: 389.6 kB / 395.2 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005596/0.5269, allocations: 75.84 kB / 395.3 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/0.5288, allocations: 1.32 MB / 396.6 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009233/0.5298, allocations: 92.02 kB / 396.7 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.5299, allocations: 23.98 kB / 396.7 MB, free: 4.082 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003409/0.5302, allocations: 153.8 kB / 396.8 MB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.5304, allocations: 35.58 kB / 396.9 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.5331, allocations: 0.6483 MB / 397.5 MB, free: 3.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.5332, allocations: 4 kB / 397.5 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.5332, allocations: 0 / 397.5 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.5332, allocations: 3.984 kB / 397.5 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004794/0.538, allocations: 1.314 MB / 398.8 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.5381, allocations: 11.92 kB / 398.9 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005485/0.5386, allocations: 64.12 kB / 398.9 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.5398, allocations: 357.4 kB / 399.3 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.5399, allocations: 23.97 kB / 399.3 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.5416, allocations: 1.261 MB / 400.5 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.5416, allocations: 4.031 kB / 400.6 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003215/0.5449, allocations: 0.9218 MB / 401.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/0.5453, allocations: 160.6 kB / 401.6 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.5454, allocations: 19.98 kB / 401.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/0.546, allocations: 47.97 kB / 401.7 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.5464, allocations: 103.8 kB / 401.8 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/0.5465, allocations: 19.98 kB / 401.8 MB, free: 14.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.5467, allocations: 160.5 kB / 402 MB, free: 14.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5467, allocations: 4 kB / 402 MB, free: 14.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006889/0.5474, allocations: 100 kB / 402.1 MB, free: 14.44 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003903/0.5514, allocations: 1.874 MB / 403.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.5533, allocations: 0.5248 MB / 404.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.5534, allocations: 0 / 404.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.5545, allocations: 288.3 kB / 404.8 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00063/0.5551, allocations: 40.41 kB / 404.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009256/0.5644, allocations: 3.596 MB / 408.4 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.5649, allocations: 0.7841 MB / 409.2 MB, free: 7.129 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002828/0.5652, allocations: 30.97 kB / 409.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.5655, allocations: 91.39 kB / 409.3 MB, free: 7.012 MB / 346.7 MB Notification: Performance of SimCode: time 1.753e-06/0.5655, allocations: 0 / 409.3 MB, free: 7.012 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3207/0.8863, allocations: 9.988 MB / 419.3 MB, free: 98.78 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002695/0.8866, allocations: 210 kB / 419.5 MB, free: 98.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.941/3.828, allocations: 0 / 419.5 MB, free: 98.54 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat