Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 109.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 189.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 52.06 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2891, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003108/0.2923, allocations: 1.53 MB / 402.9 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.2944, allocations: 0.8403 MB / 403.8 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2945, allocations: 4 kB / 403.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.2946, allocations: 11.86 kB / 403.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.2948, allocations: 27.84 kB / 403.8 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.2951, allocations: 47.89 kB / 403.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.2954, allocations: 143.7 kB / 404 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.2955, allocations: 23.98 kB / 404 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004833/0.296, allocations: 391.2 kB / 404.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.2962, allocations: 63.77 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.706e-05/0.2962, allocations: 8 kB / 404.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.934e-05/0.2963, allocations: 12 kB / 404.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.2964, allocations: 67.69 kB / 404.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.2965, allocations: 111.2 kB / 404.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.2969, allocations: 362.7 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2969, allocations: 0 / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2969, allocations: 0 / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.988e-06/0.2969, allocations: 0 / 405 MB, free: 5.23 MB / 318.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.0009136/0.2978, allocations: 0.72 MB / 405.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.2979, allocations: 12.03 kB / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.152e-05/0.298, allocations: 32.56 kB / 405.8 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.2983, allocations: 282.2 kB / 406.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.2984, allocations: 4.375 kB / 406.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.2984, allocations: 12.38 kB / 406.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.2987, allocations: 121.9 kB / 406.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.2987, allocations: 7.938 kB / 406.2 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.513e-05/0.2988, allocations: 4 kB / 406.2 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2988, allocations: 4 kB / 406.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.299, allocations: 63.89 kB / 406.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007488/0.2997, allocations: 456.5 kB / 406.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.2999, allocations: 94.55 kB / 406.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.3001, allocations: 84.83 kB / 406.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.3001, allocations: 3.984 kB / 406.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.3005, allocations: 202.7 kB / 407.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.304e-06/0.3005, allocations: 0 / 407.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008206/0.3013, allocations: 464 kB / 407.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.3014, allocations: 170.1 kB / 407.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.3021, allocations: 0.5169 MB / 408.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3022, allocations: 29.7 kB / 408.3 MB, free: 1.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.3022, allocations: 105 kB / 408.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.3023, allocations: 27.72 kB / 408.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.3024, allocations: 81.41 kB / 408.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3025, allocations: 326.8 kB / 408.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.3027, allocations: 55.97 kB / 408.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.3028, allocations: 69.62 kB / 408.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.3032, allocations: 346.4 kB / 409.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3032, allocations: 4 kB / 409.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005205/0.3037, allocations: 372.3 kB / 409.6 MB, free: 240 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.3038, allocations: 126.7 kB / 409.7 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3039, allocations: 0 / 409.7 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.3039, allocations: 0 / 409.7 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.186e-05/0.3039, allocations: 8 kB / 409.7 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3039, allocations: 0 / 409.7 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.3041, allocations: 15.89 kB / 409.8 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-05/0.3041, allocations: 40.05 kB / 409.8 MB, free: 24 kB / 318.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.0003629/0.3045, allocations: 370.3 kB / 410.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.3046, allocations: 35.62 kB / 410.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.3047, allocations: 71.12 kB / 410.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3047, allocations: 0 / 410.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3047, allocations: 0 / 410.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3047, allocations: 0 / 410.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009857/0.3057, allocations: 0.8056 MB / 411.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3057, allocations: 0 / 411.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.661e-06/0.3057, allocations: 0 / 411.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3057, allocations: 4.188 kB / 411.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.3058, allocations: 20 kB / 411.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.3058, allocations: 3.984 kB / 411.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3058, allocations: 7.875 kB / 411.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006509/0.3064, allocations: 0.5135 MB / 411.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003409/0.3068, allocations: 240.5 kB / 411.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.767e-05/0.3069, allocations: 11.98 kB / 411.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.307, allocations: 8 kB / 411.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.3071, allocations: 39.84 kB / 411.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.744e-05/0.3072, allocations: 36 kB / 411.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004928/0.3077, allocations: 390.9 kB / 412.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3077, allocations: 0 / 412.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.308, allocations: 43.91 kB / 412.4 MB, free: 13.27 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.0001598/0.3082, allocations: 123 kB / 412.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005484/0.3087, allocations: 431.4 kB / 412.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3088, allocations: 4.062 kB / 412.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.3091, allocations: 385.5 kB / 413.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006675/0.3098, allocations: 116.5 kB / 413.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.311, allocations: 0.6984 MB / 414.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.3115, allocations: 0.8098 MB / 414.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.763e-05/0.3115, allocations: 19.38 kB / 414.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3115, allocations: 0 / 414.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of Templates: time 0.005027/0.3166, allocations: 2.534 MB / 417.5 MB, free: 8.031 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches