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 1.985/1.985, allocations: 194.8 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003598, allocations: 8 kB / 264.1 MB, free: 2.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2993, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003284/0.3026, allocations: 1.929 MB / 310.5 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.3041, allocations: 0.5002 MB / 311 MB, free: 10.22 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.3043, allocations: 7.938 kB / 311 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.3045, allocations: 27.77 kB / 311 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002865/0.3048, allocations: 95.73 kB / 311.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.3054, allocations: 143.7 kB / 311.3 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005201/0.3059, allocations: 292 kB / 311.5 MB, free: 9.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.3061, allocations: 44.67 kB / 311.6 MB, free: 9.621 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.3064, allocations: 195.3 kB / 311.8 MB, free: 9.43 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003854/0.3068, allocations: 203.3 kB / 312 MB, free: 9.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.566e-05/0.3069, allocations: 24 kB / 312 MB, free: 9.207 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.3071, allocations: 67.94 kB / 312.1 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.3073, allocations: 79.7 kB / 312.1 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.3074, allocations: 77.52 kB / 312.2 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005061/0.3079, allocations: 312.2 kB / 312.5 MB, free: 8.676 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3079, allocations: 0 / 312.5 MB, free: 8.676 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3079, allocations: 4 kB / 312.5 MB, free: 8.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.308, allocations: 0 / 312.5 MB, free: 8.672 MB / 250.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.002223/0.3102, allocations: 0.6275 MB / 313.2 MB, free: 7.996 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.968e-05/0.3103, allocations: 8.031 kB / 313.2 MB, free: 7.988 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/0.3105, allocations: 62.53 kB / 313.2 MB, free: 7.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.3107, allocations: 35.62 kB / 313.3 MB, free: 7.883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007573/0.3115, allocations: 275.4 kB / 313.5 MB, free: 7.574 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.812e-05/0.3116, allocations: 28.56 kB / 313.6 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.3118, allocations: 24 kB / 313.6 MB, free: 7.523 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002013/0.3138, allocations: 380.7 kB / 314 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.88e-05/0.314, allocations: 0 / 314 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.3141, allocations: 12 kB / 314 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/0.3142, allocations: 8 kB / 314 MB, free: 7.125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002324/0.3165, allocations: 405.9 kB / 314.4 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005198/0.3218, allocations: 1.143 MB / 315.5 MB, free: 5.512 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.3231, allocations: 287.6 kB / 315.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-05/0.3232, allocations: 4.328 kB / 315.8 MB, free: 5.219 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.3233, allocations: 43.22 kB / 315.8 MB, free: 5.168 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 2.975e-06/0.3233, allocations: 0 / 315.8 MB, free: 5.168 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.00793/0.3312, allocations: 2.113 MB / 318 MB, free: 2.918 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.3313, allocations: 59.39 kB / 318 MB, free: 2.848 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.3317, allocations: 232.9 kB / 318.2 MB, free: 2.609 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.834e-05/0.3318, allocations: 41.7 kB / 318.3 MB, free: 2.562 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.332, allocations: 148.8 kB / 318.4 MB, free: 2.41 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.3322, allocations: 157.8 kB / 318.6 MB, free: 2.254 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.3322, allocations: 8 kB / 318.6 MB, free: 2.246 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3324, allocations: 342.8 kB / 318.9 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007023/0.3331, allocations: 213 kB / 319.1 MB, free: 1.691 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007612/0.3339, allocations: 280.8 kB / 319.4 MB, free: 1.391 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.3345, allocations: 176.7 kB / 319.6 MB, free: 1.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3345, allocations: 0 / 319.6 MB, free: 1.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002556/0.3371, allocations: 0.6847 MB / 320.3 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3371, allocations: 4 kB / 320.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.3372, allocations: 7.938 kB / 320.3 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.3387, allocations: 0.4936 MB / 320.8 MB, free: 12 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.3393, allocations: 79.84 kB / 320.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.3415, allocations: 1.39 MB / 322.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.3427, allocations: 96.05 kB / 322.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.3429, allocations: 19.98 kB / 322.3 MB, free: 14.38 MB / 266.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): 47 * 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 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000565/0.3435, allocations: 161.7 kB / 322.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.3437, allocations: 31.62 kB / 322.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001665/0.3439, allocations: 51.23 kB / 322.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3439, allocations: 4 kB / 322.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.3439, allocations: 0 / 322.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.3439, allocations: 7.984 kB / 322.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004776/0.3487, allocations: 1.382 MB / 324 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.3488, allocations: 4 kB / 324 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.3493, allocations: 55.91 kB / 324 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.3508, allocations: 461.5 kB / 324.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.664e-05/0.3509, allocations: 23.97 kB / 324.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/0.3528, allocations: 1.331 MB / 325.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.3528, allocations: 4.031 kB / 325.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003158/0.356, allocations: 0.9628 MB / 326.8 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.3563, allocations: 160.7 kB / 327 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.3565, allocations: 12 kB / 327 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000661/0.3571, allocations: 51.95 kB / 327 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/0.3575, allocations: 103.7 kB / 327.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.437e-05/0.3576, allocations: 19.98 kB / 327.1 MB, free: 9.371 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002543/0.3578, allocations: 168.5 kB / 327.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3578, allocations: 0 / 327.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006418/0.3585, allocations: 104 kB / 327.4 MB, free: 9.102 MB / 266.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.003648/0.3621, allocations: 1.539 MB / 329 MB, free: 7.516 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.3642, allocations: 0.5061 MB / 329.5 MB, free: 7.008 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.3642, allocations: 0 / 329.5 MB, free: 7.008 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.3653, allocations: 292.3 kB / 329.7 MB, free: 6.723 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.3659, allocations: 48.34 kB / 329.8 MB, free: 6.676 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008457/0.3744, allocations: 2.656 MB / 332.4 MB, free: 3.922 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.3749, allocations: 0.7917 MB / 333.2 MB, free: 3.105 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002631/0.3752, allocations: 38.95 kB / 333.3 MB, free: 3.066 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.3754, allocations: 87.41 kB / 333.4 MB, free: 2.98 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3755, allocations: 4 kB / 333.4 MB, free: 2.977 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04214/0.4176, allocations: 10.48 MB / 343.8 MB, free: 8.527 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003399/0.418, allocations: 214 kB / 344.1 MB, free: 8.277 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.851/3.269, allocations: 0 / 344.1 MB, free: 8.277 MB / 282.7 MB "" Variables in the reference:time,mass1.s,mass1.v,mass2.s,mass2.v,brake.mode,brake.startBackward,brake.startForward,brake1.mode,brake1.startBackward,brake1.startForward Variables in the result:brake.a,brake.a_relfric,brake.cgeo,brake.f,brake.f0,brake.f0_max,brake.f_normalized,brake.flange_a.f,brake.flange_a.s,brake.flange_b.f,brake.flange_b.s,brake.fn,brake.fn_max,brake.free,brake.locked,brake.lossPower,brake.mode,brake.mue0,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.s,brake.s_a,brake.s_b,brake.s_support,brake.sa,brake.startBackward,brake.startForward,brake.useHeatPort,brake.useSupport,brake.v,brake.v_relfric,brake.v_small,brake1.a,brake1.a_relfric,brake1.cgeo,brake1.f,brake1.f0,brake1.f0_max,brake1.f_normalized,brake1.flange_a.f,brake1.flange_a.s,brake1.flange_b.f,brake1.flange_b.s,brake1.fn,brake1.fn_max,brake1.free,brake1.locked,brake1.lossPower,brake1.mode,brake1.mue0,brake1.mue_pos[1,1],brake1.mue_pos[1,2],brake1.peak,brake1.s,brake1.s_a,brake1.s_b,brake1.s_support,brake1.sa,brake1.startBackward,brake1.startForward,brake1.support.f,brake1.support.s,brake1.useHeatPort,brake1.useSupport,brake1.v,brake1.v_relfric,brake1.v_small,der(brake.s),der(brake.v),der(brake1.s),der(brake1.v),der(der(mass2.flange_b.s)),der(mass1.s),der(mass1.v),der(mass2.flange_b.s),der(mass2.s),der(mass2.v),fixed.flange.f,fixed.flange.s,fixed.s0,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,step.height,step.offset,step.startTime,step.y,time