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.001733/0.001733, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002083/0.002083, allocations: 202 kB / 18.73 MB, free: 4.312 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.43/1.43, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001971/0.001971, allocations: 59.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2818, allocations: 50.55 MB / 409 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002732/0.2846, allocations: 1.525 MB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.2865, allocations: 0.8848 MB / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.089e-05/0.2866, allocations: 0 / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.502e-05/0.2867, allocations: 7.922 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.03e-05/0.2868, allocations: 27.78 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.2871, allocations: 47.89 kB / 411.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002265/0.2873, allocations: 151.7 kB / 411.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2874, allocations: 23.98 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.2879, allocations: 371.3 kB / 412.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.288, allocations: 67.7 kB / 412.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.2881, allocations: 8 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.761e-05/0.2881, allocations: 12 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2882, allocations: 67.69 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001383/0.2884, allocations: 115.2 kB / 412.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004155/0.2888, allocations: 357.5 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2888, allocations: 0 / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2888, allocations: 0 / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2888, allocations: 0 / 412.7 MB, free: 13.73 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.0008497/0.2897, allocations: 0.7343 MB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2897, allocations: 8.031 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.674e-05/0.2898, allocations: 46.73 kB / 413.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.526e-05/0.2899, allocations: 36.7 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.2902, allocations: 278.7 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2902, allocations: 8.375 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.2903, allocations: 8.375 kB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.2906, allocations: 121.7 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2906, allocations: 3.938 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.2906, allocations: 8 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2906, allocations: 0 / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001539/0.2908, allocations: 55.97 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007749/0.2916, allocations: 468.5 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.2918, allocations: 94.48 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.292, allocations: 84.89 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.292, allocations: 0 / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004059/0.2924, allocations: 198.7 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.2924, allocations: 4 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008687/0.2933, allocations: 471.5 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.2934, allocations: 170.2 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006725/0.2941, allocations: 0.5168 MB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.2941, allocations: 29.7 kB / 416 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.215e-05/0.2942, allocations: 101.1 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.806e-05/0.2943, allocations: 27.8 kB / 416.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.2944, allocations: 85.5 kB / 416.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2946, allocations: 322.8 kB / 416.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2947, allocations: 59.97 kB / 416.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.2949, allocations: 77 kB / 416.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.2953, allocations: 339.3 kB / 417 MB, free: 9.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2953, allocations: 112 / 417 MB, free: 9.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005703/0.2959, allocations: 380.2 kB / 417.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.296, allocations: 122.8 kB / 417.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.296, allocations: 0 / 417.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.296, allocations: 4.031 kB / 417.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.103e-05/0.296, allocations: 0 / 417.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.2961, allocations: 4.125 kB / 417.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.2962, allocations: 23.94 kB / 417.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.577e-05/0.2963, allocations: 36 kB / 417.5 MB, free: 8.445 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.0004085/0.2967, allocations: 366.2 kB / 417.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.2967, allocations: 39.77 kB / 417.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.2969, allocations: 71.12 kB / 418 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2969, allocations: 4 kB / 418 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2969, allocations: 0 / 418 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2969, allocations: 0 / 418 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.298, allocations: 0.8126 MB / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.298, allocations: 0 / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.859e-06/0.298, allocations: 0 / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.298, allocations: 0 / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.298, allocations: 16 kB / 418.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.298, allocations: 0 / 418.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.2981, allocations: 3.938 kB / 418.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.2988, allocations: 0.5253 MB / 419.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.2991, allocations: 252.6 kB / 419.6 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.2991, allocations: 8 kB / 419.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.2993, allocations: 11.98 kB / 419.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.2994, allocations: 27.91 kB / 419.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.617e-05/0.2995, allocations: 43.94 kB / 419.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005153/0.3, allocations: 390.9 kB / 420.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3, allocations: 4 kB / 420.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.3003, allocations: 40 kB / 420.1 MB, free: 5.684 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.001094/0.3014, allocations: 1.086 MB / 421.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005624/0.302, allocations: 441.7 kB / 421.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.302, allocations: 64 / 421.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.3023, allocations: 381.5 kB / 422 MB, free: 3.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000636/0.303, allocations: 117 kB / 422.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.3067, allocations: 2.744 MB / 424.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005446/0.3073, allocations: 0.8022 MB / 425.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.056e-05/0.3074, allocations: 12.64 kB / 425.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.3075, allocations: 31.44 kB / 425.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3075, allocations: 0 / 425.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.3368, allocations: 5.777 MB / 431.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.062/8.399, allocations: 14.59 kB / 431.5 MB, free: 10.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 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)