Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001205/0.001205, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.402/1.402, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2724, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00253/0.2749, allocations: 1.538 MB / 410.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.2768, allocations: 0.8794 MB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.581e-05/0.2769, allocations: 4 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.331e-05/0.277, allocations: 15.86 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.066e-05/0.277, allocations: 11.88 kB / 411.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.2773, allocations: 51.88 kB / 411.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002256/0.2775, allocations: 151.7 kB / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.586e-05/0.2776, allocations: 16 kB / 411.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004536/0.2781, allocations: 387.2 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.2782, allocations: 59.77 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.864e-05/0.2783, allocations: 8 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.232e-05/0.2783, allocations: 12 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.085e-05/0.2784, allocations: 63.7 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.2785, allocations: 111.2 kB / 412.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.2789, allocations: 357.5 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2789, allocations: 0 / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2789, allocations: 4 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2789, allocations: 0 / 412.7 MB, free: 13.72 MB / 334.1 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.00082/0.2798, allocations: 0.7382 MB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2798, allocations: 12.03 kB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5e-05/0.2799, allocations: 38.75 kB / 413.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.344e-05/0.2799, allocations: 36.7 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.2802, allocations: 274.7 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.2802, allocations: 4.375 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.2803, allocations: 12.38 kB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.2806, allocations: 133.7 kB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2806, allocations: 0 / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.2806, allocations: 7.984 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2806, allocations: 4 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.2808, allocations: 55.97 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006361/0.2814, allocations: 464.4 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.2816, allocations: 94.55 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.2818, allocations: 80.89 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.2818, allocations: 4 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.2822, allocations: 202.6 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.333e-06/0.2822, allocations: 0 / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007951/0.283, allocations: 471.8 kB / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.2831, allocations: 166.2 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006515/0.2838, allocations: 0.5207 MB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.2838, allocations: 29.7 kB / 416 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.2839, allocations: 101.1 kB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.2839, allocations: 31.78 kB / 416.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2841, allocations: 81.52 kB / 416.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2842, allocations: 326.8 kB / 416.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.2843, allocations: 55.97 kB / 416.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.2845, allocations: 77.67 kB / 416.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.2848, allocations: 339.3 kB / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2848, allocations: 112 / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005361/0.2854, allocations: 372.2 kB / 417.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.998e-05/0.2855, allocations: 130.8 kB / 417.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.2855, allocations: 0 / 417.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.2855, allocations: 4 kB / 417.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.992e-05/0.2856, allocations: 0 / 417.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2856, allocations: 128 / 417.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.2857, allocations: 23.97 kB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.2858, allocations: 36 kB / 417.6 MB, free: 8.434 MB / 334.1 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,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003483/0.2861, allocations: 370.2 kB / 417.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.2862, allocations: 39.77 kB / 418 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.2863, allocations: 63.16 kB / 418 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2863, allocations: 0 / 418 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2863, allocations: 4 kB / 418 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2863, allocations: 0 / 418 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009632/0.2873, allocations: 0.8134 MB / 418.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2873, allocations: 0 / 418.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-06/0.2873, allocations: 0 / 418.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2873, allocations: 4 kB / 418.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.2873, allocations: 15.98 kB / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2874, allocations: 0 / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2874, allocations: 3.938 kB / 418.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006515/0.288, allocations: 0.525 MB / 419.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/0.2883, allocations: 248.6 kB / 419.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.32e-05/0.2884, allocations: 12 kB / 419.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.2885, allocations: 11.98 kB / 419.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.815e-05/0.2886, allocations: 23.92 kB / 419.7 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.022e-05/0.2887, allocations: 43.92 kB / 419.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004553/0.2891, allocations: 386.9 kB / 420.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2891, allocations: 3.938 kB / 420.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.2894, allocations: 48 kB / 420.1 MB, free: 5.672 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009938/0.2904, allocations: 1.082 MB / 421.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005449/0.291, allocations: 441.7 kB / 421.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.291, allocations: 0 / 421.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003477/0.2914, allocations: 377.5 kB / 422 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.292, allocations: 139.4 kB / 422.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.2954, allocations: 2.74 MB / 424.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.2959, allocations: 0.7944 MB / 425.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.288e-05/0.296, allocations: 8.656 kB / 425.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.883e-05/0.296, allocations: 31.42 kB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.296, allocations: 0 / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02558/0.3216, allocations: 5.787 MB / 431.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.65/7.972, allocations: 14.75 kB / 431.5 MB, free: 10.12 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1)