Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.BUF3S.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.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.889/1.889, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005324/0.0005328, allocations: 8 kB / 264 MB, free: 3.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2897, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00199/0.2917, allocations: 1.189 MB / 309.7 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.2944, allocations: 0.8435 MB / 310.6 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.2944, allocations: 4 kB / 310.6 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.961e-05/0.2945, allocations: 7.922 kB / 310.6 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.896e-05/0.2946, allocations: 15.97 kB / 310.6 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.2949, allocations: 43.83 kB / 310.7 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000147/0.2951, allocations: 67.92 kB / 310.7 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.464e-05/0.2952, allocations: 15.97 kB / 310.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005012/0.2957, allocations: 283.5 kB / 311 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.2958, allocations: 79.8 kB / 311.1 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.33e-05/0.2959, allocations: 3.938 kB / 311.1 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.668e-05/0.296, allocations: 4 kB / 311.1 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.686e-05/0.2961, allocations: 63.77 kB / 311.2 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.712e-05/0.2962, allocations: 73.58 kB / 311.2 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003705/0.2966, allocations: 283.3 kB / 311.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.2966, allocations: 0 / 311.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2966, allocations: 0 / 311.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.84e-06/0.2966, allocations: 0 / 311.5 MB, free: 9.785 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000807/0.2974, allocations: 0.6575 MB / 312.2 MB, free: 9.055 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2975, allocations: 8.031 kB / 312.2 MB, free: 9.047 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.61e-05/0.2975, allocations: 42.56 kB / 312.2 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.2976, allocations: 39.58 kB / 312.3 MB, free: 8.957 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.298, allocations: 265.3 kB / 312.5 MB, free: 8.656 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.298, allocations: 4 kB / 312.5 MB, free: 8.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.2981, allocations: 8 kB / 312.5 MB, free: 8.645 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003904/0.2985, allocations: 125.6 kB / 312.7 MB, free: 8.516 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2985, allocations: 0 / 312.7 MB, free: 8.516 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.2985, allocations: 8 kB / 312.7 MB, free: 8.508 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2986, allocations: 0 / 312.7 MB, free: 8.508 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002217/0.2988, allocations: 63.84 kB / 312.7 MB, free: 8.445 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008584/0.2997, allocations: 464.5 kB / 313.2 MB, free: 7.941 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.2999, allocations: 90.55 kB / 313.3 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.3, allocations: 0 / 313.3 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004378/0.3004, allocations: 202.7 kB / 313.5 MB, free: 7.621 MB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 2.003e-06/0.3004, allocations: 0 / 313.5 MB, free: 7.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.001328/0.3018, allocations: 0.6154 MB / 314.1 MB, free: 6.938 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.3019, allocations: 170.2 kB / 314.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.303, allocations: 0.513 MB / 314.8 MB, free: 6.215 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.303, allocations: 29.7 kB / 314.8 MB, free: 6.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.748e-05/0.3031, allocations: 105 kB / 314.9 MB, free: 6.074 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.934e-05/0.3032, allocations: 27.7 kB / 314.9 MB, free: 6.047 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.3032, allocations: 4 kB / 314.9 MB, free: 6.043 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3034, allocations: 322.8 kB / 315.2 MB, free: 5.719 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.3036, allocations: 59.97 kB / 315.3 MB, free: 5.66 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/0.3039, allocations: 80.56 kB / 315.4 MB, free: 5.578 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.3041, allocations: 166.7 kB / 315.5 MB, free: 5.391 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3042, allocations: 0 / 315.5 MB, free: 5.391 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008802/0.305, allocations: 368.6 kB / 315.9 MB, free: 5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.3052, allocations: 126.8 kB / 316 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.3052, allocations: 0 / 316 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.3052, allocations: 3.953 kB / 316 MB, free: 4.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.551e-05/0.3053, allocations: 8.031 kB / 316 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3053, allocations: 3.938 kB / 316 MB, free: 4.836 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.3055, allocations: 19.98 kB / 316.1 MB, free: 4.816 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.281e-05/0.3056, allocations: 39.94 kB / 316.1 MB, free: 4.777 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005317/0.3062, allocations: 358.2 kB / 316.4 MB, free: 4.391 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.642e-05/0.3063, allocations: 39.53 kB / 316.5 MB, free: 4.352 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.3064, allocations: 75.12 kB / 316.6 MB, free: 4.273 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.3065, allocations: 0 / 316.6 MB, free: 4.273 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.3065, allocations: 11.94 kB / 316.6 MB, free: 4.262 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3065, allocations: 0 / 316.6 MB, free: 4.262 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.308, allocations: 0.8019 MB / 317.4 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.308, allocations: 3.938 kB / 317.4 MB, free: 3.375 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.188e-05/0.3081, allocations: 4 kB / 317.4 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.3081, allocations: 192 / 317.4 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.381e-05/0.3081, allocations: 19.95 kB / 317.4 MB, free: 3.352 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.3081, allocations: 0 / 317.4 MB, free: 3.352 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3081, allocations: 3.938 kB / 317.4 MB, free: 3.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.3092, allocations: 0.5213 MB / 317.9 MB, free: 2.785 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005302/0.3098, allocations: 244.5 kB / 318.2 MB, free: 2.527 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.3099, allocations: 12 kB / 318.2 MB, free: 2.516 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.3101, allocations: 15.94 kB / 318.2 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.3103, allocations: 27.97 kB / 318.2 MB, free: 2.473 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.49e-05/0.3104, allocations: 39.98 kB / 318.3 MB, free: 2.434 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007981/0.3112, allocations: 382.9 kB / 318.6 MB, free: 2.059 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3112, allocations: 4 kB / 318.6 MB, free: 2.055 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000427/0.3116, allocations: 47.91 kB / 318.7 MB, free: 2.008 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001455/0.3131, allocations: 1.07 MB / 319.7 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007811/0.3139, allocations: 437.5 kB / 320.2 MB, free: 420 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3139, allocations: 4.062 kB / 320.2 MB, free: 416 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005129/0.3144, allocations: 377.6 kB / 320.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008029/0.3153, allocations: 104 kB / 320.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.3189, allocations: 1.447 MB / 322.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.3196, allocations: 0.8103 MB / 322.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.046e-05/0.3197, allocations: 8.656 kB / 322.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.614e-05/0.3197, allocations: 31.42 kB / 322.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3197, allocations: 0 / 322.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.3527, allocations: 5 MB / 327.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000347/0.3531, allocations: 167.8 kB / 328.1 MB, free: 8.316 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.758, allocations: 8.062 kB / 328.1 MB, free: 8.309 MB / 266.7 MB "" Variables in the reference:time,bUF3S.y Variables in the result:bUF3S.enable,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.tHL,bUF3S.inertialDelaySensitive.tLH,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y0,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.nextstate,bUF3S.strength,bUF3S.tHL,bUF3S.tLH,bUF3S.x,bUF3S.y,bUF3S.yy,e_table.n,e_table.t[1],e_table.t[2],e_table.t[3],e_table.x[1],e_table.x[2],e_table.x[3],e_table.y,e_table.y0,time,x_table.n,x_table.t[1],x_table.t[2],x_table.x[1],x_table.x[2],x_table.y,x_table.y0